Repository navigation
ci: a release-critical pull request is admitted at once - #12108
Conversation
A pull-request run labelled release-critical starts at once, even when CI is full and ahead of a waiting main check, and still runs every job (spec:AST-030 DEC-30). The label counts only when its newest application came from someone with write access, through the rule the ci:run labels follow (run-labels.cjs); a failed lookup does not count it. The admission job checks out .github/scripts/lib, which brings the scripts that check reads.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report🔎 Preview ·
|
| Before | After | Change | |
|---|---|---|---|
| Job-minutes per PR update | 180 | 235.6 | +55.6 |
| Runner pool, runner-minutes a day | 67,168 | 87,929 | +20,761 (+31%) |
| Average concurrent jobs | 46.6 | 61.1 | +14.4 |
| Time to green (median → this run) | 50.5 min | 45.4 min | −5.1 min |
| Runs a day | 373 | 373 | 0 |
Changed jobs: admission changed: standard · pr-interaction changed: standard · pr-interaction-webkit changed: standard
Not measured (the jobs that use these keep their recent minutes above): .github/actions/ci-admission/action.yml, .github/actions/heavy-caps/action.yml, .github/scripts/ci-admission.test.mjs, .github/scripts/heavy-caps-action.test.mjs.
Flags: runner-pool usage +31%.
Assumptions: before is each job's average over the last 20 pull-request runs; after keeps that for unchanged jobs and uses this run's minutes for added or changed ones, weighted by how often each changed job ran in those runs; runs a day averages the seven whole days before today; time to green compares this run with the median of those runs that ran the same jobs.
Generated by PR Enrichment workflow | View full report
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the CI admission rule, and on one fix to the description.
This change lets a release-critical pull request skip the CI wait, which the current CI record (spec:AST-030 FR16 and DEC-16) does not allow, and the exemption exists only as DEC-30 in the open record pull request #12106. Approval needs an engineering owner to update the existing spec for this intentional change and to settle its scope, because DEC-30 as proposed also exempts a labelled pull request from the per-author heavy-suite holds, which this change leaves in place. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.
Blocking:
- The description says a maintainer labels a pull request and its CI run starts at once, but CI never starts on a label event and the action reads the labels of the event that started the run, so please say that the label takes effect on the next push, reopen or ready toggle, in the description and in the header comment at
.github/actions/ci-admission/action.yml:53-55.
Also worth a look:
- The
admissionjob reads the label timeline withoutpull-requests: read, which therun-labelsjob grants for the same query, so a re-run of the admission job alone may ignore the label.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: a labelled run starts at once, skipping the ceiling, the yield to a waiting main check and the longest-wait rule, with
fitstrue, no look and a notice. Verified:action.yml:229-245and the first release-critical test. - Claim: the label counts only when its newest application came from someone with write access, through the function the
ci:run-*labels use. Verified:action.yml:233-234andrun-labels.cjs:122-128. - Claim: a failed lookup does not count the label. Verified:
action.yml:235-237and the second release-critical test. - Claim: the check runs in every phase, so a re-run of the admission job decides the same way. Partly verified: the code runs before the phase logic, but the admission job lacks
pull-requests: readfor the timeline read. - Claim: the admission job's checkout now brings the label scripts, as room's does. Verified:
ci.yml:266-271. The cone-mode sparse checkout includes the parent folder's files, andreview-signal-decision.cjsimports nothing. - Claim: unlabelled runs, untrusted labels, main runs and which jobs a run starts are unchanged. Verified: the second and third release-critical tests, and no job condition changed.
- Claim: a maintainer labels the pull request and its CI run starts at once. False as worded: see the blocking finding.
- Claim: the admission and run-labels tests pass 90 of 90, and five other CI test files pass 106 of 106. Verified by running them.
- Claim: with main's action the start-at-once case fails and the other two pass. Verified with the head's tests against the base action.
- Claim: prettier passes. Verified. The actionlint claim was not checked.
- Claim: a labelled run can take CI past its ceiling by one run's jobs. True per labelled run, but several labelled runs add up.
- Claim: the decision is recorded as DEC-30 in #12106. That pull request proposes it, but it is open and not on main.
- Claim: the overlap with #12100 merges cleanly. Verified: the two heads merge without conflict.
- File
.github/actions/ci-admission/action.yml: blocking finding (when the label applies) and a non-blocking note (the checkout sentence at lines 58-59). - File
.github/scripts/ci-admission.test.mjs: clear. - File
.github/workflows/ci.yml: non-blocking note (admission job permissions).
heavy-caps reads the same trusted release-critical label as admission (spec:AST-030 DEC-30), and the two heavy jobs' sparse checkouts bring the scripts it reads. The admission job reads pull requests, so a re-run of it alone reads the label's timeline. The header says a label takes effect on the next push, reopen or ready toggle: CI starts on no label event.
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the CI admission and heavy-suite rules, and on one fix.
This change lets a release-critical pull request skip the CI wait and the per-author heavy-suite caps, which the current CI record (spec:AST-030 FR16 and DEC-16) does not allow; DEC-30, which allows it and now matches this change, is approved in #12106, but #12106 has not merged. Approval needs an engineering owner to update the existing spec for this intentional change, either by merging #12106 or by commenting /approve-spec <full head SHA> on this pull request, which the author may do as an engineering owner. The earlier finding about the labelling wording and both earlier notes are fixed.
Blocking:
- Miss: a trusted
release-criticalrun never looks for room, so admission leaveswideat'false'(.github/actions/ci-admission/action.yml:215,:241-247) and, whenever CI has room, its Node legs and swizzle-proof slices run two at a time instead of up to eight, so the labelled run finishes later than the same run unlabelled; please let a trusted run take one look to pick its width, start whatever it finds, and add a test for an empty CI.
Also worth a look:
- With an untrusted or unreadable label, both actions log run-labels' suite wording ("the release-critical suite does not run"), but there is no such suite and the run still runs, so a label-specific message would read better.
Claims and files checked
Review mode: incremental; reason: none
- Claim: the label takes effect on the next push, reopen or ready toggle, and that run starts at once whatever the load: verified (
ci.yml:21,ci-admission/action.yml:229-247,ci-admission.test.mjs:1402-1423). - Claim: a labelled pull request's heavy suites are never held by the per-author caps: verified (
heavy-caps/action.yml:41-51,heavy-caps-action.test.mjs:387-398). - Claim: a labelled run still runs every job: verified, no job condition reads the label; its widening matrices run at tight width (the blocking finding).
- Claim: the run skips the ceiling, the yield to a waiting
maincheck and the longest-wait rule, with no look and a notice: verified (ci-admission/action.yml:241-246). - Claim: only the newest application by someone with write access counts, through the same check as the
ci:run-*labels: verified (run-labels.cjs:46-69,:101-128,:164-172). - Claim: a failed lookup does not count the label in either action: verified (
run-labels.cjs:94-98,:115-118; both new test files). - Claim: the check runs in every admission phase, so a re-run of the admission job decides the same way: verified (the label branch precedes the phase logic;
ci.yml:248-252). - Claim: the admission checkout and both sparse heavy-caps checkouts bring the scripts the check reads: verified (
ci.yml:271-273,:3573-3575,:3916-3918;test-builduses a full checkout). - Claim: runs without a trusted label,
mainruns and the set of jobs a run starts are unchanged: verified (tests; no pull-request payload outside pull-request events). - Claim: the six named suites pass 188 of 188: verified by running them.
- Claim: with the base's actions the start-at-once and never-held cases fail and the no-change cases pass: verified; two workflow-contract cases also fail there.
- Claim: prettier passes: verified. Claim: actionlint passes: not checked.
- Claim: a labelled run can take CI past its ceiling by one run's jobs: verified per labelled run.
- Claim: the decision is recorded as DEC-30 in #12106: verified; #12106 is open and approved at its head.
- Claim: the overlap with #12100 merges cleanly: verified against the current base branch.
- Claim: an earlier pull request missed a release freeze after two turn-aways: context, not checked.
- File
.github/actions/ci-admission/action.yml: blocking finding (tight width) and the notice note. - File
.github/actions/heavy-caps/action.yml: the notice note; otherwise clear. - File
.github/workflows/ci.yml: clear. - File
.github/scripts/ci-admission.test.mjs: clear. - File
.github/scripts/heavy-caps-action.test.mjs: clear.
|
/approve-spec 351c2d5 |
|
/approve-spec 8006bf8 |
There was a problem hiding this comment.
Changes requested: one fix remains. The spec question is settled: DEC-30 is now current on main, and an engineering owner approved this head.
Blocking:
- Miss: (raised in the last review, still open) a trusted
release-criticalrun never looks for room, so admission leaveswideat'false'(.github/actions/ci-admission/action.yml:218,:244-250) and, whenever CI has room, its Node legs and swizzle-proof slices run two at a time instead of up to eight, so the labelled run finishes later than the same run unlabelled; please let a trusted run take one look to pick its width, start whatever it finds, and add a test for an empty CI.
Also worth a look:
- With an untrusted or unreadable label, both actions log run-labels' suite wording ("the release-critical suite does not run"), but there is no such suite and the run still runs, so a label-specific message would read better.
CI has not run on this draft yet.
Claims and files checked
Review mode: full; reason: merge-touches-pr-files
- Claim: A trusted label makes the next run (push, reopen or ready toggle; CI starts on no label event) start at once, whatever the load: verified (
ci.yml:17-21,ci-admission/action.yml:236-250,ci-admission.test.mjs:1500-1521). - Claim: That run skips the ceiling, the yield to a waiting
maincheck and the longest-wait rule, withfitstrue, no look and a notice: verified (ci-admission/action.yml:244-250). - Claim: Its heavy suites are never held by the per-author caps: verified (
heavy-caps/action.yml:41-51,heavy-caps-action.test.mjs:387-396). - Claim: It still runs every job: verified, no job condition reads the label; its widening matrices run at tight width (the blocking finding).
- Claim: Only the newest application by someone with write access counts, through the same function as the
ci:run-*labels: verified (run-labels.cjs:46-69,:101-128,:164-172). - Claim: A failed lookup does not count the label, in either action: verified (
run-labels.cjs:94-98,:115-118; both new test cases). - Claim: The check runs in
room,restandwhole, so a re-run of the admission job decides the same way: verified (the branch precedes the phase logic;ci.yml:249-252). - Claim: The admission checkout and both sparse heavy-caps checkouts bring the scripts the check reads: verified (
ci.yml:271-273,:3591-3593,:3934-3936;test-builduses a full checkout). - Claim:
admissionnow reads pull requests, asroomand the heavy jobs already do: verified (ci.yml:146-150,:249-252, and the three heavy jobs' permissions). - Claim: Runs without a trusted label,
mainruns and which jobs a run starts are unchanged: verified (no pull-request payload onmainruns; the untrusted cases match an unlabelled run). - Claim: The label is created and applied only after merge: consistent, no code creates or applies it.
- Claim: The test cases described (a 112-job CI with a
maincheck waiting; a reader's label, no label event, a failed lookup; another label): verified in both test files. - Claim: The heavy jobs' sparse checkouts are checked to bring
.github/scripts/lib: verified (heavy-caps-action.test.mjs:481-486). - Claim: The six named suites pass 188 of 188: verified in substance, 192 of 192 at this head, where the merge of
mainadded four cases. - Claim: With
main's actions only the start-at-once and never-held cases fail: verified (2 fail, 80 pass in those two suites). - Claim: prettier and actionlint pass: prettier verified; actionlint not checked.
- Claim: A labelled run can take CI past its ceiling by at most one run's jobs, and the label is for the three cases the decision names: consistent with DEC-16 and DEC-30.
- Claim: The decision is recorded as DEC-30, current on
main, which this change implements: verified. - Claim: The overlap with #12100 keeps both changes after a merge: verified, both header bullets are present.
- Claim: The account of an earlier release missing its freeze: not checked (context only).
- File:
.github/actions/ci-admission/action.yml: blocking (tight width for a trusted run); non-blocking (notice wording). - File:
.github/actions/heavy-caps/action.yml: non-blocking (notice wording); otherwise clear. - File:
.github/scripts/ci-admission.test.mjs: clear; the width fix needs one more case here. - File:
.github/scripts/heavy-caps-action.test.mjs: clear. - File:
.github/workflows/ci.yml: clear.
A trusted release-critical run returned before any look, so its legs always ran at tight width, slower than the same run unlabelled. It now takes one look at once, in any phase: it always fits, and runs its legs at full width when CI has room for them. Untrusted-label messages are the label's own, not the shared check's suite wording.
|
/approve-spec 91fa000 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet because the pull request is a draft; it runs once the pull request is marked ready for review, and its required checks must pass before merge.
The earlier blocker is fixed: a trusted release-critical run now takes one immediate look, so on a CI with room its legs run at the same full width as the same run unlabelled, and an untrusted or unreadable label now logs a label-specific line instead of the suite wording.
Claims and files checked
Review mode: incremental; reason: none
- Claim: a trusted label makes the next run (push, reopen or ready toggle; no label event starts CI) start at once, whatever the load: verified (
ci.yml:21,ci-admission/action.yml:239-247,:334-343,ci-admission.test.mjs:1500-1526). - Claim: that run skips the ceiling, the yield to a waiting
maincheck and the longest-wait rule: verified (ci-admission/action.yml:276,:334). - Claim: it takes one look at once, in any phase, only to pick its width, full when CI has room, as an unlabelled run would get: verified for the same look (
ci-admission/action.yml:338,ci-admission.test.mjs:1528-1553). - Claim:
fitsis true and a notice says why and at which width: verified (ci-admission/action.yml:335,:341). - Claim: its heavy suites are never held by the per-author caps: verified (
heavy-caps/action.yml:41-53,heavy-caps-action.test.mjs:387-422). - Claim: it still runs every job: verified, no job condition reads the label.
- Claim: only the newest application by someone with write access counts, through the same function as the
ci:run-*labels: verified (run-labels.cjs:50-69,:122-135,:164-172). - Claim: a failed lookup does not count the label, so the run waits or is held as before, with a label-specific line: verified (
ci-admission/action.yml:243-246,heavy-caps/action.yml:49-51, both test files). - Claim: the check runs in
room,restandwhole, so a re-run of the admission job decides the same way: verified (the check precedes the phase logic,ci-admission/action.yml:239-256;ci.yml:286). - Claim: the admission checkout and both sparse heavy-caps checkouts bring the scripts the check reads: verified (
ci.yml:265-273,:3586-3594,:3929-3937;heavy-caps-action.test.mjs:481-486). - Claim:
admissionnow reads pull requests, asroomand the heavy jobs already do: verified (ci.yml:146-150,:248-252, and the three heavy jobs' permissions). - Claim: runs without a trusted label,
mainruns and which jobs a run starts are unchanged: verified (no pull-request payload onmain, merge-queue and dispatch runs; the untrusted cases match an unlabelled run). - Claim: the label is created and applied only after merge: consistent, no code creates or applies it.
- Claim: the described test cases (a 112-job CI with a
maincheck waiting; full and tight width; a reader's label, no label event, a failed lookup; another label; an author past both caps; the sparse checkouts): verified in both test files. - Claim: the seven named suites pass 197 of 197: verified.
- Claim: the full-width case fails on the previous head: verified; the start-at-once case fails there too.
- Claim: with
main's actions the start-at-once and never-held cases fail and the unchanged-behaviour cases pass: verified; the full-width case also fails there. - Claim: prettier and actionlint pass: prettier verified; actionlint not checked.
- Claim: a labelled run can take CI past its ceiling by at most one run's jobs, for the three cases the decision names: consistent with DEC-16 and DEC-30; widening stays within the ceiling (
ci-admission/action.yml:338). - Claim: the decision is recorded as DEC-30, current on
main, which this change implements: verified. - Claim: the overlap with #12100 keeps both changes: verified, both header bullets are present (
ci-admission/action.yml:40-43,:56-66). - Claim: the account of an earlier release missing its freeze: not checked (context only).
- File:
.github/actions/ci-admission/action.yml: clear. - File:
.github/actions/heavy-caps/action.yml: clear. - File:
.github/scripts/ci-admission.test.mjs: clear. - File:
.github/scripts/heavy-caps-action.test.mjs: clear. - File:
.github/workflows/ci.yml: clear.
Who this helps
Maintainers shipping a release. When CI is full, a pull request that a release waits on queues behind every other run, and gets turned away like any of them; today #11850 missed v0.7.17's freeze after two turn-aways. With this change, a maintainer labels such a pull request
release-critical, and from its next CI run (the next push, reopen or ready toggle: CI starts on no label event) the run starts at once, whatever the load, and its heavy suites are never held by the per-author caps. It still runs every job (spec:AST-030 DEC-30, which amends DEC-16 and FR16; recorded by #12106).What changes
.github/actions/ci-admission/action.yml: a pull-request run labelledrelease-criticalstarts on its first look, whatever the load. It skips the ceiling, the yield to a waitingmaincheck and the longest-wait rule.fitsistrue, and a notice says why and at which width.ci:run-*labels already follow, through the same function (decideRunLabelinrun-labels.cjs).room,rest,whole), so a re-run of the admission job decides the same way..github/actions/heavy-caps/action.yml: a trustedrelease-criticallabel exempts the pull request's heavy suites from the per-author holds (FR16's fifteen-oldest and daily caps), through the samedecideRunLabel; a lookup that fails does not count the label..github/workflows/ci.yml:admissionjob's checkout now includes.github/scripts/lib, asroom's already does, and the two heavy jobs' sparse heavy-caps checkouts include it too; that brings the.github/scriptsfiles the label check reads.admissionjob reads pull requests (pull-requests: read), asroomand the heavy jobs already do, so a re-run of that job alone reads the label's timeline.mainruns;The label itself is created and applied only after this merges.
Evidence
ci-admission.test.mjs, newrelease-criticalcases, on a full CI: 7 pull-request runs at 12 jobs, ten waiting and amaincheck waiting (112 against the ceiling of 90). The realrun-labels.cjsruns against a stub GitHub.room,restandwhole:fitsistrue, after one look within the first minute, and the notice is logged.ci:run-visualby a writer) waits as before, with no notice.heavy-caps-action.test.mjs, new case, on an author past both the fifteen-oldest and the daily caps:The heavy jobs' sparse checkouts are checked to bring
.github/scripts/lib.Results:
heavy-caps-action,ci-admission,ci-admission-count,run-labels,ci-heavy-deferral,ci-tooling-routingandworkflow-pathspass 197 of 197; the full-width case fails on the previous head, which made no look.main's actions, the start-at-once case and the never-held case fail; the cases that check nothing else changed pass there too, as they should.prettierandactionlintpass.CI impact: none for ordinary runs. A labelled run can take CI past its ceiling of about 90 jobs by one run's jobs; the label is for the release pull request, current-range regression fix-forwards and consumer-upgrade blockers (DEC-30).
Decision: cixzhang, 2026-11-16 08:24 PT, a release-critical pull request is admitted at once; recorded as spec:AST-030 DEC-30, current on main since #12106 (c56d65a), which this pull request implements
Overlap checked: #12100 (josephfarina's max-parallel leg count: other lines of the action's header comment and of its test file, so a merge keeps both)
Owning session: noopbot (a61f66c2), under CI & Release (ca77f950). Land path: the shipper, through merge-guard.