Skip to content

fix(ci): skip the percy cli release check in visual uploads - #661

Merged
alphastorm merged 1 commit into
mainfrom
fix/percy-skip-update-check
Nov 23, 2026
Merged

alphastorm merged 1 commit into
mainfrom
fix/percy-skip-update-check

Conversation

@alphastorm

Copy link
Copy Markdown
Collaborator

What

The advisory Percy upload reported visual upload: incomplete or failed Percy build even when the build finalized. @percy/cli 1.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.1 to stderr. scripts/test-visual.ts treats any unknown stderr as fatal, so it reported sdk-warning and cli-unknown-diagnostic for builds Percy had finalized (on #660 Percy posted its status, and the runner logged phase=server reason=healthy with neither not-finalized nor missing-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

Check Result
percy exec --testing under Node 24.22.0 with the runner's environment, without the switch One A new version of @percy/cli is available! line on stderr
Same command with PERCY_SKIP_UPDATE_CHECK=true No update line
visualProcessReasons on 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.ts 26 passed (the CLI-environment test now asserts the switch)
bun run check:repository Pass

History, for the record

  • From at least 2026-11-07 to 2026-11-14 every upload, on main pushes and pull requests alike, failed earlier, at phase=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.
  • Two uploads in that window failed the native-Node log-audit preflight instead (main 32fb64c on 2026-11-07, the 11-14 v0.12.0 record pull request); no diagnostics survive.
  • The main build for bf85908 (feat(omp): refresh the host baseline and embedded client to OMP 19.1.1 #660) is the first finalized main build 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.

- @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

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@alphastorm
alphastorm added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit f83bb0c Nov 23, 2026
12 checks passed
@alphastorm
alphastorm deleted the fix/percy-skip-update-check branch November 23, 2026 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant