Repository navigation
verify-rust: run only the POISONED_TESTS under --features poison - #552
Conversation
The poison phase ran the whole fmw-noise crate poisoned, then checked only the 108 tests in POISONED_TESTS. The other 440 results were thrown away. Measured at ccb2cfb on hammond (16 threads): 590 of the run's 818 CPU-s went to those unlisted tests. The run now passes every listed name to `--exact` as a filter: 188 CPU-s, 97.5 s wall (was 133 s). The wall is held up by one listed test, the apply-stage cliff test, at 97 s poisoned. A listed name that no longer exists now fails as "did not run" instead of "stayed GREEN", and a count check catches a duplicate entry. Both list errors were planted and each turned the gate red with its own message. CLAUDE.md's "narrowing was measured and REJECTED" note measured a `fixtures::` filter, which kept the expensive unlisted tests. It is rewritten with the new numbers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 51 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
…e one The apply-stage cliff test took 97 s poisoned, the slowest in the list, so it set the wall time of the whole poisoned run. Its slot now holds the_games_own_destruction_set_reproduces_the_game_exactly (42 s poisoned in the whole-crate run, 21 s here). The apply-stage test still runs in the clean pass. No control is lost. With the connections hook switched off, both apply-stage tests still fail (the crossing and sweep hooks redden them first), and the hook's own control is the listed unit test connection_is_a_parity_test_and_not_a_do_they_touch_test, which goes green with the hook off and red with it on. Poisoned run on hammond: 188 CPU-s, 97.5 s wall -> 112 CPU-s, 68 s wall (818 CPU-s, 133 s before this PR). All 108 listed tests fail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ
The poison check runs only the 108 tests it actually checks, not the whole crate. No test is deleted, and the clean run still runs everything.
Why
scripts/verify-rust.shbreaks the engine on purpose (--features poison) and requires each test inPOISONED_TESTSto fail. It ran all 548fmw-noisetests poisoned and then read the results of those 108 only. The rest were thrown away, and they included the four most expensive tests in the crate.Measured (hammond, 16 threads, ccb2cfb)
--exacton the listthe_apply_stage_beats_the_crossing_stage_on_three_counts_and_loses_on_none, took 97 s poisoned and set the wall time of the whole run. Its slot now holdsthe_games_own_destruction_set_reproduces_the_game_exactly(21 s poisoned here). The apply-stage test still runs in the clean pass. No control is lost: with the connections module's own hook switched off, both apply-stage tests still fail, because the crossing and sweep hooks redden them first. That hook's real control is the listed unit testconnection_is_a_parity_test_and_not_a_do_they_touch_test, which goes green with the hook off and red with it on.maintherustjob's median is 683 s over the last 5 green runs, and the poisoned run is about 515 s of that. This PR's ownrustjob is the first CI number.verify-rust.shpasses on the branch in 118 s locally (147 s before the swap).The check still fails when it should
Both list errors were planted on a copy of the poison section, and each turned it red with its own message:
ERROR: fixtures::the_nauvis_offset_seeds_are_the_crc32_of_their_expression_names stayed GREEN under --features poison.ERROR: fixtures::this_test_was_renamed_away did not run under --features poison.Before this change, a renamed test was reported as "stayed GREEN", which pointed at the wrong fix. A count check also catches a duplicate entry.
CLAUDE.md
Its note that narrowing was "measured and REJECTED" measured a
fixtures::filter, which kept the expensive unlisted tests. It is rewritten with the numbers above.Found by a read-only test audit (the
pruning-testsskill).🤖 Generated with Claude Code
https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ