Repository navigation
ci: a failing a11y contract leg keeps its Playwright results and audit frames as an artifact - #12624
Conversation
…apshots) as an artifact
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 11232d5 |
PR Analysis Report🔎 Preview ·
|
| Before | After | Change | |
|---|---|---|---|
| Job-minutes per PR update | 219 | 219 | 0 |
| Runner pool, runner-minutes a day | 71,349 | 71,349 | 0 (0%) |
| Average concurrent jobs | 49.5 | 49.5 | 0 |
| Time to green (median → this run) | 64.5 min | 23.3 min | −41.2 min |
| Runs a day | 326 | 326 | 0 |
Changed jobs: Accessibility spec-test contracts changed: standard or non-standard by event (4-core-ubuntu)
Not measured (the jobs that use these keep their recent minutes above): .github/scripts/release-check-workflow.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 new step keeps a failing contract leg's Playwright output, but it does not deliver the page snapshots the pull request promises for the failure it cites.
- The title, description and new comments promise each failing test's page snapshot, but Playwright 1.61.1 writes one into
error-context.mdonly when the test's page is still open at the failure, so the cited MoreMenuAuditsheettest (which closes its own context infinally) would keep only its error text and source: reword those claims to what the step keeps, or also upload*-audit-evidence/so that test's own frames come along.
The rest conforms to the CI spec: the upload runs only on release-check legs whose contracts step failed, the artifact name is unique per shard and attempt, and the new test fails against the base workflow and passes on this head.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: the contracts step gets an id — verified (
.github/workflows/ci.yml:3822). - Claim: a new step uploads
test-results/only when that step failed, per Storybook hash, shard and attempt, for 14 days, nothing when empty — verified (.github/workflows/ci.yml:3867-3874). - Claim: Playwright 1.61 writes each failing test's
error-context.mdwith the page's accessibility snapshot — partly false: the file is written for every failing test, but the snapshot only when the page is still open; the citedsheettest gets none. - Claim (title): a failing leg keeps page snapshots — false for specs that close their own context before failing, including the cited one.
- Claim: traces stay off — verified (
playwright.config.tssets no trace setting and is unchanged). - Claim: the test checks the step uploads only after the contracts failed, per shard and attempt — verified (
.github/scripts/release-check-workflow.test.mjs:790-810). - Claim: the test fails against the base workflow — verified (it fails on the missing step id; the other 92 tests pass).
- Claim: the release-check and CI workflow tests pass, 265 of 265 across nine files — not verifiable as counted, since the nine files are not named;
release-check-workflow.test.mjs(93) andworkflow-artifact-names.test.mjs(26) pass on this head. - Claim: Prettier clean — verified.
- Claim: no CI impact on a passing leg — verified (the step needs
failure()). - Claim: a failing leg uploads one artifact of its failing tests' results — verified; the artifact also holds every other file under
test-results/. - Claim: no shared lines with the six overlapping pull requests it names — verified (their workflow hunks sit far from this job, and none touches the test file).
- File
.github/workflows/ci.yml: finding (the comment at line 3865 overclaims); the step itself is clear. - File
.github/scripts/release-check-workflow.test.mjs: finding (the comment at lines 800-801 overclaims); the assertions are clear and match the workflow.
…t.md has a page snapshot only while the page is open
|
/approve-spec 0a6a224 |
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; marking it ready for review starts it.
The earlier request is addressed: the title, description and comments now describe what error-context.md holds, and the upload also keeps the component audits' <name>-audit-evidence/ folders, so the cited MoreMenu sheet failure keeps its frames and receipts. Two optional wording fixes remain: the test comment at .github/scripts/release-check-workflow.test.mjs:801-802 says an audit writes its frames after it closes its page (it writes them before), and the description's overlap note says all six listed pull requests touch ci.yml, but #12320 does not.
Claims and files checked
Review mode: incremental; reason: none
- Claim: the MoreMenu audit's
sheettest failed in leg 5 of 6 in two release-checks, and neither kept a frame of it — verified (both runs' leg 5 annotations name that one test; their artifacts hold no MoreMenu frames). - Claim: the contracts step gets an id — verified (
.github/workflows/ci.yml:3822). - Claim: a new step uploads
test-results/and every audit-evidence folder only when that step failed, per Storybook hash, shard and attempt, for 14 days, nothing when empty — verified (.github/workflows/ci.yml:3870-3879; root folders through the glob, nested ones throughtest-results/). - Claim:
error-context.mdholds the error and source, plus a page snapshot only when the page is still open — verified (Playwright 1.61.1 takes the snapshot from a still-open page after the failure is recorded). - Claim: the
sheetaudit closes its own page infinallyand writes each checked state's screenshot and receipt tomore-menu-audit-evidence/— verified (MoreMenuAudit.a11y.chromium.spec.ts:24,:693-741,:745-757). - Claim: traces stay off — verified (
playwright.config.tssets no trace and is unchanged). - Claim: the test checks the upload's condition, name and paths — verified (
.github/scripts/release-check-workflow.test.mjs:790-811). - Claim: the test fails against main's
ci.yml— verified (it fails on the missing step id; the other 92 tests pass). - Claim: the release-check and CI workflow tests pass, 265 of 265 across nine files — not verifiable as counted, since the nine files are not named; all eleven workflow and release-check test files pass on this head.
- Claim: Prettier clean — verified.
- Claim: no CI impact on a passing leg — verified (the step needs the contracts step to fail).
- Claim: a failing leg uploads one artifact of its failing tests' results — verified; it also holds the frames of audits that passed in that leg.
- Claim: six named pull requests each touch
ci.ymlelsewhere, with no shared lines — partly false: no shared lines holds for all six, but #12320 does not touchci.yml. - Claim: ownership and land-path notes — process statements, not code claims.
- File
.github/workflows/ci.yml: clear. - File
.github/scripts/release-check-workflow.test.mjs: non-blocking wording note on lines 801-802; the assertions are clear.
| // error-context.md, and the frames and receipts a component audit writes | ||
| // after it closes its own page. |
There was a problem hiding this comment.
Non-blocking: the audit writes each frame and receipt while its page is open (MoreMenuAudit.a11y.chromium.spec.ts:693-741) and closes its context last, in finally (:755-756), so "after it closes its own page" reads backwards. Suggested:
// Only after the contracts themselves failed: each failing test's
// error-context.md, and the frames and receipts a component audit writes
// before it closes its own page.
Who this helps
Whoever fixes a failing release-check accessibility contract. Today
MoreMenuAudit.a11y.chromium.spec.ts:746 › sheetfailed in leg 5/6 of two release-checks (runs 44271373410 and 44288781471), and neither run kept anything but the log: no frame of what the sheet rendered.What changes
.github/workflows/ci.yml,a11y-contracts-shard: the contracts step getsid: contracts, and a new step, only when that step failed, uploadstest-results/and every<name>-audit-evidence/folder asa11y-contracts-results-<storybook hash>-<shard>-<attempt>(14 days, nothing uploaded when empty).test-results/holds each failing test'serror-context.md: the error and its source, plus a page snapshot only when the test's page is still open at the failure.MoreMenuAudit … › sheetcloses its own page infinally, so itserror-context.mdhas no snapshot; it writes the screenshot and receipt of every state it checked tomore-menu-audit-evidence/, which this keeps.Tests
release-check-workflow.test.mjs: the step uploadstest-results/and the audit evidence folders only after the contracts step failed, named per shard and attempt. Red-first: it fails against main'sci.yml; with this change the release-check and CI workflow tests pass (265 of 265 across 9 files). Prettier clean.CI impact
None on a passing leg (the step is skipped). A failing release-check contract leg uploads one artifact of its failing tests' results.
Overlap checked: #12606, #12432, #12320, #12285, #12243, #12129 (each touches ci.yml elsewhere; this adds one step to the release-check a11y-contracts leg and a test for it, no shared lines)
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.