Skip to content

ci: add weekly full-suite RTL audit - #4797

Merged
nynexman4464 merged 1 commit into
nynexman4464/perf/rtl-audit-scopefrom
nynexman4464/ci/rtl-weekly
Aug 7, 2026
Merged

nynexman4464 merged 1 commit into
nynexman4464/perf/rtl-audit-scopefrom
nynexman4464/ci/rtl-weekly

Conversation

@nynexman4464

@nynexman4464 nynexman4464 commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #4796.

#4796 scopes pr-rtl to the components a PR touches, so nothing checks the rest of the library any more. But RTL breaks from a distance — a token, shared hook, or icon primitive can regress a component no PR edited.

a11y-weekly.yml already solved this for a11y and says so in its header. This adds the RTL twin, so the split is symmetric:

per-PR scheduled
a11y pr-a11y a11y-weekly.yml
RTL pr-rtl rtl-weekly.yml

Same shape as its a11y sibling: build once → audit with no --filter → summarize → upload → open-or-update one deduped tracking issue. Mondays 06:17 UTC (offset from a11y-weekly's 05:23 so the two Playwright sweeps don't contend), plus workflow_dispatch. Runners follow #4708's classes — 2-core-ubuntu-arm for the audit, ubuntu-slim for the issue job.

One difference from the a11y twin: rtl-audit.mjs exits non-zero on any finding, so a failed step is normal here rather than a tripped gate. weekly-rtl-summary.js derives status from the report's contents instead, and the job goes red only on a crash — findings open a tracking issue while pr-rtl is still soft-gated.

Test plan

weekly-rtl-summary.js run against all three status paths, using a real full-sweep report (1394 stories, generated from run 31122588220's Storybook artifact):

  • clean → status=clean, 125 components / 1394 stories, no tables
  • findings → status=findings, total_findings=3, D1 + D5 + curated tables render (failures injected into the real report)
  • crashed → status=crashed on a missing report

rtl-weekly.yml parses to 2 jobs / 9 audit steps; prettier-clean.

@vercel

vercel Bot commented Aug 7, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview Aug 7, 2026 6:42pm

Request Review

Restores the coverage the previous commit traded away. Now that pr-rtl only
audits the components a PR touches, nothing checks the rest of the library —
and RTL regressions are not confined to the component you edited: tokens,
shared hooks, and icon primitives break RTL from a distance.

The RTL twin of a11y-weekly.yml, mirroring its shape (build once, audit
unfiltered, summarize, upload, open-or-update one deduped tracking issue) and
its runner split per #4708 — 2-core-ubuntu-arm for the Playwright/build job,
ubuntu-slim for the API-bound issue job.

Reporting, not gating: rtl-audit.mjs exits non-zero on ANY finding, so unlike
accessibility-audit.js a failed step is the normal way findings surface.
weekly-rtl-summary.js derives status from the report's contents instead, and
the job goes red only on a crash — findings open a tracking issue while
pr-rtl is still soft-gated.

Scheduled Mondays 06:17 UTC, offset from a11y-weekly's 05:23 so the two
full-suite Playwright sweeps don't contend for runners.

Test plan: weekly-rtl-summary.js exercised against all three status paths
using a real full-sweep report (1394 stories, generated locally from the
Storybook artifact of run 31122588220): clean -> status=clean with 125
components / 1394 stories; findings -> status=findings, total_findings=3,
D1 + D5 + curated tables render (failures injected into the real report);
crashed -> status=crashed on a missing report. rtl-weekly.yml parses to the
expected 2 jobs / 9 audit steps. Prettier-clean.
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

No component packages changed.

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@nynexman4464
nynexman4464 merged commit 8f3912b into main Aug 7, 2026
19 checks passed
@github-actions
github-actions Bot deleted the nynexman4464/ci/rtl-weekly branch August 8, 2026 06:25

This branch was successfully deployed

1 active deployment
Preview — 5227108b Deployed Aug 7, 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