You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci(test-bash): legs run near their 540 s timeout; plan more legs and split the oversized suites #12513
The test-bash legs of .github/workflows/pr-require-checks.yml run close to their 540 s timeout (timeout-minutes: 9). Over 2026-10-26 to 11-02 the hub's job-timing cache shows a merge-queue job p95 of 415 to 511 s per leg and a main (whole-tree) job p95 of 428 to 516 s, with 15 timeouts in the merge queue and 3 on main. The workflow sizes a job so that 1.5 x p95 fits its timeout, which means a job p95 of at most 360 s. No leg meets that today.
scripts/plan-test-lanes.sh caps test-bash at 7 legs and forces 7 on the whole tree. The shell corpus is about 6,850 measured suite-seconds.
scripts/suite-seconds.txt has drifted. plugins/guardrails/hooks/block-root-delete-target.test.sh ran 436 to 450 s against its listed 248 s, so the planner stacked other work next to it. Thirteen shell rows are 20 s or more off.
Two single suites can hold a leg above 360 s on their own, at any leg count: block-root-delete-target.test.sh (about 441 s) and plugins/planning/shared/tests/align.test.sh (254 to 366 s).
Acceptance criteria
test-bash legs are planned so that each leg's job p95 x 1.5 fits 540 s, measured on main after merge. timeout-minutes is not raised.
Claim. Backlog HITL host-run worker is taking this now.
Decision recorded. (agent; not an owner decision) The first PR raises the test-bash leg cap from 7 to 12 and refreshes the drifted scripts/suite-seconds.txt rows. The two oversized suites, block-root-delete-target.test.sh (about 441 s) and align.test.sh (254 to 366 s), are split in follow-up work on this issue, not in that PR. Basis: one suite's wall sets a floor for its leg at any leg count. In the guard suite, 5 helper functions and 12 fixture variables defined before the midpoint are used after it, so a split needs its own shared-fixture file and a case-label parity check. That is a separate change to a security guard's tests.
Proposed work class: work-class: scoped
Basis: automated intake triage; the lanes App applied this class.
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Understood: the test-bash legs in pr-require-checks.yml run close to their 540 s timeout. The planner's leg cap and drifted suite-seconds rows are the cause, along with two oversized suites. The asks are: plan the legs so that 1.5 x p95 fits, keep the cap as a tested planner constant, and split or speed up any suite that holds a leg above 360 s alone. The approach is clear from the issue (raise the cap, refresh the rows, then split the two suites), so nothing is missing. The done-when check, a p95 measured on main after merge, takes time to observe but is not a blocker for starting. No duplicate found. #12457 is related, since it covers timing flakes in test-bash, but it asks for a different change.
Not admitted to the issue lane: a criterion names .github/workflows/pr-require-checks.yml, which the issue lane cannot push (patch-protected-path); a builder session takes it. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: Raise the test-bash leg cap in scripts/plan-test-lanes.sh from 7 to 12, refresh the drifted scripts/suite-seconds.txt rows, and cover the cap in plan-test-lanes.test.sh; the two oversized suites are split in follow-up work.
Acceptance criteria
scripts/plan-test-lanes.sh line 427 passes cap 12 for the bash lane instead of 7, and the header comment at lines 57-60 says up to 12 legs and that the whole tree always takes 12 (or states the new whole-tree rule)
The bash leg cap stays a planner constant in scripts/plan-test-lanes.sh, not a workflow input
scripts/plan-test-lanes.test.sh has a case that fails if the test-bash cap is not 12 and passes with it, following the test-python cap case from #12433
scripts/suite-seconds.txt row for plugins/guardrails/hooks/block-root-delete-target.test.sh is updated from 248 to about 441
scripts/suite-seconds.txt row for plugins/planning/shared/tests/align.test.sh is updated from 340 to the median of the cited main runs
The other shell rows in scripts/suite-seconds.txt that are 20 s or more off the measured medians are refreshed from the TIME lines of the four cited main runs
The timeout-minutes: 9 value for test-bash in .github/workflows/pr-require-checks.yml is unchanged
bash scripts/plan-test-lanes.test.sh passes
A follow-up issue or task exists for splitting block-root-delete-target.test.sh (needs a shared-fixture file and a case-label parity check) and for splitting or speeding up align.test.sh; this issue stays open until they land
After merge, each test-bash leg's job p95 x 1.5 is at most 540 s on main; this is measured after merge and is not checked in the PR
External state: none
Dependencies
Follow-up work on this issue: split block-root-delete-target.test.sh and align.test.sh, since a single suite sets a leg floor at any leg count
Post-merge p95 measurement on main from the hub job-timing cache to confirm the outcome
Closing: all three criteria are met by merged work. Leg cap and table: #12515 (scripts/plan-test-lanes.sh:427 passes 12; a 12-to-13 mutation fails plan-test-lanes.test.sh). Oversized suites split: #12547 (root-delete guard, five parts) and #12563 (align, three parts). Measured on main since 01:00Z over 7 whole-tree runs (76 test-bash jobs, about 3.5 hours): job p95 323 s, worst leg p95 356 s (x 1.5 = 534 s against 540 s), 0 jobs over 360 s, longest suite max 260 s. Filed baseline was 428 to 516 s. Caveats: the sample is 6 or 7 per leg and the margin is 4 s, and a merge-queue leg reached 365 s at n=10, outside this criterion, which names main. Reopen if main leg p95 passes 360 s.
Activity
kyle-sexton commentedon Nov 2, 2026
Claim. Backlog HITL host-run worker is taking this now.
Decision recorded. (agent; not an owner decision) The first PR raises the test-bash leg cap from 7 to 12 and refreshes the drifted
scripts/suite-seconds.txtrows. The two oversized suites,block-root-delete-target.test.sh(about 441 s) andalign.test.sh(254 to 366 s), are split in follow-up work on this issue, not in that PR. Basis: one suite's wall sets a floor for its leg at any leg count. In the guard suite, 5 helper functions and 12 fixture variables defined before the midpoint are used after it, so a split needs its own shared-fixture file and a case-label parity check. That is a separate change to a security guard's tests.github-actions commentedon Nov 2, 2026
Proposed work class: work-class: scoped
Basis: automated intake triage; the lanes App applied this class.
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Understood: the test-bash legs in pr-require-checks.yml run close to their 540 s timeout. The planner's leg cap and drifted suite-seconds rows are the cause, along with two oversized suites. The asks are: plan the legs so that 1.5 x p95 fits, keep the cap as a tested planner constant, and split or speed up any suite that holds a leg above 360 s alone. The approach is clear from the issue (raise the cap, refresh the rows, then split the two suites), so nothing is missing. The done-when check, a p95 measured on main after merge, takes time to observe but is not a blocker for starting. No duplicate found. #12457 is related, since it covers timing flakes in test-bash, but it asks for a different change.
Automated triage, applied by the lanes App.
melodic-automation-lanes commentedon Nov 2, 2026
Not admitted to the issue lane: a criterion names .github/workflows/pr-require-checks.yml, which the issue lane cannot push (patch-protected-path); a builder session takes it. Admission takes the issue once each of those is met, when intake triages it again (
.github/actions/resolve-config/admission-rules.json).melodic-automation-lanes commentedon Nov 2, 2026
The latest triage verdict holds nothing: admission moved the issue to
status: confirmed; its comment says why.melodic-automation-lanes commentedon Nov 2, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: Raise the test-bash leg cap in scripts/plan-test-lanes.sh from 7 to 12, refresh the drifted scripts/suite-seconds.txt rows, and cover the cap in plan-test-lanes.test.sh; the two oversized suites are split in follow-up work.
Acceptance criteria
External state: none
Dependencies
Related work
Sources read
Automated refinement by the lanes App. Intake triages the issue again with it.
test(guardrails): give each root-delete suite part its own temp trap
kyle-sexton commentedon Nov 3, 2026
kyle-sexton commentedon Nov 3, 2026
Closing: all three criteria are met by merged work. Leg cap and table: #12515 (
scripts/plan-test-lanes.sh:427passes 12; a 12-to-13 mutation failsplan-test-lanes.test.sh). Oversized suites split: #12547 (root-delete guard, five parts) and #12563 (align, three parts). Measured on main since 01:00Z over 7 whole-tree runs (76 test-bash jobs, about 3.5 hours): job p95 323 s, worst leg p95 356 s (x 1.5 = 534 s against 540 s), 0 jobs over 360 s, longest suite max 260 s. Filed baseline was 428 to 516 s. Caveats: the sample is 6 or 7 per leg and the margin is 4 s, and a merge-queue leg reached 365 s at n=10, outside this criterion, which names main. Reopen if main leg p95 passes 360 s.