Skip to content

perf(pr-pipeline): bring check-plugins back under its 3-minute budget #9398

Closed

Description

@kyle-sexton

No related issue: slowness found by the poteto session, 2026-10-23.

Problem

pr-require-checks.yml (comment around :136-137) records check-plugins at 110 s p95 / 120 s max, with a 3-minute cap. Recent schedule runs took 136-142 s:

By the file's own sizing formula, 1.5 × 142 s = 213 s, which is already over the 180 s cap. The file's rule was to make the job faster or split it, never to raise the timeout.

Refinement (2026-11-02)

The "never raise the timeout" rule is replaced, under the owner's standing direction s1 and s8 (change a convention that adds friction when the evidence shows it; re-pasted by the owner in the HITL Backlog session, 2026-11-02). Measurement showed the work fits the 3-minute budget (job start to last step: median 67 s, p95 81 s, max 94 s over 39 runs), and the cancellations come from a post-step runner tail of up to 152 s (merge-group run https://github.com/melodic-software/claude-code-plugins/actions/runs/41462032858) that no cut to the work removes. Details: the decision comment on this issue, 2026-11-02T17:19Z.

New rule: each job keeps a measured work budget (3 minutes for these jobs); its timeout is that budget plus 3 minutes, at least 6. The runner tail's cause stays open on this issue.

Done when

  • check-plugins' work (job start to last step) runs within its documented budget: p95 × 1.5 ≤ budget, measured per job and reported in the merge-group job summary. Get there by sharding (as perf(ci): run check-plugins' per-plugin validations and mod tests in parallel #9255 started), caching, or moving the whole-tree parts to a schedule-only job.
  • Each affected job's timeout is its budget plus 3 minutes (at least 6), and the sizing comment states that rule.
  • The comment's p95/max figures are updated from measured runs.
  • The post-step runner tail's cause is found, or recorded as outside this repository's control.

Activity

  1. added
    needs-triage
    on Oct 23, 2026
  2. github-actions commented on Oct 23, 2026

    @github-actions
    Contributor

    Proposed work class: work-class: scoped
    Basis: automated intake triage; the lanes App applied this class.

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none

    Decision recorded.
    Agent choice, not an owner answer.
    What is left goes to the host queue (host-run): one post-merge measurement.
    Written by the Issue Triage session from the issue history, the bodies of #12400 and #12597, and origin/main.
    [quote truncated; the full decision is at the link]

    #9398 (comment)

    The decision settles the open questions. The timeout and sizing-comment work is delivered, and the runner-tail cause is recorded as outside this repository's control. One item is left: reading check-plugins' work seconds from at least 5 merge-group ci-status summaries, then posting p95, max and 1.5 × p95 with run links. That is a host-run measurement, so admission routes it. No likely duplicates found.

    Automated triage, applied by the lanes App.

  3. added and removed
    needs-triage
    on Oct 23, 2026
  4. added
    status: ready
    needs-owner-decision
    and removed
    status: ready
    on Oct 23, 2026
  5. melodic-automation-lanes commented on Oct 23, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: its done-when asks for what an unattended lane run cannot perform: item 1 (tracker-output: "check-plugins' work (job start to last step) is read on a host from the ci-st..."), item 2 (tracker-output: "A comment on #9398 lists at least 5 merge-group run links dated after f43ca9b..."); recommended split: keep the other items here as the admissible issue and move these to a child issue for the host queue (host-run); its body or a criterion names .github/workflows/pr-require-checks.yml, which the issue lane cannot push (patch-protected-path); a builder session takes it; it carries host-run. Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  6. removed
    needs-owner-decision
    on Oct 26, 2026
  7. kyle-sexton commented on Oct 26, 2026

    @kyle-sexton
    MemberAuthor

    Released for re-triage under the owner's 2026-10-24 rule: an issue stops for a person only for an intent or vision question, a security call, a host or attended run, or spend outside prepaid credit. The hold label came off and intake triage runs again now; it re-applies a hold, with a numbered question, when one of those applies.

    To hold this issue again, add needs-human (or status: needs-decision) and say why in a comment.

  8. added
    status: ready
    needs-owner-decision
    and removed
    status: ready
    on Oct 26, 2026
  9. 59 remaining items

  10. removed
    status: ready
    on Nov 4, 2026
  11. added
    needs-triage
    and removed
    status: confirmed
    on Nov 4, 2026
  12. melodic-automation-lanes commented on Nov 4, 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: Post check-plugins' measured work time (p95, max, 1.5 × p95 against the 180 s budget, with run links) from at least 5 merge-group ci-status summaries after f43ca9b, then close the issue.

    Acceptance criteria

    • A comment on #​9398 lists at least 5 merge-group run links dated after f43ca9b (#​12400 merged), each with check-plugins' work seconds read from that run's ci-status job summary
    • The comment states the p95 and max work seconds across those runs, and 1.5 × p95
    • The comment states whether 1.5 × p95 is at most 180 s
    • If 1.5 × p95 exceeds 180 s, the comment names the job as over budget and a follow-up issue is opened for sharding or caching it instead of closing this one
    • pr-require-checks.yml's JOB COSTS comment lists check-plugins p95/max figures that match the posted measurement, or the comment says they are unchanged
    • pr-require-checks.yml:144-152 still states that a job's timeout is its work budget plus 6 minutes
    • The runner-tail cause stays recorded as outside this repository's control (run 41529399052 log; 0 of 147 merge-group runs cancelled after success since 82a1475)

    External state: none

    Dependencies

    • #​12400 (merged, f43ca9b): provides the ci-status work/tail job summary the measurement reads
    • #​12597 (merged, 82a1475): sets the work budget plus 6 minute timeout rule
    • At least 5 merge-group runs after f43ca9b must exist with a ci-status summary

    Sources read

    • /home/runner/work/claude-code-plugins/claude-code-plugins/.base/.github/workflows/pr-require-checks.yml:136-152: sizing comment states the work budget rule, timeout is budget plus 6 minutes, and tail is recorded in the ci-status summary
    • /home/runner/work/claude-code-plugins/claude-code-plugins/.base/.github/workflows/pr-require-checks.yml:4934-4961: merge-group ci-status step Record each job's runner tail writes work s and tail s per job
    • refine-data/context.json: the 2026-11-04 decision comment leaves one item, the post-change measurement of check-plugins' work from at least 5 merge-group summaries

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

  13. removed
    needs-triage
    on Nov 4, 2026
  14. added
    status: ready
    on Nov 4, 2026
  15. added
    status: confirmed
    and removed
    status: ready
    on Nov 4, 2026
  16. kyle-sexton commented on Nov 4, 2026

    @kyle-sexton
    MemberAuthor

    Host run: the last item is met. check-plugins' work is well under its 180 s budget.

    Measure Seconds
    p95 78
    max 80
    1.5 × p95 117
    1.1 × max 88
    median 69
    • Sample: 39 successful check-plugins jobs in the newest 40 merge-group runs, 2026-11-04 03:18Z to 06:00Z, all after f43ca9b.
    • Method: the same reading the ci-status step Record each job's runner tail writes to its job summary: job start to the last step's end, read from the same jobs API (pr-require-checks.yml:4945-4949). GitHub's REST API does not serve job summaries, so I read the source rows rather than the rendered tables.
    • Longest five runs: 80 s, 78 s, 77 s, 76 s, 76 s.

    The budget rule gives ceil(max(117, 88) / 60) = 2 minutes, floored at 3, so the 3-minute budget holds. The rest was delivered by #12400 and #12597, as the 11-04 decision comment records.

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

    host-runstatus: confirmed

    Type

    Fields

    Work status

    confirmed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions