Repository navigation
ci(test-python): refresh suite-seconds and plan up to 5 legs - #9052
Conversation
main's verify on 6592807 was cancelled when test-python (3) hit its 7-minute limit. The planner balanced the legs on Python medians from 2026-10-19 that undercounted the planning suites by 20-30 s each, so two legs ran about 340 s of suites against a planned 291 s. Re-measure every Python suite as the median of runs 39726045512, 39727110042 and 39732992257 and add the 11 suites the file did not list. Co-Authored-By: Claude Opus 5.5 <[email protected]>
With refreshed suite-seconds the whole tree holds 1272 s of Python suites, so 4 legs plan at 318 s each, about 409 s of worst-case wall against the 7-minute limit. 5 legs plan at 255 s, about 311 s of wall. Update the sizing comment in pr-require-checks.yml to match. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed No security issues found in this PR at head 5da9b4d. The diff changes four files:
None of the files is a plugin manifest, so there is no Because there is no security-relevant surface, I ran no hunter or verifier subagents. |
|
claude-review reviewed No findings. I reviewed all four changed files and found nothing that fails.
|
No related issue: main verify cancelled at test-python (3)'s limit (run 39733925888)
Summary
The verify run on 65928077 was cancelled when test-python (3) reached its 7-minute limit at 435 s. The planner splits the Python suites across legs using
scripts/suite-seconds.txt. Its Python values, measured on 2026-10-19, now undercount four planning suites by 21 to 30 s each (shared/tests/test_server.py,test_share.py,test_tunnel.py,surface/test_exporters.py). As a result, legs the planner sized at 291 s ran about 340 s of suites. With 36 to 56 s of setup on top, those legs came within one slow runner of the limit.Fix
scripts/plan-test-lanes.shfrom 4 to 5. Balanced over 4 legs, the refreshed 1272 s of suites still leaves almost no headroom. Updated the pinned planner test and the sizing comment inpr-require-checks.ymlto match.Verification
Planner totals for the whole tree (
scripts/plan-test-lanes.sh, suite-seconds per leg):After the refresh and the cap of 5: 255 / 255 / 254 / 254 / 254 s (1272 total), so about 311 s of wall with up to 56 s of setup, against the 420 s limit.
scripts/plan-test-lanes.test.sh: PASS=41 FAIL=0. Its 5-leg packing case expects hand-computed values: 200/190/170/180/185 s.actionlint .github/workflows/pr-require-checks.yml: clean.test-pythonmatrix readspython_legsthroughfromJSONand hard-codes no leg list.ci-statusaggregatestoJSON(needs), which gives one result per matrix job, not per leg. Themainruleset requires onlyci-status. No script outside a fixture names atest-python (N)leg.scripts/check-affected.sh --testson the second commit: every selected shell suite passed exceptscripts/ci-test-node-stop-commands.test.shandscripts/run-hygiene-gate.test.sh. Both stop because this machine lacks PyYAML (.github/requirements-ci.txt), not because of this change. This machine also has no pytest, so no Python suite ran locally.Why 5 legs. With 4 legs, each leg plans at 318 s of suites. Adding up to 56 s of setup and about 35 s of run-to-run spread puts the worst case near 409 s, against a 420 s limit. With 5 legs, each leg plans at 255 s, so the worst case is near 346 s.
Left out: a live CI run of the new plan, which needs the PR marked ready or a dispatch.
Related
plugins/planning/surface/test_server.py201 s,test_exporters.py132 s,shared/tests/test_server.py124 s,test_share.py123 s,surface/test_round.py98 s, andtest_tunnel.py50 s (up from 25 s). None of them has an obvious trivial waste. The sleeps inshared/tests/test_server.pywait out its one-write-a-second throttle, which is the behavior under test.🤖 Generated with Claude Code