Repository navigation
ci: the touched-components and PR status lines pair each run label with the suite it runs - #11667
Conversation
…th the suite it runs
|
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 | 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
There was a problem hiding this comment.
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:4872says 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.
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, 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.mjscould build its two paired lines fromSUITE_LABELSandSUITE_NAMES, asnotRunLinedoes, so a renamed label or suite cannot leave them behind.- The overlap note in the description predates #11672, which also edits
pr-status.js(inbuildVisualDeltas, notnotRunLine; 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'stouched-components.mjs,ci.ymlandpr-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.jsortouched-components.mjs: out of date; #11672 now changespr-status.jsin 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.
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.
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.mjscould build its two paired lines from the label and suite-name maps inrun-labels.cjs(exportingSUITE_NAMES), asnotRunLinedoes, so a renamed label or suite cannot leave them behind.- The overlap note in the description predates #11672, which also edits
pr-status.js(inbuildVisualDeltas, 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 attouched-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, sevennotRunLinetests). - Report text only; no check, gate or label changes: verified (the workflow change is one
echostring;run-labels.cjsis unchanged). - The pinned test lines follow the new wording, plus a new pairing case: verified.
- The wide-change visual verdict names only
ci:run-visualand 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.jsortouched-components.mjs: out of date (#11672 changespr-status.jsin another function). - The proposed gate changes are not touched: verified.
- The ownership and landing notes are process statements, not code claims.
- The wide-change touched-components summary pairs each label with its suite: verified (
- 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.
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.
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.mjscould build its two paired lines from the label and suite-name maps inrun-labels.cjs(exportingSUITE_NAMES), asnotRunLinedoes, so a renamed label or suite cannot leave them behind.- The overlap note in the description predates #11672, which also edits
pr-status.js(inbuildVisualDeltas, 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 attouched-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, sevennotRunLinetests). - Report text only; no check, gate or label changes, and nothing new blocks: verified (the workflow change is one
echostring;run-labels.cjsis unchanged). - The pinned test lines follow the new wording, plus a new pairing case: verified.
- The wide-change visual verdict names only
ci:run-visualand 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.jsortouched-components.mjs: out of date (#11672, opened after this description, changespr-status.jsin 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.
- The wide-change touched-components summary pairs each label with its suite: verified (
- 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.
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-a11yorci:run-rtlto 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 carriedci: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:ci:run-visualfor Visual,ci:run-a11yfor Accessibility,ci:run-rtlfor RTL.";ci:run-visualfor Visual,ci:run-a11yfor Accessibility,ci:run-rtlfor 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): addci:run-visualfor Visual,ci:run-rtlfor RTL." It still lists only the suites that did not run.pr-status.test.mjsandpr-preview.test.mjsfollow the new wording, and a new case intouched-components.test.mjsrequires the wide summary to pair each label with its suite.The visual verdict for a wide change (
wideVisualVerdict) already named onlyci: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 acrosstouched-components,pr-status,pr-preview,run-labelsanda11y-format.Overlap check
Searched open pull requests for the status comment, the touched-components check and the run labels: none changes
pr-status.jsortouched-components.mjs. The gate changes proposed alongside (a capped check for wide changes, blocking newchangedshots) 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.