Repository navigation
CI: nightly durations calibrated to wall x JOBS; Gate leg caps floored at 1.3x slowest seen (Part of #5133, #5919) - #6735
Merged
Conversation
…d at 1.3x the slowest seen (Part of #5133, #5919) 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: Claude Opus 5.5 (1M context) <[email protected]>
This was referenced Oct 30, 2026
Merged
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.
Part of #5133 and #5919. This fixes a red check that would hit every PR.
What broke.
suite_shard_planreads serial seconds and divides byJOBS, so parallelism was counted twice. Every Gate leg planned as 1 part at the 20-22 min floor.derivedgate -- fail locally on derived records the branch stales (#6731) #6734, the first PR to run since,test_every_leg_cap_has_headroom_over_the_slowest_seen_timefailed: Windows 3.11 got a 22 min cap against 1.3 × 18 = 23.4. A real 1-part Windows leg would run far past 22 min.I reproduced this from the nightly's own
test-durations-part-*artifacts.Fix.
calibrate_test_durations.pyscales a part to wall ×JOBS, the serial-equivalent basis the planners divide by.--jobsdefaults tosuite_shard_plan.JOBS, so the workflow call is unchanged. pytest-split's ratios don't change. On today's parts this gives about 2,205 s, close to the raw 2,137 s.suite_shard_plan.gate_planfloors each leg's cap at 1.3 ×SLOWEST_SEEN_MIN, which moved here from the test, capped by the ceiling. A durations cache on any basis can no longer plan a cap below a time a leg has actually taken. The test now checks the planned legs against the planner's measured table.Plans from today's cache.
JOBS(the fix)All legs pass the headroom test.
Tests:
test_calibrate_test_durations.pyandtest_suite_shard_plan.pyeach gain a regression test (wall × jobs; a cache at 1/4 the committed seconds still respects the floor). 67 tests across the planner, calibration and workflow files pass.pr_gates --only lint auditspasses.Ops note (owner action): today's bad cache entry still plans 1-part legs, and the floor alone can't fix that. Delete it so restores fall back to the 10-12 cache, which PRs used until this morning:
gh cache delete test-durations-40306058375 -R squid-protocol/gitgalaxy. If it isn't deleted, it is replaced by the first nightly after this merges.🤖 Generated with Claude Code