Repository navigation
ci(visual): add a manual workflow to refresh snapshot baselines - #234
Closed
AustinAbbott wants to merge 1 commit into
Closed
AustinAbbott wants to merge 1 commit into
AustinAbbott wants to merge 1 commit into
Conversation
Dependency bumps such as a newer Playwright/Chromium can shift rendering by a few pixels with no site change. Baselines must come from the CI runner image, so add a workflow_dispatch job that regenerates them on ubuntu-24.04, commits them to the chosen branch, and re-runs Visual so the required check reports on the new commit. Visual gains a workflow_dispatch trigger for that re-run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DryVDkBwDf6F74RBXDMsk4
Deploying dev-blog with
|
| Latest commit: |
1b2ed80
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://555c02e6.dev-blog-10f.pages.dev |
| Branch Preview URL: | https://claude-project-thread-vgrd8j.dev-blog-10f.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Austin · project thread
Why
#222 (lock file maintenance) fails 2 of 8 screenshots: the
blog-postpage is 6px taller on desktop and mobile. I builtmasterand that branch locally, and the generated HTML and CSS for/blog/react-key/are identical. The difference comes from the newer Chromium in Playwright 1.63 → 1.65.1, not from the site. The baselines need regenerating, and they must come from the CI runner image to match.What changes
.github/workflows/update-snapshots.yml(manualworkflow_dispatch, input: branch):master.ubuntu-24.04, then installs, builds and runsnpm run test:visual:update.tests/to that branch.visual.ymlon the branch. Pushes made withGITHUB_TOKENdon't trigger workflows, so without this the required Visual snapshot tests check would never report on the new commit.visual.ymlgains aworkflow_dispatchtrigger so step 4 can start it. Its push and PR triggers are unchanged.The branch name passes through
env, not inline${{ }}in shell, so it can't inject commands. Only users with write access can runworkflow_dispatch.After merge
Run Actions → Update visual snapshots with
renovate/lock-file-maintenance, then review the 2 updated PNGs in #222 before you merge it. Note: once a non-Renovate commit is on that branch, Renovate stops rebasing it.Testing
workflow_dispatchonly lists workflows on the default branch. Its first real run will be on chore(deps): lock file maintenance #222.Generated by Claude Code