Skip to content

ci(test-bash): legs run near their 540 s timeout; plan more legs and split the oversized suites #12513

Closed

Description

@kyle-sexton

Problem

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.

Causes, from the TIME: lines of four whole-tree main runs (41501297702, 41507989564, 41512679251, 41517754843):

  • 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

Activity

  1. kyle-sexton commented on Nov 2, 2026

    @kyle-sexton
    MemberAuthor

    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.

  2. added
    needs-triage
    on Nov 2, 2026
  3. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    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.

  4. added and removed
    needs-triage
    on Nov 2, 2026
  5. added
    status: ready
    on Nov 2, 2026
  6. added
    status: confirmed
    and removed
    status: ready
    on Nov 2, 2026
  7. melodic-automation-lanes commented on Nov 2, 2026

    @melodic-automation-lanes
    Contributor

    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).

  8. melodic-automation-lanes commented on Nov 2, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: admission moved the issue to status: confirmed; its comment says why.

  9. added
    needs-triage
    and removed
    status: confirmed
    on Nov 2, 2026
  10. melodic-automation-lanes commented on Nov 2, 2026

    @melodic-automation-lanes
    Contributor

    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

    Related work

    Sources read

    • scripts/plan-test-lanes.sh:57-72: legs sized as ceil(seconds/budget), test-bash 120 s a leg up to 7 legs, whole tree always 7
    • scripts/plan-test-lanes.sh:427: pack bash 120 7 "$whole" 3 ... sets the cap and force
    • scripts/suite-seconds.txt:257: block-root-delete-target.test.sh listed at 248
    • scripts/suite-seconds.txt:444: align.test.sh listed at 340
    • scripts/plan-test-lanes.test.sh: has cap and legs cases to extend
    • refine-data/context.json: owner decision comment sets cap 7 to 12 and suite splits as follow-ups

    Automated refinement by the lanes App. Intake triages the issue again with it.

  11. removed
    needs-triage
    on Nov 2, 2026
  12. added
    status: ready
    on Nov 2, 2026
  13. added
    status: confirmed
    and removed
    status: ready
    on Nov 2, 2026
  14. self-assigned this
    on Nov 3, 2026
  15. kyle-sexton commented on Nov 3, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  16. kyle-sexton commented on Nov 3, 2026

    @kyle-sexton
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

status: confirmed

Type

Fields

Work status

confirmed

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions