Repository navigation
Parallelize fast CI suite with fail-closed evidence - #1728
Merged
Merged
Conversation
…, refusal mutation tests
…iants claim honest
…ete the invariants
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit cdd972d. Configure here.
…collected expression
Wait for every peer worker to go down before failing gw1, then require the real runner's exit-zero record and the verifier's BAD-FIELD-DESELECTED refusal instead of accepting an abort.
Verify both artifact manifest paths as well as their hashes, and pass the selected repository root through every production manifest-loading caller so external manifests resolve repository-relative files correctly. Cover valid, wrong-path, wrong-hash, external, and invalid-manifest controls.
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.

Summary
pytest-xdistfour-workerloadfileexecution while keeping both collection checks serial and independent.Review-driven hardening
Fresh warm, cold, and Bugbot review drove these additional corrections; every finding has a recorded fix or disproof and no review thread remains open:
head_sha↔GITHUB_SHAbinding, plus test-environment scrubbing so verifier tests cannot inherit a mismatched Actions identity.BAD-FIELD-DESELECTED; the xdist controller-abort arm is not accepted as a substitute for that seam.manifest.pathidentity and an explicit repository root for manifest loading, so plugin-relative and repository-relative paths resolve correctly for manifests outside the repository.deselectedfrom its own hook accumulation, honest non-exhaustive invariant prose, and the skip advisory printed after the failure line.Local verification (final head
0cdc72b8)scripts/verify-local-lint-gate.shfrom the repository root:LINT-GATE-GREEN both legswith Ruff 0.17.3. Import-hygiene lint also passed in each final-head CI attempt.Final-head CI evidence
Three comparable attempts succeeded at final head
0cdc72b8c8956260395652456703b3590ba2c481on run 45063656527. Workflow durations userun_started_atthroughupdated_at; job and step durations use their GitHub API start/completion timestamps.The median test step 18m44s is below the fastest serial baseline (27m08s), and the median workflow duration 20m46s is below the serial median (36m52s).
Every attempt selected the same 554 files / 34,109 items, finished with 34,079 passed and 30 skipped, created all 4/4 workers under fixed
-n 4 --dist loadfile, and ended withVERIFY-OK expected=554 collected=554 status=ok select_all=selection-machinery. Every attempt hit and restored the same embedding-model cache key; every cache-save step was skipped because the cache already existed.Cursor Bugbot genuinely executed for 1m59s at this head and reported no issues. The unresolved review-thread count is zero.
Population comparability: The serial baselines were measured at the plan's planning-time commit, before main's test consolidation (#1722, #1726). At this PR's base the discoverable census is 553
test_*.pyfiles; this PR adds exactly one (test_fast_xdist_integration.py) and removes none. The fast run selects the full discoverable corpus throughselect_all, and the serial independent-collection canary verifies that selection. The roughly 3,200-item reduction from the planning-time baselines is main's consolidation, not selection narrowing by this PR.Successful pre-F8 diagnostic run 45061833563, at
b73131d7a7e442ec821bbf7b26e7652b233a5ab9, is retained as diagnostic evidence but is not one of the three final-head timing samples.Retained non-successful attempts
All non-successful attempts below are excluded from successful timing samples and retained with their dispositions:
87f186cfab18e4b47b4a06f57ce7dedb65827206: 2 failed, 33,996 passed, 30 skipped. Both failures inheritedPACT_FULL_RUN_RECORD_OWNERin child-runner fixtures and exited before fake pytest. The fix scrubs that variable; the original reproductions and both affected modules passed with it present.3ffda1e61ab480e078db2230fd354d0e8e721724: cancelled during the fast-test step when a newer head superseded it. This was not a completed test result.818fb0f6202b05cf09c446cec94f4600d1dd1c79: cancelled during the fast-test step when a newer head superseded it. This was not a completed test result.d60a469b8c709cf2581e656f389007a9fcdaf640: 4 failed, 34,026 passed, 30 skipped. All four failures were verifier tests refusingHEAD-SHA-MISMATCH: the test rig pinnedGITHUB_SHAto a base SHA while fabricated artifacts carried post-commit head SHAs. The binding worked as designed; the fix scrubsGITHUB_ACTIONSandGITHUB_SHAfrom the verifier-invocation helper unless a test supplies them explicitly, with a same-environment red-to-green reproduction and a green run at the next head.99e67a5456617088fe3be4b9cd2f904b4ef57aa4: cancelled during the fast-test step when a newer head superseded it. This was not a completed test result.Closes #1725