Repository navigation
fix(ci): skip the percy cli release check in visual uploads - #661
Merged
Merged
Conversation
- @percy/cli 1.33.0 (2026-11-19) made every 1.32.12 run print 'A new version of @percy/cli is available!' to stderr; the runner treats unknown stderr as fatal, so finalized uploads reported sdk-warning and cli-unknown-diagnostic. - Run the live CLI with PERCY_SKIP_UPDATE_CHECK=true: no GitHub release lookup, no warning. - Reproduced locally with Node 24.22.0: one update line without the switch, none with it.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
What
The advisory Percy upload reported
visual upload: incomplete or failed Percy buildeven when the build finalized.@percy/cli1.33.0 was published on 2026-11-19 (1.33.1 on 2026-11-20), and since then the pinned 1.32.12 CLI checks GitHub releases on every run and prints[percy] A new version of @percy/cli is available! 1.32.12 -> 1.33.1to stderr.scripts/test-visual.tstreats any unknown stderr as fatal, so it reportedsdk-warningandcli-unknown-diagnosticfor builds Percy had finalized (on #660 Percy posted its status, and the runner loggedphase=server reason=healthywith neithernot-finalizednormissing-summary).This sets
PERCY_SKIP_UPDATE_CHECK=true(the CLI's own switch, read in@percy/cli/dist/update.js) for the live CLI. It makes no GitHub release lookup and cannot print the warning. The classifier and its failure policy are unchanged; the CLI pin is unchanged.Evidence
percy exec --testingunder Node 24.22.0 with the runner's environment, without the switchA new version of @percy/cli is available!line on stderrPERCY_SKIP_UPDATE_CHECK=truevisualProcessReasonson a finalized upload result plus that line["sdk-warning","cli-unknown-diagnostic"], exactly #660's reasons; without the line,[]bun test scripts/test-visual.test.tsbun run check:repositoryHistory, for the record
mainpushes and pull requests alike, failed earlier, atphase=server reason=health-unreachable: the Percy CLI never started its local server, so no build was created. That stopped by 2026-11-23 without a repository change; the runs keep only redacted reasons, so the cause is not recorded.main32fb64c on 2026-11-07, the 11-14 v0.12.0 record pull request); no diagnostics survive.mainbuild forbf85908(feat(omp): refresh the host baseline and embedded client to OMP 19.1.1 #660) is the first finalizedmainbuild Percy shows, still marked "21 visual changes need review" because no approved baseline exists yet. This pull request's Percy build is the first that can compare against it.