Skip to content

ci: the touched-components and PR status lines pair each run label with the suite it runs - #11667

Merged
cixzhang merged 4 commits into
mainfrom
ci/visual-skip-names-label
Nov 15, 2026
Merged

cixzhang merged 4 commits into
mainfrom
ci/visual-skip-names-label

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Who this helps

Authors and reviewers reading why a browser suite did not run. A wide change skips the touched-components checks, and three places said "Add ci:run-visual, ci:run-a11y or ci:run-rtl to run the full suite" (and the pull-request status line "…to run them"). That reads as if any one of the three runs every suite, but each label runs only its own. #8558 carried ci:run-a11y, so its visual suite never ran, and a 4% BottomSheet change merged with no visual check.

What changes

Report text only. No check, gate or label changes; nothing new blocks.

  • .github/scripts/touched-components.mjs, the touched-components summary:
    • a wide change now reads "Each label runs only its own full suite: ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.";
    • the broad-change note reads "To audit everything it reaches, add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL."
  • .github/workflows/ci.yml, the touched-components check's skip step: on a wide change its log line reads the same paired sentence.
  • .github/scripts/lib/pr-status.js, the "did not run" line in the pull-request status comment: each label it lists names its own suite, for example "Wide change (60 components): add ci:run-visual for Visual, ci:run-rtl for RTL." It still lists only the suites that did not run.
  • Tests: the pinned lines in pr-status.test.mjs and pr-preview.test.mjs follow the new wording, and a new case in touched-components.test.mjs requires the wide summary to pair each label with its suite.

The visual verdict for a wide change (wideVisualVerdict) already named only ci:run-visual, and is unchanged.

Red-first

The same tests against main's code: 9 fail (the eight wording cases and the new pairing case). With this change: 190 pass across touched-components, pr-status, pr-preview, run-labels and a11y-format.

Overlap check

Searched open pull requests for the status comment, the touched-components check and the run labels: none changes pr-status.js or touched-components.mjs. The gate changes proposed alongside (a capped check for wide changes, blocking new changed shots) change DEC-7/FR12 and wait for a decision; this does not touch them.

Owning session: noopbot (a61f66c2), under CI & Release (ca77f950). Land path: the shipper, through merge-guard.

@vercel

vercel Bot commented Nov 14, 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 14, 2026 7:28pm UTC

Request Review

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

astracat-bot Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 14, 2026, 7:30 PM UTC

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 7e03354

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, ci:run-a11y or ci:run-rtl to run them.

CI impact: −0.1 job-min per update · pool −0.1% · time to green −1.8 min · standard runners · 5 CI action or script files changed (not measured)
Before After Change
Job-minutes per PR update 173.3 173.1 −0.1
Runner pool, runner-minutes a day 69,333 69,274 −59 (−0.1%)
Average concurrent jobs 48.1 48.1 0
Time to green (median → this run) 22.3 min 20.5 min −1.8 min
Runs a day 400 400 0

Changed jobs: Touched components changed: standard

Not measured (the jobs that use these keep their recent minutes above): .github/scripts/lib/pr-preview.test.mjs, .github/scripts/lib/pr-status.js, .github/scripts/lib/pr-status.test.mjs, .github/scripts/touched-components.mjs, .github/scripts/touched-components.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.

Changes requested. The status comment's not-run line and the touched-components summary now pair each label with its suite, and the tests prove it. One copy of the old sentence is still left.

  • The touched-components check still prints add ci:run-visual, ci:run-a11y or ci:run-rtl to run the full suite. on a wide change (.github/workflows/ci.yml:4872), so pair the labels there too (or drop that echo, since the step before it already prints the summary) and update the description's "two places".

Optional: build the two touched-components.mjs lines from SUITE_LABELS and SUITE_NAMES in run-labels.cjs, as notRunLine does, so the copies cannot drift again.

Claims and files checked
  • The old wide summary and status line listed the labels as alternatives: verified (base touched-components.mjs:524, pr-status.js:512).
  • Only two places said it: false, ci.yml:4872 says it too.
  • The linked earlier pull request carried only the accessibility label and merged with no visual run: verified (its labels and events).
  • Report text only, no check, gate or label change: verified (the diff changes only strings and tests).
  • The wide summary names each label's own suite: verified (touched-components.mjs:524).
  • The broad-change note pairs each label: verified (touched-components.mjs:542).
  • The status line pairs each label and still lists only suites that did not run: verified (pr-status.js:471-484, wide-change test).
  • The pinned test lines follow the new wording, and a new case requires the pairing: verified (the three test files).
  • The visual skip verdict names only the visual label and is unchanged: verified (touched-components.mjs:470).
  • Nine tests fail against main's code: verified (red-first run, 9 failed).
  • 190 tests pass across the five suites: verified (head run, 190 passed).
  • No open pull request changes these scripts: partly checked (open pull request search).
  • The separate gate proposals are untouched: verified (no spec or workflow change).
  • .github/scripts/lib/pr-status.js: clear.
  • .github/scripts/touched-components.mjs: optional note above.
  • .github/scripts/lib/pr-status.test.mjs: clear.
  • .github/scripts/lib/pr-preview.test.mjs: clear.
  • .github/scripts/touched-components.test.mjs: clear.

Automated review (maintainer link)

Comment thread .github/scripts/touched-components.mjs Resolved

@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, and it runs once the pull request is marked ready for review. Every place that lists the run labels for a skipped suite now pairs each label with its own suite, the earlier unpaired log line in ci.yml is fixed, and the new wording tests fail on main and pass here.

Optional:

  • touched-components.mjs could build its two paired lines from SUITE_LABELS and SUITE_NAMES, as notRunLine does, so a renamed label or suite cannot leave them behind.
  • The overlap note in the description predates #11672, which also edits pr-status.js (in buildVisualDeltas, not notRunLine; no overlapping lines).
Claims and files checked
  • Claim: a wide change's touched-components text listed the three labels as alternatives for the full suite, and the status line said "to run them": verified against main's touched-components.mjs, ci.yml and pr-status.js.
  • Claim: each label runs only its own suite: verified against FR12 of the CI routing spec.
  • Claim: #8558 carried only the accessibility label, so its visual suite never ran: verified for the label-gated visual suite; whether no visual comparison ran at all is not established.
  • Claim: report text only, with no check, gate or label change: verified; the diff changes strings and tests only.
  • Claim: the wide-change summary and the broad-change note use the paired wording: verified (touched-components.mjs:524, :542).
  • Claim: the skip step's wide-change log line uses the paired wording: verified (ci.yml:4872).
  • Claim: the status line names each label's suite and lists only the suites that did not run: verified (pr-status.js:466-516, pr-status.test.mjs:628).
  • Claim: the pinned tests follow the new wording and a new case requires the pairing: verified (touched-components.test.mjs:296).
  • Claim: the wide-change visual verdict already names only the visual label and is unchanged: verified (touched-components.mjs:470).
  • Claim: 9 tests fail against main's code and 190 pass with the change: verified by rerunning both.
  • Claim: no open pull request changes pr-status.js or touched-components.mjs: out of date; #11672 now changes pr-status.js in another function.
  • Claim: the gate changes proposed alongside are not touched: verified.
  • Claim: the ownership and landing-path note: process information, nothing to check in the code.
  • File .github/scripts/lib/pr-status.js: clear.
  • File .github/scripts/lib/pr-status.test.mjs: clear.
  • File .github/scripts/lib/pr-preview.test.mjs: clear.
  • File .github/scripts/touched-components.mjs: clear (optional note above).
  • File .github/scripts/touched-components.test.mjs: clear.
  • File .github/workflows/ci.yml: clear.

Automated review (maintainer link)

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

Every place that lists the run labels for a skipped suite now pairs each label with its own suite, as the CI spec's rule that a label runs only its own suite requires, and the earlier unpaired log line in ci.yml is fixed. The new and updated wording tests fail on main's code and pass at this head, after the merge of main.

Optional:

  • touched-components.mjs could build its two paired lines from the label and suite-name maps in run-labels.cjs (exporting SUITE_NAMES), as notRunLine does, so a renamed label or suite cannot leave them behind.
  • The overlap note in the description predates #11672, which also edits pr-status.js (in buildVisualDeltas, with no overlapping lines).
Claims and files checked
  • Claims:
    • The wide-change touched-components summary pairs each label with its suite: verified (touched-components.mjs:524, new test at touched-components.test.mjs:296-311).
    • The broad-change note pairs each label with its suite: verified (touched-components.mjs:542).
    • The skip step's wide-change log line reads the same pairing: verified (ci.yml:4993).
    • The status comment's not-run line names each label's suite and still lists only the suites that did not run: verified (pr-status.js:471-515, seven notRunLine tests).
    • Report text only; no check, gate or label changes: verified (the workflow change is one echo string; run-labels.cjs is unchanged).
    • The pinned test lines follow the new wording, plus a new pairing case: verified.
    • The wide-change visual verdict names only ci:run-visual and is unchanged: verified (touched-components.mjs:470).
    • Nine tests fail on main's code and 190 pass across the five suites with this change: verified by rerunning both.
    • #8558 carried only the accessibility label, so its labelled visual suite never ran: verified; that it merged with no visual check at all is not established, since its default visual regression check reported success.
    • No open pull request changes pr-status.js or touched-components.mjs: out of date (#11672 changes pr-status.js in another function).
    • The proposed gate changes are not touched: verified.
    • The ownership and landing notes are process statements, not code claims.
  • Files:
    • .github/scripts/lib/pr-status.js: clear.
    • .github/scripts/lib/pr-status.test.mjs: clear.
    • .github/scripts/lib/pr-preview.test.mjs: clear.
    • .github/scripts/touched-components.mjs: clear (optional: build the pairs from the shared maps).
    • .github/scripts/touched-components.test.mjs: clear.
    • .github/workflows/ci.yml: clear.

Automated review (maintainer link)

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

Every place that lists the run labels for a skipped suite pairs each label with its own suite, as the CI spec's rule that a label runs only its own suite requires, and the merge of main leaves the patch and its effect unchanged. The new and updated wording tests fail on main's code and pass at this head.

Optional:

  • touched-components.mjs could build its two paired lines from the label and suite-name maps in run-labels.cjs (exporting SUITE_NAMES), as notRunLine does, so a renamed label or suite cannot leave them behind.
  • The overlap note in the description predates #11672, which also edits pr-status.js (in buildVisualDeltas, with no overlapping lines), and the #8558 example would read more accurately as "no labelled visual suite ran", since its default visual regression check passed.
Claims and files checked

Review mode: incremental; reason: none

  • Claims:
    • The wide-change touched-components summary pairs each label with its suite: verified (touched-components.mjs:524, new test at touched-components.test.mjs:296-311).
    • The broad-change note pairs each label with its suite: verified (touched-components.mjs:542).
    • The skip step's wide-change log line reads the same pairing: verified (ci.yml:5122).
    • The status comment's not-run line names each label's suite and still lists only the suites that did not run: verified (pr-status.js:466-515, seven notRunLine tests).
    • Report text only; no check, gate or label changes, and nothing new blocks: verified (the workflow change is one echo string; run-labels.cjs is unchanged).
    • The pinned test lines follow the new wording, plus a new pairing case: verified.
    • The wide-change visual verdict names only ci:run-visual and is unchanged: verified (touched-components.mjs:470).
    • Nine tests fail on main's code and 190 pass across the five suites with this change: verified by rerunning both.
    • #8558 carried only the accessibility label, so its labelled visual suite never ran: verified; that it merged with no visual check at all is not established, since its default visual regression check reported success.
    • No open pull request changes pr-status.js or touched-components.mjs: out of date (#11672, opened after this description, changes pr-status.js in another function).
    • The proposed gate changes are not touched: verified (no gate logic in the diff).
    • The ownership and landing notes are process statements, not code claims.
  • Files:
    • .github/scripts/lib/pr-status.js: clear.
    • .github/scripts/lib/pr-status.test.mjs: clear.
    • .github/scripts/lib/pr-preview.test.mjs: clear.
    • .github/scripts/touched-components.mjs: clear (optional: build the pairs from the shared maps).
    • .github/scripts/touched-components.test.mjs: clear.
    • .github/workflows/ci.yml: clear.

Automated review (maintainer link)

@cixzhang
cixzhang marked this pull request as ready for review November 15, 2026 00:08
@cixzhang
cixzhang merged commit d15407f into main Nov 15, 2026
137 checks passed
@github-actions
github-actions Bot deleted the ci/visual-skip-names-label branch November 15, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — 7e033544 Deployed Nov 14, 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