Prompt
How do I troubleshoot baseline updates in Percy?
Latest observation
Here’s a practical checklist for troubleshooting baseline updates in Percy:
1) Confirm the build actually finished
Percy only updates baselines after a build completes successfully.
- Check the Percy dashboard for the build status.
- Make sure the CI job didn’t fail before Percy finished uploading snapshots.
- If you use
percy exec, ensure the wrapped test suite exits normally.
2) Verify you’re looking at the right branch / target
Baseline behavior depends on branch comparison.
- Percy compares your current branch against the branch configured as the base.
- If your branch name, merge target, or repo settings are wrong, updates may appear to “not stick.”
- Check whether the snapshots are being compared to the branch you expect.
3) Make sure the baseline was actually approved
A baseline only changes when diffs are approved.
- Open the Percy build in the dashboard.
- Check whether the snapshots were marked as accepted / approved.
- If they’re still unapproved, the baseline will not update.
4) Check for build re-runs or stale builds
Sometimes an older build is still the latest accepted one.
- If you reran a CI job, confirm the newer Percy build replaced the old one.
- Ensure the commit SHA is correct and unique.
- Look for duplicate builds from retries, rebases, or force-pushes.
5) Ensure snapshot names are stable
Percy identifies snapshots by name and structure.
- If snapshot names change between runs, Percy may treat them as new snapshots instead of updating an existing baseline.
- Avoid dynamic values in snapshot names unless intentional.
6) Look for environment/config differences
Differences in rendering can cause Percy to keep reporting changes instead of updating cleanly.
- Browser version
- Viewport size
- OS/font differences
- Feature flags or environment variables
- Inconsistent data/state in the page
If the app isn’t deterministic, baseline updates may appear inconsistent.
7) Confirm you’re using the correct project/token
Wrong project configuration can send snapshots somewhere unexpected.
- Verify
PERCY_TOKENbelongs to the correct Percy project. - Check that the repo is connected to the right project.
- If you have multiple Percy projects, make sure CI is pointing to the intended one.
8) Review build logs
The Percy CLI logs often show why a baseline didn’t update.
Look for:
- Upload failures
- API/auth errors
- Snapshot omitted due to no changes
- Errors in
percy execor your integration
9) Check approval rules / branch protection
Some workflows require manual approval before baselines update.
- Certain teams only update baselines on
mainor after PR approval. - If your org has protected branches or approval gates, baseline updates may be blocked until merged.
10) Rebuild from a clean state
If things still seem stuck:
- Clear local caches
- Reinstall dependencies
- Re-run the test suite
- Trigger a new Percy build from a fresh commit or clean CI workspace
Quick debugging steps
If you want the fastest path:
- Open the Percy dashboard build.
- Verify snapshots uploaded successfully.
- Confirm the diffs were approved.
- Check the branch/base branch settings.
- Inspect CI logs for upload/auth errors.
If you want, I can also help you troubleshoot based on your setup:
- Percy + Cypress
- Percy + Playwright
- Percy + Storybook
- Percy + Selenium/Webdriver
- or Percy in CI (GitHub Actions, CircleCI, etc.)