Skip to content

verify-rust: run only the POISONED_TESTS under --features poison - #552

Merged
wormeyman merged 2 commits into
mainfrom
poison-run-only-the-gate-list
Nov 26, 2026
Merged

wormeyman merged 2 commits into
mainfrom
poison-run-only-the-gate-list

Conversation

@wormeyman

@wormeyman wormeyman commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

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.sh breaks the engine on purpose (--features poison) and requires each test in POISONED_TESTS to fail. It ran all 548 fmw-noise tests 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)

tests run CPU-s wall
before: whole crate poisoned 548 818 133 s
--exact on the list 108 188 97.5 s
plus the list swap below 108 112 68 s
  • The list swap. One listed test, the_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 holds the_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 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.
  • The slowest listed test is now the Aquilo real-surface replay, at 68 s.
  • CI should gain more. A 4-core runner is bound by total CPU. On main the rust job's median is 683 s over the last 5 green runs, and the poisoned run is about 515 s of that. This PR's own rust job is the first CI number.
  • The full verify-rust.sh passes 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:

  • a listed test that stays green under poison: ERROR: fixtures::the_nauvis_offset_seeds_are_the_crc32_of_their_expression_names stayed GREEN under --features poison.
  • a listed name that no longer exists: 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-tests skill).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Kd6o1dTdCEZ5JSjytamwMZ

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
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 53cc5762-4ac7-4876-a24f-0b4e76895fdd
Commits

Reviewing files that changed from the base of the PR and between ff1bd08 and 58cb90e.

Files selected for processing: 2

  • CLAUDE.md
  • scripts/verify-rust.sh

No actionable comments were generated in the recent review.

Walkthrough

The poisoned Rust test phase now runs only the exact tests listed in POISONED_TESTS. The script checks that each listed test fails and runs. CLAUDE.md documents the filter, timing measurements, and failure conditions.

Changes: Poisoned test gate

Layer / File(s) Summary
Run and validate listed tests
scripts/verify-rust.sh
The script runs the exact tests in POISONED_TESTS. It fails if a listed test passes, does not run, or if the executed test count differs from the list length.
Document filter and timings
CLAUDE.md
The documentation updates the timing table and describes the filtered run, its comparison with whole-crate testing, and the separate missing-test and green-test failures.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: Minimal · previous review ff1bd

This change makes the poisoned Rust verification phase run only the tests it actually checks, and it still fails on missing or green listed tests. No merge-blocking risk was found. The change affects only the verification script and its documentation.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: the --features poison phase in scripts/verify-rust.sh now runs only the tests listed in POISONED_TESTS. The raw summary and objectives confirm this change, with --exac…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names the main change: the --features poison phase in scripts/verify-rust.sh now runs only the tests listed in POISONED_TESTS. The raw summary and objectives confirm this change, with --exact used and the full suite kept for the clean run. The title is specific, short, and not vague.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 221f3cb7-38b0-48e8-a040-fa13d8a8ab14
Commits

Reviewing files that changed from the base of the PR and between 038b488 and ff1bd08.

Files selected for processing: 2

  • CLAUDE.md
  • scripts/verify-rust.sh

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@claude

claude Bot commented Nov 26, 2026

Copy link
Copy Markdown

Code review

No 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
@wormeyman
wormeyman merged commit b4934cb into main Nov 26, 2026
16 checks passed
@wormeyman
wormeyman deleted the poison-run-only-the-gate-list branch November 26, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant