tests: remove the singleton stress test; #[ignore] means disabled again

128 fast activate/revert cycles are not a realistic load. restarts_service
covers the restart of a service after an upgrade. nix flake check runs
the normal tests only.
This commit is contained in:
2026-10-23 08:31:48 +01:00
parent 41818107a2
commit c926f3bc72
4 changed files with 10 additions and 53 deletions
+10 -6
View File
@@ -35,7 +35,7 @@ Keep it that way.
## Checks
```sh
nix flake check -L # everything below, plus the stress tests; CI runs this on every push
nix flake check -L # all tests below; CI runs this on every push
nix develop -c cargo test --workspace # fast with a warm cache: run it during development
nix develop -c cargo build --release -p agent --target wasm32-wasip2
nix develop -c cargo clippy --workspace
@@ -44,8 +44,12 @@ nix develop -c cargo clippy --workspace
`nix run -- init` and `nix run -- run` must keep working without other
setup.
Tests must stay fast. Only a few tests may wait for a timing (grace periods,
deadlines). Poll for a condition with a deadline, do not sleep. `#[ignore]` is
only for stress tests: `nix flake check` runs them with `--include-ignored`.
Tests that build plugins use the persistent cache in
`env!("CARGO_TARGET_TMPDIR")`.
Tests must stay fast:
- Only a few tests may wait for a timing (grace periods, deadlines).
- Poll for a condition with a deadline. Do not sleep.
- Do not test unrealistic load, such as many fast cycles.
- `#[ignore]` only disables a test for a short time, with the reason in the
attribute.
- Tests that build plugins use the persistent cache in
`env!("CARGO_TARGET_TMPDIR")`.