Skip to content

Commit 6212ddf

Browse files
authored
Merge pull request #2 from BitpingApp/remote-write-support
Add remote write support
2 parents 4b87add + dfd5184 commit 6212ddf

18 files changed

Lines changed: 3145 additions & 48 deletions

AGENTS.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# AGENTS.md
2+
3+
## Rules
4+
5+
- No unwraps allowed

CLAUDE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,22 @@ nix run # Run directly
1313
cargo watch -x run # Hot-reload during development (inside dev shell)
1414
```
1515

16+
## Testing
17+
18+
```bash
19+
cargo test # Unit tests only
20+
cargo test --test remote_write -- --ignored # Integration tests (requires Docker/Podman)
21+
cargo test --test remote_write -- --ignored --nocapture # Integration tests with output
22+
```
23+
24+
Integration tests spin up VictoriaMetrics and Prometheus containers via testcontainers, push metrics through the real `RemoteWriteSender::push_once` code path, and query back to verify correctness. Each test suite runs against both backends.
25+
1626
## Flake Maintenance
1727

1828
When `Cargo.toml` changes (version bump or dependency changes):
1929
- Update `version` in `flake.nix` to match `Cargo.toml`
2030
- Set `cargoHash` to `""` and rebuild to get the new hash from the error output, then update it
31+
32+
## Rules
33+
34+
- No unwraps allowed

0 commit comments

Comments
 (0)