Repository navigation
Gate: pin the Windows step cap 3+ min over the slowest seen part (Part of #8701) - #8975
Merged
Merged
Conversation
…t of #8701) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
2 of 3 tasks
This was referenced Nov 22, 2026
Contributor
|
No description provided. |
squid-protocol
added a commit
that referenced
this pull request
Nov 23, 2026
…cap report (#8701) (#9124) * Gate caps from measured leg walls, not a hand table; weekly CI cap report (#8701) The Full Suite Gate's caps came from per-test durations x hand-set speeds, floored by SLOWEST_SEEN_MIN, a table a person re-typed after each red night (#8944 speed, #8975 pin: bump, fail, bump). suite_shard_plan.py --gate --history-runs now reads the wall of each (os, python, parts) leg over the latest 10 scheduled runs (the plan job already had a token): with 3+ observations the measured worst x 1.3 floors the cap, and a leg measured over its target at n parts is planned with one more part (up to the pool cap) before its cap is raised. A cut leg counts at its cap, so a killed leg raises its own next cap. History that cannot be read never fails the plan. ci-cap-report.yml runs the two tight-cap tools (ci_cap_headroom.py, gate_leg_margin.py) weekly; a tight cap is a red run, which Main Watch turns into an issue the fleet works. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * Plan the caps of tri-comparison-audit/-history, graph-accuracy-audit and det-mutation from measured wall time; bound the ctags install that hung job_cap_plan.py plans a job's timeout-minutes as worst measured wall x 1.3 clamped to [floor, ceiling] and falls back to the workflow's current literal when history cannot be read (never fails the workflow). A job stopped in a setup step is a hang, not evidence the work needs longer: both tri-comparison runs stopped at 30 min were 'Install universal-ctags' hung ~29 min (normal job <= 8 min), so their cap goes to 15 and the install is bounded (3 attempts x 180 s under a 12-min step cap, in tri-comparison-audit, tri-comparison-history and doom-rosetta). det-mutation: the literal 150 was 1.2x its worst real run (124.7 min); it is now planned (floor 150 so det_mutation.py's 130-min budget still ends the work first). Existing tests that pinned the old literals are taught to read the planned fallback; the network-inventory doc and the apt line table are updated. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * tests: register ci-cap-report.yml in gate_controls; make the slow-leg planner test independent of the committed durations - test_every_workflow_is_a_listed_gate_or_says_why_not: ci-cap-report.yml goes in NOT_GATES with its reason. - test_a_leg_measured_slow_at_n_parts...: it read the real durations, and in CI's merge with main Windows 3.12 already planned 4 of 4 parts (GATE_MAX_PARTS), so it could not add a fifth. Now pins the maximum: with room it adds a part; at the maximum it adds none and the cap still covers worst x 1.3. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5.5 <[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.
Part of #8701. Checklist: done [c:35ac4f04]
What
The "raise that leg's step timeout" item is already met by the planner on main:
SLOWEST_SEEN_MIN25 xSEEN_HEADROOM1.3 gives Windows 3.12timeout=33 / step_timeout=30(3 parts, after #8944/#8961), above the 25:06 that failed run 44537857415. Raising it further would hide regressions with no 3-part data yet. This PR pins it: a test that every Windows step cap stays >= 3 min over the slowest seen part for both the committed and a quarter-size (wall-calibrated) durations cache, and that 3.12 stays >= 30. Plus a comment insuite_shard_plan.pysaying when the 25 may be lowered.No workflow YAML or plan output changes.
Class
Gate leg caps falling under a measured time. Siblings: macOS legs share the same floor, and the new test only covers Windows (macOS 16/17 min seen, caps far above).
Remaining
The 5-scheduled-run confirmation (third checkbox) waits on nightly runs.
Cross-repo
None.
Lessons for agents
suite_shard_plan --gatealready prints the planned caps: read it before assuming a timeout needs raising.🤖 Generated with Claude Code