Skip to content

Gate: pin the Windows step cap 3+ min over the slowest seen part (Part of #8701) - #8975

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8701-20261122T0352Z
Nov 22, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/8701-20261122T0352Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

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_MIN 25 x SEEN_HEADROOM 1.3 gives Windows 3.12 timeout=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 in suite_shard_plan.py saying 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 --gate already prints the planned caps: read it before assuming a timeout needs raising.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 22, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 22, 2026 03:58
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 22, 2026 04:12
@squid-shepherd
squid-shepherd Bot merged commit 4aa4b12 into main Nov 22, 2026
59 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/8701-20261122T0352Z branch November 22, 2026 04:32
@squid-shepherd

Copy link
Copy Markdown
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]>
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.

1 participant