Skip to content

ci: a release-critical pull request is admitted at once - #12108

Merged
cixzhang merged 4 commits into
mainfrom
ci/release-critical-admission
Nov 16, 2026
Merged

cixzhang merged 4 commits into
mainfrom
ci/release-critical-admission

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

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 labelled release-critical starts on its first look, whatever the load. It skips the ceiling, the yield to a waiting main check and the longest-wait rule.
    • It takes that one look at once, in any phase, only to pick its legs' width: full width when CI has room for it, as an unlabelled run would get, so a labelled run never runs its Node legs and swizzle-proof slices narrower than the same run unlabelled.
    • fits is true, and a notice says why and at which width.
    • The label counts only when its newest application came from someone with write access. This is the rule the ci:run-* labels already follow, through the same function (decideRunLabel in run-labels.cjs).
    • A lookup that fails does not count the label, so the run waits as before, with a label-specific line saying so.
    • The check runs in each phase (room, rest, whole), so a re-run of the admission job decides the same way.
  • .github/actions/heavy-caps/action.yml: a trusted release-critical label exempts the pull request's heavy suites from the per-author holds (FR16's fifteen-oldest and daily caps), through the same decideRunLabel; a lookup that fails does not count the label.
  • .github/workflows/ci.yml:
    • The admission job's checkout now includes .github/scripts/lib, as room's already does, and the two heavy jobs' sparse heavy-caps checkouts include it too; that brings the .github/scripts files the label check reads.
    • The admission job reads pull requests (pull-requests: read), as room and the heavy jobs already do, so a re-run of that job alone reads the label's timeline.
    • The comments say so.
  • Unchanged:
    • every run without the label, and every run whose label is not trusted;
    • main runs;
    • which jobs a run starts.

The label itself is created and applied only after this merges.

Evidence

ci-admission.test.mjs, new release-critical cases, on a full CI: 7 pull-request runs at 12 jobs, ten waiting and a main check waiting (112 against the ceiling of 90). The real run-labels.cjs runs against a stub GitHub.

  • A label a writer applied starts the run at once in room, rest and whole: fits is true, after one look within the first minute, and the notice is logged.
  • On an empty CI the labelled run's legs run at full width, as an unlabelled run's do; on a full CI, at tight width.
  • A label a reader applied last, a label with no readable event, or a failed permission lookup leaves the run exactly as an unlabelled one: the same outputs and the same looks.
  • A pull request without the label (here with ci:run-visual by 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:

  • a label a writer applied: not held;
  • a reader's label, no label event or a failed lookup: held, as unlabelled;
  • another label: held.

The heavy jobs' sparse checkouts are checked to bring .github/scripts/lib.

Results:

  • With this change: heavy-caps-action, ci-admission, ci-admission-count, run-labels, ci-heavy-deferral, ci-tooling-routing and workflow-paths pass 197 of 197; the full-width case fails on the previous head, which made no look.
  • With 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.
  • prettier and actionlint pass.

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.

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.
@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 16, 2026 8:35pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 16, 2026
@astracat-bot

astracat-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 16, 2026, 9:00 PM UTC

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 91fa000

Storybook · Sandbox · built from this PR's head

Package size: no published package changed; no new dependencies.

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.

CI impact: +55.6 job-min per update · pool +31% · time to green −5.1 min · standard runners · 4 CI action or script files changed (not measured) ⚠️
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

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 admission job reads the label timeline without pull-requests: read, which the run-labels job 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 fits true, no look and a notice. Verified: action.yml:229-245 and 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-234 and run-labels.cjs:122-128.
  • Claim: a failed lookup does not count the label. Verified: action.yml:235-237 and 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: read for 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, and review-signal-decision.cjs imports 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).

Automated review (maintainer link)

Comment thread .github/actions/ci-admission/action.yml Resolved
Comment thread .github/actions/ci-admission/action.yml Resolved
Comment thread .github/workflows/ci.yml Resolved
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.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-critical run never looks for room, so admission leaves wide at '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 main check 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-build uses a full checkout).
  • Claim: runs without a trusted label, main runs 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.

Automated review (maintainer link)

Comment thread .github/actions/ci-admission/action.yml Resolved
Comment thread .github/actions/heavy-caps/action.yml Resolved
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 351c2d5

@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 8006bf8

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-critical run never looks for room, so admission leaves wide at '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 main check and the longest-wait rule, with fits true, 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, rest and whole, 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-build uses a full checkout).
  • Claim: admission now reads pull requests, as room and the heavy jobs already do: verified (ci.yml:146-150, :249-252, and the three heavy jobs' permissions).
  • Claim: Runs without a trusted label, main runs and which jobs a run starts are unchanged: verified (no pull-request payload on main 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 test cases described (a 112-job CI with a main check 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 main added 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.

Automated review (maintainer link)

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.
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 91fa000

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 main check 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: fits is 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, rest and whole, 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: admission now reads pull requests, as room and the heavy jobs already do: verified (ci.yml:146-150, :248-252, and the three heavy jobs' permissions).
  • Claim: runs without a trusted label, main runs and which jobs a run starts are unchanged: verified (no pull-request payload on main, 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 main check 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.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 16, 2026 21:35
@cixzhang cixzhang added the release-critical Admitted to CI at once (AST-030 DEC-30). Counts only when a writer applies it. label Nov 16, 2026
@cixzhang
cixzhang marked this pull request as draft November 16, 2026 21:50
@cixzhang
cixzhang marked this pull request as ready for review November 16, 2026 21:50
@cixzhang
cixzhang merged commit 5c58206 into main Nov 16, 2026
194 of 201 checks passed
@github-actions
github-actions Bot deleted the ci/release-critical-admission branch November 17, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — 91fa000e Deployed Nov 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. release-critical Admitted to CI at once (AST-030 DEC-30). Counts only when a writer applies it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant