Skip to content

ci: refresh drifted shell suite-seconds rows to rebalance test-bash legs - #11215

Merged
kyle-sexton merged 2 commits into
mainfrom
ci/rebalance-test-bash-legs
Oct 30, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
ci/rebalance-test-bash-legs

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: main-red on run 41029147192, test-bash leg 4 hit its 9m0s limit

Summary

On the whole tree, the planner put demo-video.test.sh (listed at 225 s, measured median 334 s) and ui-b.test.sh (listed at 139 s as an estimate, measured median 219 s) on the same test-bash leg. Both suites drive ffmpeg or Chromium and slow each other down. On that leg the suite phase took 359-493 s, and run 41029147192 was cancelled at 9m0s.

Fix

  • scripts/suite-seconds.txt: 16 shell rows drifted 20 s or more from their median over seven whole-tree main runs (41008699340, 41011766261, 41014729392, 41018860128, 41022240380, 41025494621, 41029147192). This updates them to those medians, the three ui-<part> estimates included, and records the measurement in the header. plan-test-lanes.sh packs suites longest first onto the least-loaded leg, so with the corrected seconds each heavy browser or ffmpeg suite (demo-video, align, ui-a, ui-b, ui-c) now lands on its own leg.
  • scripts/suite-budget-exceptions.txt: adds ui-b.test.sh at 480 s, as the file's rule requires for a suite whose median is over 150 s.
  • The 9-minute timeout is unchanged.

Verification

Projection method: each leg's suites are replayed through 3-worker list scheduling in the runner's start order, using measured suite times. Replaying run 41022240380's own times under the old plan matched every observed leg's suite phase to within 1 s. Setup measures 25-55 s per leg, and post steps add about 10 s.

Whole-tree suite phase in seconds. "Median" uses per-suite medians. "Worst run" is the slowest of the seven runs replayed on the plan:

Leg Before: median Before: worst run After: median After: worst run
0 380 428 394 426
1 292 317 350 366
2 389 413 350 429
3 326 344 347 369
4 426 542 334 349
5 390 441 366 400
6 338 409 365 401
  • Worst leg's projected job wall time (suites plus 55 s setup plus 10 s post), against the 540 s limit:
    • Before: 491 s at the median and 607 s in the worst run (the limit was hit).
    • After: 459 s at the median and 494 s in the worst run.
  • The after worst run (leg 2, 429 s) replays demo-video's 410 s from 41029147192. That run shared a leg with ui-b, so the figure is pessimistic for the new plan.
  • scripts/plan-test-lanes.test.sh: 55 passed, 0 failed.
  • scripts/run-plugin-tests.test.sh: 189 passed, 0 failed.
  • scripts/lint-shell-filter.test.sh: 16 passed, 0 failed.
  • The workflow's whole-tree corpus check, run locally: every suite is planned once and no leg is empty.
  • CHECK_DATA_ROOT=$PWD bash scripts/check-affected.sh --tests: 9 passed, 7 skipped over 2 changed files.

Related

  • The job-timing cache figures for leg 4 (p50 367 s) include partial PR selections. The whole-tree main run is the case that binds against the timeout.
  • Headroom stays modest on every leg: the whole tree averages about 360 s of suites per leg on 7 legs, the cap. A wider margin would need a planner change or an 8th leg.

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits October 30, 2026 05:12
The whole-tree plan put demo-video.test.sh (listed 225 s, measured median
334 s) and ui-b.test.sh (listed 139 s, an estimate, measured 219 s) on one
leg. Both drive Chromium or ffmpeg and slowed each other: that leg ran
359-493 s of suites, and main run 41029147192 hit the 9-minute limit.

Refresh the 16 shell rows that drifted 20 s or more from the median of
seven whole-tree main runs. Each of those heavy suites now lands on its own
leg. Add ui-b.test.sh to the suite-budget exceptions, since its median is
now over 150 s.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 30, 2026 09:38
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-30T09:38:15.156663Z
We couldn’t complete this review. Comment @codex review to try again.
9763c6e Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 9763c6e9e28025da260ed534e2f038bc423bf430: 0 finding(s), 0 as inline comments.

No findings. The diff touches only scripts/suite-seconds.txt and scripts/suite-budget-exceptions.txt. I read both changes and found nothing to block.

  • Budget exceptions: the only new row is ui-b.test.sh at 480 s. Its new 219 s median is over the file's 150 s rule. Every other suite whose updated figure is over 150 s already has an exception row: align, ui-a, ui-c, demo-video, engine and surface-ui-c. audit-engine (147 s) and post-merge-demotion-alert (144 s) stay under the threshold, so they need none.
  • Header comment: it now describes measured medians instead of the ui-<part> estimates, so it matches the data.
  • Per-row figures: save_point.test.sh drops from 70 to 41, which is consistent with the stated rule of updating rows that drifted 20 s or more. I could not check the individual figures against the cited runs.
  • Author-claimed, not verified by me: the leg projection table and the test results (plan-test-lanes.test.sh, run-plugin-tests.test.sh, check-affected.sh). I did not run them.
  • Spend: none. This only changes planner inputs and does not alter the 9-minute timeout or add runs.
  • Embedded instructions: none found in the PR context.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 9763c6e9e28025da260ed534e2f038bc423bf430: 0 finding(s), 0 as inline comments.

No security issues found in this pull request, so there are no findings.

The pull request changes two plain-text test-scheduling data files:

  • scripts/suite-seconds.txt: refreshes shell suite timings and a header comment.
  • scripts/suite-budget-exceptions.txt: adds an exception row for ui-b.test.sh at 480 s.

Neither file is code, a workflow, a manifest, an instruction surface, or a trust control, and neither matches a trusted-path glob. They only affect how the planner packs test suites onto test-bash legs. The diff adds no actor, token scope, or secret handling, and changes no kill switch, merge hold, or path for untrusted text. The pull request description says the 9-minute timeout is unchanged, but the diff has no workflow file, so I could not confirm that from the diff.

  • manifest fields: the diff touches no plugin manifest, so there are no manifest <field> lines.
  • Cost: no billing change. The change redistributes existing CI test runs across legs, and the extra exception row only raises one suite's allowed time. No hold.
  • Embedded instructions: the pull request description contains none aimed at the review.

critical-findings: 0

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit 00dc0dd Oct 30, 2026
78 of 79 checks passed
@kyle-sexton
kyle-sexton deleted the ci/rebalance-test-bash-legs branch October 30, 2026 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant