Repository navigation
fix(id): make the nixos-integration partition guard check disjointness (#1372) - #12578
Merged
Merged
Conversation
#1372) The coverage guard added by #4913 claims to prove the group filters partition the suite exactly, but its overlap term counted matches within each group's own hit list. --list names are unique, so that count can never exceed one and duplicated= was always empty: a test matched by two groups (e.g. a serve_tests test whose name also hits a harness_unit bare-name filter) would run twice, silently, and the guard would still pass. Count matches across groups instead. Also remove the unreachable print left after the final failed-groups raise (dead since cc96cc4). Evidence (bounded exercise of the exact emitted testScript, python3, no VM build): before, an overlapping fixture passed the guard; after, it is rejected naming the duplicated test. Disjoint and uncovered fixtures behave identically before and after, and the emitted testScript compiles.
|
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
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
#1372's legibility harness (PR #4913) guards the named-group split of the
nixos-integrationVM suite with a partition check whose assertion readsgroup filters must partition the suite exactly; duplicated=... uncovered=.... Theduplicatedhalf never fires: the overlap term counted matches within each group's own hit listand
--listnames are unique, so a per-group count can never exceed one. A test matched by two groups — e.g. aserve_tests::test whose name also hits one of theharness_unitbare-name filters (test_output_within_...) — would run twice, silently inflating the suite and its budget, while the guard reports an exact partition. The header comment ("Group filters are verified to partition every test in the binary") overclaims what the code checks.The same change removes an unreachable
printleft after the final failed-groupsraise(dead since cc96cc4).Decision record (summary)
Recorded on #1372 per FDR-0013 / decide-and-proceed: no owner decision is outstanding on #1372. The waits in its history were on other issues (#4850, #4960, #774, #8354 — all closed) and on a nightly that structurally could not complete (90-minute job timeout vs 3600s + 1200s suite budgets), fixed by PR #12526. The remaining close condition — one completed full
nix flake checkverdict onnixos-integration— is a measurement the fleet produces itself; run 45026136879 is in flight.status/blockedremoved.Change
pkgs/id/nix/tests/integration-test.nixonly (+10/−7): count filter matches across all groups (match_counts), deriveoverlapfrom counts > 1 andmissingfrom the same map; delete the dead print. No group, filter, deadline, or budget changes; the real suite's partition verdict is unchanged.Evidence
Bounded exercise of the exact emitted testScript (extracted from the .nix,
${...}stubbed, execed under python3 against a fake driver--list; no VM build), three fixtures:serve_tests::test_output_within_kills_a_hung_process)duplicated=['serve_tests::test_output_within_kills_a_hung_process']world_tests::...)uncovered=[...]uncovered=[...](unchanged)Plus:
py_compileof the emitted testScript OK, andnix eval ./pkgs/id#checks.x86_64-linux.nixos-integration.nameon the laptop at eb64ac8 →"vm-test-run-id-integration"(the sandbox cannot eval: /nix/store ownership). A full VM run of the check is not claimed here; it rides the nightly.Merge danger
Low. One nix file, test-harness python only; the guard runs inside the VM before any test executes, and a false rejection would fail the check loudly with the partition assertion rather than silently changing coverage. Revert is a single-commit undo.
What remains on #1372
The recorded close condition: run 45026136879's verdict on
nixos-integration(pass, or fail fast naming a group). This PR does not close the issue.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.