Skip to content

ci: warn on a pull request when a shell suite nears its per-suite time ceiling #16155

Closed as not planned

Description

@kyle-sexton

Problem

A shell suite can pass its pull request's CI a few seconds under the 300 s per-suite ceiling and take main red on the next full run, and nothing shows it is close.

scripts/README.md:76 fails a leg when a suite runs over 300 s. scripts/suite-seconds.txt holds medians measured by hand on 2026-10-03 and 2026-10-23 (its header, lines 1-8) and is not refreshed from CI.

Measured once: pull request 16104 added cases to block-root-delete-target.test.sh; its own CI passed, and main's full run at 2026-11-14T04:56Z failed with that suite at 305 s. scripts/suite-seconds.txt listed the suite at 110 s, then 202 s. Pull request 16144 split the suite, which removed that instance and left the cause.

Outcome

A suite that nears its ceiling is visible on the pull request that grows it, before merge.

Done when

  • Each CI run of a shell suite records the suite's measured wall seconds where a later step or reader can get them (the existing per-suite timing lines in the job log or the job summary; nothing new is uploaded or stored).
  • A pull request whose run measures a suite above a stated share of that suite's ceiling gets a warning annotation naming the suite, its seconds and its ceiling. The share is set in configuration with the measurement that supports it.
  • The warning does not fail the leg; the over-ceiling failure in scripts/README.md is unchanged.
  • A test covers a suite just under the warning share, just over it, and over the ceiling.

Out of scope

  • Changing the 300 s ceiling or any suite's own ceiling row.
  • Refreshing the medians in scripts/suite-seconds.txt that scripts/plan-test-lanes.sh uses to balance legs.

Activity

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

    @github-actions
    Contributor

    Size: Medium
    Complexity: Medium
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Understood: CI should record each shell suite's measured wall seconds and, on pull requests, emit a non-failing warning annotation when a suite exceeds a configured share of its ceiling. The 300 s failure stays unchanged, and a test covers the under-share, over-share and over-ceiling cases. The scope and done-when are exact. I found no duplicate among open issues and no merged pull request that already does this. PR 16144 only split the one suite that failed.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 14, 2026
  4. melodic-automation-lanes commented on Nov 14, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: its title or stated work names a charge (retention), which needs an owner decision. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

    Reason: cost

  5. melodic-automation-lanes commented on Nov 14, 2026

    @melodic-automation-lanes
    Contributor

    The latest triage verdict holds nothing: admission moved the issue to needs-owner-decision; its comment says why.

  6. kyle-sexton commented on Nov 17, 2026

    @kyle-sexton
    MemberAuthor

    Closing as already delivered: #10904 (merged 2026-10-29, "enforce a per-suite wall-clock budget on CI shell suites, warn then fail") already warns on a pull request when a shell suite nears its per-suite ceiling. A reader of this issue reports that pull request 16104's own run printed SLOW: ... took 190s, over the 120s per-suite threshold as a warning annotation. Reopen with a run that shows a suite near its ceiling and no warning. Posted by an agent session.

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

    No labels
    No labels

    Type

    Fields

    Work status

    needs-owner-decision

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions