diff --git a/docs/testing/load.md b/docs/testing/load.md index 3858234..800fb8a 100644 --- a/docs/testing/load.md +++ b/docs/testing/load.md @@ -7,6 +7,66 @@ the same answer on a busy machine as on an idle one. This page says how to make a machine busy, what the fixes of `phase5/test-hygiene` did about the tests that failed only then, and what is known and left alone. +## The round of `phase5/test-hygiene` + +The branch is `phase5/test-hygiene`, from `2ffe5ff` (main with the session +seam, its follow-ups, the CI deploy key and `phase5/tests-under-runner`). It +settles the left-overs of the review of the seam follow-ups and of the +tests-under-runner round. The `mao-*` agents were not registered in the +session, so a general-purpose agent played `mao-implementer` (Sonnet 5.5), +attempt 1; an earlier run of the same task was cut off by a restart of the +orchestrator, left four commits and an uncommitted tree, and this attempt +judged those, kept what was right and finished the rest. No history was +rewritten; `THIRD_PARTY_NOTICES.md` is untouched (`Cargo.lock` did not change). + +| Commit | What | Whose | +|---|---|---| +| `e465a55` | Item 2: the fallback gateway test keeps its "closed" port bound | cut-off run, kept | +| `ac957a0` | Item 1: the history test of `gateway.rs` waits for the `-wal` file before it reopens (`tests/common/mod.rs`) | cut-off run, kept | +| `35408a3` | Item 5: the portal proxy test requires `1 passed` of its child | cut-off run, kept | +| `7e63092` | Item 4: `from_json`'s doc names voelin-core (voelin-store parses the text too: `keystore.rs` `check_teamspeak` and `level`, `store.rs` `list`) | cut-off run, kept | +| `0bc6aba` | Item 3: the account-change test names the step it timed out in | this attempt | +| `f9bfd5d` | Item 6: `rectangle_span` checks the pattern's structure | cut-off run's tree, committed | +| `25be433` | Item 6: the preview test checks its rates against its own timing | cut-off run's tree, committed | +| `81c40a4` | Item 6: `audio_sources_change_live` | cut-off run's tree, committed | +| `c5bb74f` | Item 6: the server-features test asks one question at a time | cut-off run's tree, committed | +| `7730460` | Item 6: the layer-format test waits for the stream task's answer | cut-off run's tree, committed | +| `9d04e01` | Item 6: the studio compose test waits for the frame it asks for | cut-off run's tree, committed | +| `92d02b0` | Beyond the list: the studio capture-backend test waits for the delivered count | cut-off run's tree, committed | +| `661a607` | Beyond the list: the scope test and `streamer_sends_opus` | cut-off run's tree, committed | +| `069fd2a` | Item 7: `ts6_banners` runs with the TeamSpeak 6 server to itself | cut-off run's tree, committed | +| `5c029a9` | Item 7: the smoke's `roundtrip` waits for its listener | cut-off run's tree, committed | +| `94195db` | rustfmt of four spots of the commits above | this attempt | +| `f508e5b` | Beyond the list: the automatic-bitrate test counts frames | this attempt | +| `ad80660` | The smoke script says which of its checks still flake | this attempt | +| this one | `docs/testing/load.md`, the pointer in `docs/ci.md` | this attempt | + +Two hunks of the cut-off run's tree were dropped: the timing instrumentation of +the account-change test (`Instant`s and an `eprintln!` of the steps, replaced +by the named `expect`s of `0bc6aba`; its numbers are below) and a +`#[cfg(test)] FIRST_SNAPSHOT` of 5 s in `ts_session` (it keeps the lib tests +from running the 250 ms the engine really has; see "Seen and left alone"). The +commits "beyond the list" are fixes of tests that failed in this round's own +runs, each in a commit of its own, and can be dropped without touching the +others. + +What ran, on the final tree (the dev shell `dev rust-nightly -p cmake -p clang +-p pkg-config -p jq -p alsa-lib -p openssl -p libvpx -p dav1d -p pipewire -p +fontconfig -p freetype -p libxkbcommon -p expat -p dbus -p procps -p gnumake` +with the pinned 1.94 or the nightly of 2026-10-21 in front of `PATH`, and +`LIBCLANG_PATH`): + +| Check | Result | +|---|---| +| `cargo fmt $(scripts/own-crates.sh) -- --check`, `cargo clippy $(scripts/own-crates.sh) --all-targets --locked --no-deps -- -D warnings` | 1.94: clean at the head | +| The same on nightly | clippy is blocked at sites of the baseline (none in a line of this branch): `chunks_exact_to_as_chunks` (voelin-core `audio.rs` and `media.rs:4057`, voelin-media), `manual_checked_ops`, `unnecessary_sort_by` (voelin-media), `result_large_err` (`ts/voice.rs:476`); with those four allowed the three touched crates are clean with all targets. voelin-platform is clean. `rustfmt` differs at `history.rs`, `ffmpeg/encoder.rs`, `discovery.rs`, `chat.rs` and `voelinctl/src/engine.rs`, none changed here | +| Clippy alone, at each of the 16 commits above that touch Rust, checked out detached | 1.94, `voelin-core`, `voelin-media`, `voelin-platform`, all targets, `media-desktop`: clean at each. `rustfmt` was not clean from `c5bb74f` to `069fd2a` (the commits that wrote the four spots `94195db` formats) | +| `cargo test -p voelin-core -p voelin-platform -p voelin-media --locked --no-fail-fast`, ten times in a row | 516 tests passed and 13 ignored in each of ten runs, 33 test binaries each; load average 89 to 29 from other jobs | +| The same with `--features voelin-core/media-desktop` (the tests of this round's `media` fixes only exist there; `cargo test --workspace` has it on through `voelin-ui`) | 551 passed and 14 ignored in each of ten runs; load average 21 to 25 | +| `cargo check --workspace --all-targets --locked` | passes (1.94) | +| The tests of the tables below, 100 runs each of the binary of `2ffe5ff` and of the final tree, and the whole lib binaries | The tables below | +| `scripts/it-smoke.sh ts3 ts6` | Below, "The live smoke" | + ## Making the machine busy The recipe of that round: 32 busy loops beside the run (the machine had 32 @@ -79,7 +139,7 @@ Found by the same runs, beyond the list, and fixed in their own commits: | Test | Why it failed | It checks now | Alone, before / after | Notes | |---|---|---|---|---| | `studio::tests::packets_reach_the_outputs_and_the_studio_is_a_capture_backend` | The studio counts a frame as delivered after handing it over, so the count could still be 0 | Waits for the count | 2 / 0 of 100 | Whole `voelin-media` binary, before: 11 of 150 runs (9 of them this test), then 2 of 100; after: 0 of 100 | -| `link::tests::a_scope_bigger_than_the_channel_is_sent_in_bigger_chunks` | 5,000 channels were made after the connector's 250 ms wait for a first snapshot began; the scope was sent before the presence was in | The channels are made first; a voice packet through the link shows the presence is in | 0 / 0 of 100 | 3 failures of about 500 whole-binary runs before; too rare to count a rate after | +| `link::tests::a_scope_bigger_than_the_channel_is_sent_in_bigger_chunks` | 5,000 channels were made after the connector's 250 ms wait for a first snapshot began; the scope was sent before the presence was in | The channels are made first; a voice packet through the link shows the presence is in | 0 / 0 of 100 | 3 failures of about 500 whole-binary runs before, 7 of 300 at a load average of 150 to 250 with the first half of the fix only (the channels first, no voice packet); too rare to count a rate after | | `media::tests::streamer_sends_opus` | Ten frames of audio came before the first frame of video, which a busy machine delays | Waits for ten of audio and one of video | 0 / 0 of 100 | 2 failures of about 500 whole-binary runs before | | `media::tests::an_automatic_bitrate_follows_the_stream` | The sink is told the format at `attach` and again by the encoder before its first frame; the test counted in between after a 200 ms pause | Counts after a frame has come and compares after five more | 2 of 900 before; 0 of 600 after | 1 of 150 in the final whole-binary run of the old test |