Repository navigation
test_suite_shard_plan: assert the planner's contract, not today's part counts (Part of #6147) - #6148
Merged
Merged
Conversation
…durations, not today's part counts (Part of #6147) #6146 refreshed .test_durations and the plan shrank (Smoke 3 -> 2 parts, ubuntu Gate 2 -> 1, windows 3.11 3 -> 2), which failed the two tests that pinned the old counts on every Full Suite Gate leg. They now assert the fewest parts that fit the target inside the cap, per leg. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 23, 2026 03:53
squid-protocol
enabled auto-merge (squash)
October 23, 2026 03:54
Owner
Author
|
No description provided. |
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.
What
Main's Full Suite Gate (run 39895487671) failed on 8 legs, all on the same two tests in
tests/tools/test_suite_shard_plan.py:test_todays_durations_reproduce_todays_smoke_partsand..._gate_parts. They pinned part counts derived from the committed.test_durations; #6146 refreshed that file and the plan shrank (Smoke 3 -> 2, ubuntu Gate 2 -> 1, windows 3.11 3 -> 2). No other test failed, so there was no infrastructure flake to rerun.The tests now check the planner's contract on the real file:
1 <= parts <= cap, the chosen count fits the target and one fewer does not (Gate recomputed per leg with the windowsevenweighting), timeouts and matrix shape in bounds. Counts are no longer pinned.Class sweep
Class: a test pinning a derived value from a routinely refreshed measurement file. Read
test_ci_shard_plan.py,test_db2_shard_plan.pyandtest_det_sweep_fast.py: they assert ranges or relations only, so no change.Cross-repo
None. Overlaps open PR #6116 (same test file, Smoke plan); merge main into whichever lands second.
Does not close #6147: it self-closes when the Gate next succeeds on main.
Verification
pytest tests/tools/test_suite_shard_plan.py: 8 passed (also plainpytestfrom/tmp);pr_gates --ratchets --only-ratchets time: PASS;ruff formatclean.Lessons for agents
.test_durations: the file is refreshed (ground-truth: durations refreshed, cache/layout measured and documented (Part of #5543) #6146) and every pin breaks on the next refresh.🤖 Generated with Claude Code