Repository navigation
pr_gates: derived gate -- fail locally on derived records the branch stales (#6731) - #6734
Merged
Merged
Conversation
…h stales (#6731) tests/tools/derived_check.py applies CI's BLOCKING rules with fingerprints only (~5 s, no sweep): evidence records whose port / case / corpus / differences / options changed (test_every_committed_record_is_current), non-Db2 det-sweep ledger entries whose case / corpus changed, and non-Db2 cases with no entry that det_sweep_baseline.json does not list (a new case), each with its refresh command. The gate also runs change_classifier.py --check (docs_read_by_tests.txt). In --fast, so churn's precheck catches these before review. 28% of churn fix runs 2026-10-18..26 were derived records like these; replayed on #5658 (3 new cases) and #5836 (genapp-lgdpvs01) it fails on the pre-fix heads and passes after. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
squid-protocol
added a commit
that referenced
this pull request
Oct 26, 2026
…d at 1.3x the slowest seen (Part of #5133, #5919) (#6735) The first stored nightly cache (2026-10-26 10:21, run 40306058375) summed each part to its bare pytest wall: 731 s for 28,832 tests against 2,137 s recorded. suite_shard_plan reads serial seconds and divides by JOBS, so every Gate leg planned as 1 part at the 20-22 min floor and every PR's test_every_leg_cap_has_headroom_over_the_slowest_seen_time failed (first seen on #6734). calibrate_test_durations.py now scales a part to wall x JOBS (the ratios pytest-split balances by are unchanged); the planner floors each leg's cap at 1.3x its slowest seen minutes (moved from the test). Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
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.
Closes #6731.
Why. Of the 436 churn fix runs from 2026-10-18 to 10-26, 28% were derived records that a PR changed the inputs of but did not refresh. CI found each one a push later, because
pr_gates --fastchecks none of them. This is the largest send-back cause, and it grows with PR size: 10 per 100 PRs at 1-2 hand-written files, 30 per 100 at 6+.What.
tests/tools/derived_check.pyapplies CI's own BLOCKING rules using fingerprints only. It runs no sweep and takes about 3-5 s. It reports:test_every_committed_record_is_current); fix:evidence.py prove KEYdet_sweep_baseline.jsondoesn't listproof_sweep.py --det-only --skip-db2 --cases ...+det_coverage_ledger.py updatecommandderivedgate inpr_gates.py, also in--fast. It runsderived_check.pypluschange_classifier.py --check(staledocs_read_by_tests.txtwas 17 more fix runs). churn's precheck runs--fast, so these get caught before review.Checks.
e09aa165cflags exactly the 3 new cases CI'sdetfailed on, and passes at the fix1b0b0b30b. equivalence: lgdpvs01's proof stops at the first LINK of WRITE-ERROR-MESSAGE (X6); notes corrected (Part of #5252) #5836 flagsgenapp-lgdpvs01from its first commitf27294638onward (the PR took 6 main merges before the fix), and passes at35a4252a4.test_derived_check.py(9 tests, stubbed fingerprints).pytest tests/tools: 3047 passed. The one failure,test_no_skippable_tool_is_reached_by_the_jobs_tests, came from a comment naming a test module; the comment is reworded and the test now passes.pr_gates --only lint audits derivedpasses.Follow-ups: #6732 (merging main without a model for regenerated-file conflicts), #6733 (tests affected by a diff in
--fast). Companion: squid-protocol/promoter-bot#71 (precheck enforces the 5-file rule).🤖 Generated with Claude Code