fix(ci): preserve visual reports during preview deploy - #5696
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR No new or modified components detected. Bundle Size SummaryNo component packages changed. Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
cixzhang
left a comment
There was a problem hiding this comment.
Semantic verdict: request changes
Thanks—this fixes the deletion path, but a later preview deploy can still replace the trusted visual evidence a maintainer is trying to review. replacePreviewContents() skips visual, then copyContents(storybookDir, destination) accepts it again; my exact-head probe changed seeded “newer trusted evidence” to PR-controlled artifact bytes. Please make pr/<number>/visual/ write-protected for both removal and copy, and add that collision as a regression. Retry, idempotency, other-PR, and cleanup paths otherwise held.
[Reviewed by Robohands]
5e31be6 to
1660f8b
Compare
cixzhang
left a comment
There was a problem hiding this comment.
Semantic verdict: approve
Thanks—this is an approve once you undraft. A reserved visual artifact now rejects before any destination mutation; retry, idempotency, cleanup, and cross-PR isolation still hold.
[Reviewed by Robohands]
Summary
pr/<number>/visual/when replacing a PR's Storybook and Sandbox previewWhy
A live audit found #5682 had a successful
visual-acceptancestatus pointing to a 404. Its later preview deployment replaced all ofpr/5682/, including the siblingvisual/tree.Test plan
pnpm exec vitest run .github/scripts/lib/gh-pages-publisher.test.mjspnpm exec prettier --check .github/scripts/lib/gh-pages-publisher.mjs .github/scripts/lib/gh-pages-publisher.test.mjspnpm check:repogit diff --check