Skip to content

test_suite_shard_plan: assert the planner's contract, not today's part counts (Part of #6147) - #6148

Merged
squid-protocol merged 1 commit into
mainfrom
churn/6147-20261023T0349Z
Oct 23, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/6147-20261023T0349Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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_parts and ..._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 windows even weighting), 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.py and test_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 plain pytest from /tmp); pr_gates --ratchets --only-ratchets time: PASS; ruff format clean.

Lessons for agents

🤖 Generated with Claude Code

…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]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 23, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 23, 2026 03:53
@squid-protocol
squid-protocol enabled auto-merge (squash) October 23, 2026 03:54
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 902dbe3 into main Oct 23, 2026
44 checks passed
@squid-protocol
squid-protocol deleted the churn/6147-20261023T0349Z branch October 23, 2026 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

main is red: Full Suite Gate (All OS x Python)

1 participant