Skip to content

ci: the swizzle proof moves to main checks, and every release-check proves every target - #12449

Merged
cixzhang merged 5 commits into
mainfrom
ci/swizzle-proof-on-main
Nov 18, 2026
Merged

cixzhang merged 5 commits into
mainfrom
ci/swizzle-proof-on-main

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

What

The swizzle proof (spec:AST-110 FR7) leaves pull-request CI and runs on main, and every release now runs it in full (spec:AST-110/DEC-3).

  • Pull requests: swizzle-proof-scope proves no target unless the pull request carries ci:run-swizzle, a new opt-in label under the same ci:run-* rule as the visual, accessibility and RTL labels (newest application from someone with write access; it takes effect on the next push). A change to the swizzle tooling adds it, and then the eight legs run as before; the label adds all eight to the run's admission (label-legs). Without it the scope job writes mode=none with the reason, skips its checkout, and the legs never start.
  • Release path (closes the FR7 gap): a new release-swizzle-proof job runs on the release-check dispatch: eight legs, SWIZZLE_PROOF_ALL=1 and SWIZZLE_PROOF_BROWSER=1 (every target, rendered in Chromium), legs up to 30 min. release-check needs it and fails unless every leg passed, so every cut commit has one full proof.
  • Main, unchanged: Main's Node legs already run the proof's slices for each validated main commit (affected targets), and the dispatched release re-check proves every target. Nothing is dropped: a pull request loses only the per-PR run, and main plus the release path cover it.

Admission

  • The pull-request peak drops from 21 to 19 (room no longer plans the proof's legs as a widening matrix: −2 tight legs, and the full-width widen drops by 6), so up to 8 fewer jobs per pull-request run. count.mjs counts a running pull-request run the same way.
  • The dispatch peak rises from 39 to 47: a release-check now starts the proof's eight legs with its first wave. count.mjs counts a running dispatch at 47.

Records

  • AST-110 FR7: a pull request runs the proof only when it carries ci:run-swizzle (spec:AST-030 FR12); every release check runs it for every component in a real browser. The FR7 gap bullet is removed (both of its clauses stop being true with this change), the current-state line names release-swizzle-proof, and the FR7 verification row and the known verification gap name it and its tests.
  • AST-030 FR12: the swizzle proof follows the opt-in label rule under ci:run-swizzle (last applied by write, maintain or admin; a label runs only its own suite); no default check replaces it.
  • No admission number changes in a record: AST-030 states no peak job counts.

Writing rubric results

R1 narration: none; the two FR sentences and the current-state line state what the system does, in the present tense.
R2 research: none.
R3 evidence: the FR7 verification row names the job and its two test files, no change reference.
R4 rejected alternatives: none added.
R5 change references: none.
R6 open questions: none.
R7 project status: one found, the FR7 gap bullet; this change makes both of its clauses false, so it is removed, and the known verification gap names the checks that now exist.

Test plan

Local, inside the heavy-gate test slot, on the M5:

  • Every .github/scripts test that reads ci.yml (57 files) plus scripts/vitest-node-legs.test.mjs, then a re-run of the seven touched or slow files: 284 passed; the earlier full pass had only timeouts under load (a11y-pr-legs, fs-guard-tests, ci-stale-head-hint), and all three pass on the re-run.
  • New cases: a pull request without the label proves no target (opted-out branch first, no checkout); the label adds every leg to both waits; room plans the Node legs alone; run-labels names ci:run-swizzle and its not-run sentence; the release-check job set includes release-swizzle-proof with every target in Chromium; a failed, skipped or cancelled proof fails the release-check.
  • Red-first: on main, the new cases fail (no opt-out branch, no release-swizzle-proof job, the release-check needs list without it).
  • prettier --check and actionlint on the touched files: clean. pnpm check:knowledge: templates and records aligned.

Overlap checked: #12054, #12129, #12432, #12320, #12287, #12285, #12243 (#12054 regroups the pull-request swizzle legs and conflicts in ci.yml; with this change a pull request runs those legs only under ci:run-swizzle, so its layout question narrows to that label run. #12129 shares ci.yml and two admission tests but touches none of these lines and merges cleanly with them. The others edit ci.yml or the CI scope scripts away from the swizzle proof, the admission peaks and the release-check job set, and merge cleanly)

Owning session: noopbot (a61f66c2), under CI & Release (ca77f950). Land path: the shipper, through merge-guard, on green, CodeBunny approval and Specs' exact-head /approve-spec.

…i:run-swizzle label

Main's Node legs already prove the targets each validated main commit affects, and the release re-check proves every target before a cut. A pull request now proves no target unless it carries ci:run-swizzle (run-labels), for a change to the swizzle tooling; the label adds all eight legs to its admission. Room plans the Node legs alone, so the pull-request peak drops from 21 to 19 and the full-width widen by 6. spec:AST-110/DEC-3.
… release-check requires it

release-swizzle-proof runs the full swizzle proof of the cut commit (SWIZZLE_PROOF_ALL and SWIZZLE_PROOF_BROWSER) in eight legs on the release-check dispatch, and release-check fails unless every leg passed. The dispatch peak rises from 39 to 47 for those legs. spec:AST-110/DEC-3.
@vercel

vercel Bot commented Nov 17, 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 17, 2026 10:33pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 17, 2026, 10:41 PM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 17, 2026
… opt-in and the release check's full swizzle proof
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 2674725

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 21a8396

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: +3.3 job-min per update · pool +1.5% · time to green −2 min · standard runners · 8 CI action or script files changed (not measured)
Before After Change
Job-minutes per PR update 219 222.3 +3.3
Runner pool, runner-minutes a day 71,349 72,422 +1,073 (+1.5%)
Average concurrent jobs 49.5 50.3 +0.7
Time to green (median → this run) 64.5 min 62.5 min −2 min
Runs a day 326 326 0

Changed jobs: admission changed: standard · release-check changed: standard · release-swizzle-proof added: standard · room changed: standard · run-labels changed: standard · swizzle-proof changed: standard · swizzle-proof-scope changed: standard

Not measured (the jobs that use these keep their recent minutes above): .github/actions/ci-admission/count.mjs, .github/scripts/ci-admission-count.test.mjs, .github/scripts/ci-admission.test.mjs, .github/scripts/ci-heavy-lanes.test.mjs, .github/scripts/ci-swizzle-proof.test.mjs, .github/scripts/release-check-workflow.test.mjs, .github/scripts/run-labels.cjs, .github/scripts/run-labels.test.mjs.

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.

Requesting changes. The new ci:run-swizzle opt-in and the release-check's full swizzle proof are wired and tested, but two spec sentences still say a pull request never runs the swizzle proof.

Blocking

  • docs/specs/AST-030/spec.md FR13 still says a pull request's test run leaves out the swizzle proof; amend it to say that a run with ci:run-swizzle includes the proof (FR12).
  • The FR7 verification row in docs/specs/AST-110-swizzle-output/spec.md still lists "a pull request that runs the proof" as a failure; change it to "a pull request without ci:run-swizzle that runs the proof".

Both are one-line record edits, and the new head will need a fresh /approve-spec. Two non-blocking notes: the pull-request comment never shows the new swizzle not-run sentence, so nothing prompts an author to add the label, and a release re-check now runs the full proof twice (here and in the Main workflow's re-check legs).

Claims and files checked

Review mode: full; reason: no-earlier-review

Claims:

  • Without the label, the scope job proves no target, skips its checkout and starts no leg: verified (workflow step and new test, red-first).
  • The label follows the existing ci:run-* rule (newest application by someone with write access, effective on the next push): verified (run-labels.cjs and its tests).
  • The label adds all eight legs to admission: verified (label-legs in both waits, admission tests).
  • A change to the swizzle tooling adds the label: verified as a manual convention, since nothing applies the label automatically.
  • Every release-check runs a new eight-leg job that proves every target in Chromium, with legs of up to 30 minutes, and release-check fails unless every leg passed: verified (job, join, and tests for failure, skipped and cancelled).
  • Main's Node legs keep proving the affected targets, and the release re-check proves every target: verified (Main workflow Node shards and their re-check flags).
  • Nothing is dropped, because a pull request loses only its own run: verified.
  • The pull-request peak drops from 21 to 19 (up to eight fewer jobs a run), and count.mjs counts a running pull-request run the same way: verified (peak tests, count.mjs estimate).
  • The dispatch peak rises from 39 to 47 for the first-wave legs, and count.mjs counts a running dispatch at 47: verified (release-check peak test).
  • AST-110 FR7 now limits pull requests to labelled runs and has every release check prove every component in a browser: verified.
  • The FR7 gap bullet goes because both of its clauses stop being true: verified. The pull-request clause ends, and the three-hourly release-check now proves every target.
  • The current-state line, the FR7 verification row and the known gap name the new job and its tests: verified, but the row's failure column is stale (blocking finding).
  • AST-030 FR12 gains the swizzle label rule: verified, but FR13 still contradicts it (blocking finding).
  • No admission number changes in a record: verified, since the CI record states no peak job counts.
  • Writing rubric results: verified against the edited record lines.
  • Local test results: consistent, since the changed test files pass on this head; the exact run count was not reproduced.
  • Red-first, the new cases fail on main: verified (23 failures across the six changed test files on the base).
  • Prettier and the knowledge check are clean: verified. Actionlint was not run here.
  • Overlap with seven open pull requests: verified. One conflicts in ci.yml as stated, one already conflicts with main on its own and this change adds no conflict, and five merge cleanly.
  • Owning lane and land path: a process note, not a code claim; the exact-head spec approval is present.

Files:

  • .github/workflows/ci.yml: clear
  • .github/actions/ci-admission/count.mjs: clear
  • .github/scripts/run-labels.cjs: clear (non-blocking: its swizzle not-run sentence is never rendered)
  • .github/scripts/ci-admission.test.mjs: clear
  • .github/scripts/ci-admission-count.test.mjs: clear
  • .github/scripts/ci-heavy-lanes.test.mjs: clear
  • .github/scripts/ci-swizzle-proof.test.mjs: clear
  • .github/scripts/release-check-workflow.test.mjs: clear
  • .github/scripts/run-labels.test.mjs: clear
  • docs/specs/AST-030/spec.md: finding (FR13 left stale)
  • docs/specs/AST-110-swizzle-output/spec.md: finding (FR7 verification row)

Automated review (maintainer link)

Comment thread docs/specs/AST-030/spec.md Resolved
@cixzhang

Copy link
Copy Markdown
Contributor Author

/approve-spec 21a8396

@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. The pull request is a draft, and CI runs once it is marked ready.

The ci:run-swizzle opt-in and the release check's full swizzle proof are wired and tested, and the two spec sentences flagged in the previous review now match the labelled run. Two non-blocking notes: nothing on the pull request tells an author to add ci:run-swizzle, because the new not-run sentence in run-labels.cjs is never rendered; and a release re-check now runs the full proof twice, here and in the Main workflow's re-check legs.

Claims and files checked

Review mode: full; reason: spec-record

Claims:

  • Without the label, the scope job proves no target, logs why, skips its full checkout and starts no leg: verified (workflow step and new test, red-first).
  • The label follows the existing opt-in rule (newest application by someone with write access, effective on the next push): verified (run-labels.cjs and its tests).
  • A change to the swizzle tooling adds the label: verified as a manual convention; nothing applies the label automatically.
  • With the label the eight legs run as before, and all eight are added to the run's admission: verified (label-legs in both waits, admission tests).
  • Every release check runs a new eight-leg job that proves every target in Chromium, each leg up to 30 minutes: verified (job definition and test).
  • The release check needs that job and fails unless every leg passed: verified (needs list, join loop, tests for failure, skipped and cancelled).
  • Main's Node legs keep proving the affected targets of each validated main commit, and the release re-check proves every target: verified (Main workflow, unchanged).
  • Nothing is dropped, because a pull request loses only its own run: verified.
  • The pull-request peak drops from 21 to 19 (up to eight fewer jobs a run), and the admission counter counts a running pull-request run the same way: verified (peak tests, count.mjs).
  • The dispatch peak rises from 39 to 47 for the first-wave legs, and a running dispatch counts at 47: verified (the release-check peak test derives it from the job graph).
  • The swizzle record now limits pull requests to labelled runs and has every release check prove every component in a browser: verified.
  • The swizzle record's gap bullet goes because both of its clauses stop being true: verified (unlabelled pull requests no longer run the proof; the scheduled release checks of main now prove every target).
  • The current-state line, the verification row and the known gap name the new job and its tests: verified, and the row's failure cell now allows a labelled run.
  • The CI record's label rule now covers the swizzle proof, with no default check replacing it: verified, and its test-run sentence now matches.
  • No admission number changes in a record: verified (the CI record states no peak job counts).
  • Writing rubric results: verified against the edited record lines.
  • Local test results: consistent; the changed test files pass on this head, and the exact tally was not reproduced.
  • The new test cases listed: verified, each present.
  • Red-first, the new cases fail on main: verified (23 failures across the six changed test files on the base).
  • Prettier is clean and the knowledge check aligned: verified. Actionlint was not run here.
  • One overlapping pull request conflicts in ci.yml: verified.
  • Another overlapping pull request touches none of these workflow and admission-test lines: verified for those files. It also rewrites the same CI-record test-run sentence this head edits, where it already conflicts with main.
  • The remaining overlapping pull requests merge cleanly: verified.
  • Owning lane and land path: a process note, not a code claim; the exact-head spec approval is present.

Files:

  • .github/workflows/ci.yml: clear
  • .github/actions/ci-admission/count.mjs: clear
  • .github/scripts/run-labels.cjs: clear (non-blocking: its swizzle not-run sentence is never rendered)
  • .github/scripts/ci-admission.test.mjs: clear
  • .github/scripts/ci-admission-count.test.mjs: clear
  • .github/scripts/ci-heavy-lanes.test.mjs: clear
  • .github/scripts/ci-swizzle-proof.test.mjs: clear
  • .github/scripts/release-check-workflow.test.mjs: clear
  • .github/scripts/run-labels.test.mjs: clear
  • docs/specs/AST-030/spec.md: clear
  • docs/specs/AST-110-swizzle-output/spec.md: clear

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 17, 2026 22:46
@cixzhang
cixzhang marked this pull request as draft November 17, 2026 23:18
@cixzhang
cixzhang marked this pull request as ready for review November 17, 2026 23:18
@cixzhang
cixzhang marked this pull request as draft November 17, 2026 23:40
@cixzhang
cixzhang marked this pull request as ready for review November 17, 2026 23:40
@cixzhang
cixzhang marked this pull request as draft November 18, 2026 00:16
@cixzhang
cixzhang marked this pull request as ready for review November 18, 2026 00:16
@cixzhang
cixzhang merged commit 03d2717 into main Nov 18, 2026
328 of 349 checks passed
@github-actions
github-actions Bot deleted the ci/swizzle-proof-on-main branch November 18, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 21a8396e Deployed Nov 17, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant