Skip to content

perf(test): enforce a per-suite wall-clock budget in CI, warn then fail #10230

Closed

Description

@kyle-sexton

Parent: #3716 (slice 3 of 3). Runs in parallel with slice 1.
Runs in: lane.

Problem

#3716 criterion 6: a documented per-suite wall-clock budget that warns above a threshold and fails above a ceiling, so a suite cannot grow past what a contributor can run. Today nothing enforces a per-suite time: scripts/plan-test-lanes.sh uses scripts/suite-seconds.txt only to size and balance CI legs (ceil(seconds / budget)), and fleet-state.test.sh once passed the 600 s tool maximum on its own (#3716 comment). #8757 covers the separate local affected-run budget; this slice is the per-suite CI check.

Fix

  1. Add a CI check that reads each suite's measured wall seconds from the test legs of the run and compares it with a documented threshold and ceiling: above the threshold prints a warning naming the suite; above the ceiling fails. Seed the threshold and ceiling from the current scripts/suite-seconds.txt distribution so no suite on main fails on day one; state the numbers and their basis where the check is documented.
  2. A suite that legitimately needs more gets a named per-suite exception in one listed file, so an exception is visible in review.
  3. Document the budget in the scripts' docs where contributors read how to run tests.

Done when

  • A test for the check shows a suite above the threshold produces a warning and exit 0, and a suite above the ceiling exits non-zero
  • The check runs on pull requests and is green on main's current suite times
  • The threshold, ceiling and their basis are written in one documented place, and the exception list is one file
  • ci-status is green on the PR head

Split by the backlog HITL session (2026-10-25, owner rule Q93: split large work before a run picks it up). This was generated by AI.

Activity

  1. added
    needs-triageNot yet classified. Floor until a type and one priority tier are set.
    on Oct 26, 2026
  2. github-actions commented on Oct 26, 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: Knowable
    Flags: none
    Blocked by: none

    I understood this as a bounded change: a CI check that compares each suite's measured wall seconds with a documented warn threshold and fail ceiling, with a single per-suite exceptions file and docs for contributors. The numbers would be seeded from the current suite-seconds data.

    Some of it may already exist. A suite-budget exceptions file is already in scripts/, and a previous pull request (#10904) merged with Refs:. Before more work starts, someone should check which of the done-when items that change already covers: the test for warn vs fail, the pull-request run, the documented numbers and basis, and a green ci-status.

    No likely duplicates found among the open issues.

    Automated triage, applied by the lanes App.

  3. added
    priority: mediumReal value, no hard deadline; normal backlog flow.
    and removed
    needs-triageNot yet classified. Floor until a type and one priority tier are set.
    on Oct 26, 2026
  4. added
    admission-deferredAdmitted but waiting for WIP room; the hourly work-unblock sweep labels it agent-ready.
    agent-readyFully specified and briefed; eligible for autonomous pickup from the frontier.
    and removed
    admission-deferredAdmitted but waiting for WIP room; the hourly work-unblock sweep labels it agent-ready.
    on Oct 28, 2026
  5. melodic-automation-lanes commented on Oct 29, 2026

    @melodic-automation-lanes
    Contributor

    This records a re-fire of an earlier refusal, not a new refusal. The lanes kill switch stopped run 40797519639, the work-resolve-issue run that agent-ready started, before it did any work; that run ended at 2026-10-29T01:32:15Z. work-unblock has now removed and added agent-ready back to start a fresh run. A kill-switch refusal is no fault in this issue or the lanes, so it never counts against later re-fires; after limits.limit-stops-per-issue of them since a person last added agent-ready or a run last reported, work-unblock waits longer before each one, up to 24 hours.

  6. added
    agent-readyFully specified and briefed; eligible for autonomous pickup from the frontier.
    and removed
    agent-readyFully specified and briefed; eligible for autonomous pickup from the frontier.
    on Oct 29, 2026
  7. melodic-automation-lanes commented on Oct 29, 2026

    @melodic-automation-lanes
    Contributor

    The lanes App's pull request #10904 merged with Refs:, so this issue stays open and nothing starts the lane on it again. work-unblock removed status: ready and agent-ready, so the hourly triage sweep sends it back to intake triage. Admission then parks it at status: confirmed for a check of what that pull request left, until a **Decision recorded.** comment says what is left or someone closes it.

  8. removed
    status: readyTriaged, unblocked, and fully specified; eligible to pick up.
    agent-readyFully specified and briefed; eligible for autonomous pickup from the frontier.
    on Oct 29, 2026
  9. github-actions commented on Oct 29, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (attempt 1 of 2).

  10. added
    status: readyTriaged, unblocked, and fully specified; eligible to pick up.
    status: confirmedA maintainer confirmed the item is real and in scope; ready to be worked.
    and removed
    status: readyTriaged, unblocked, and fully specified; eligible to pick up.
    on Oct 29, 2026
  11. melodic-automation-lanes commented on Oct 29, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: merged pull request #10904 names it with Refs: after its newest decision or refinement comment, so its work may already be done: close the issue if it is, or post a comment whose first line is **Decision recorded.** saying what is left, which sends it back through intake. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  12. melodic-automation-lanes commented on Oct 29, 2026

    @melodic-automation-lanes
    Contributor

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

  13. kyle-sexton commented on Oct 30, 2026

    @kyle-sexton
    MemberAuthor

    All four Done-when criteria hold on main (eb1ac00); closing as completed by #10904 (merge 0795dc1).

    • Threshold warning / ceiling failure test: scripts/run-plugin-tests.test.sh:641-662.
    • Runs on pull requests, green on main's suite times: scripts/run-plugin-tests.sh:259-262 turns the check on whenever GITHUB_ACTIONS=true; pr-require-checks.yml is the only workflow that runs the runner, on PRs and in the merge queue (green merge-queue run 41067381006). Every shell suite median in scripts/suite-seconds.txt is under its ceiling: the two over 300 s (align.test.sh 340, demo-video.test.sh 334) have 480 s rows in scripts/suite-budget-exceptions.txt.
    • One documented place, one exception file: README.md "Per-suite time budget in CI" (120 s warn, 300 s fail, basis from the suite-seconds medians); scripts/suite-budget-exceptions.txt.
    • ci-status green on the PR head: perf(test): enforce a per-suite wall-clock budget on CI shell suites, warn then fail #10904 merged through the merge queue, which requires it.

    Outside the Done-when: the check times shell suites only. The slowest Python suite median is 158 s (test_share.py), under the 300 s ceiling, so no Python suite is over budget today.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: mediumReal value, no hard deadline; normal backlog flow.status: confirmedA maintainer confirmed the item is real and in scope; ready to be worked.work-class: scopedA briefed fix or small feature; blast radius bounded by the brief, tests exist.

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions