percy / cli

The Percy CLI is used to interact with, and upload snapshots to, percy.io via the command line.
https://docs.percy.io/docs/cli-overview
70 stars 43 forks source link

[percy:cli] Error: Finalizing build # failed: cannot finalize before all snapshot resources are uploaded. #1716

Open unlikelyzero opened 3 weeks ago

unlikelyzero commented 3 weeks ago

The problem

Build is failing due to a timing issue in percy cli https://github.com/nasa/openmct/issues/7829

Environment

"@percy/cli": "1.27.4",
"@percy/playwright": "1.0.4",

Details

It looks like a failed network response from the percy server.

Debug logs

[percy:core:browser] Closing browser (783ms) [percy:core:browser] Browser closed (23ms) [percy:client] Finalizing build 36306715... (0ms) [percy:cli] Error: Finalizing build 36306715 failed: cannot finalize before all snapshot resources are uploaded. This is likely a client error, please make sure that content for all SHAs in 'missing-resources' from the snapshot response are uploaded before calling finalize. at handleFinished (file:///root/project/e2e/node_modules/@percy/client/dist/utils.js:186:17) at IncomingMessage. (file:///root/project/e2e/node_modules/@percy/client/dist/utils.js:202:27) at IncomingMessage.emit (node:events:531:35) at endReadableNT (node:internal/streams/readable:1696:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) (182ms)

Code to reproduce issue

Everything we do is open source and can be seen here https://app.circleci.com/pipelines/github/nasa/openmct/23591/workflows/88c419fb-2dcf-4f80-a3cf-4a6217042330/jobs/103331

prklm10 commented 2 weeks ago

@unlikelyzero we are checking this. Thanks for raising the issue.

prklm10 commented 2 weeks ago

@unlikelyzero can you try few things ->