cli icon indicating copy to clipboard operation
cli copied to clipboard

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

Open unlikelyzero opened this issue 1 year ago • 2 comments

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

unlikelyzero avatar Sep 10 '24 13:09 unlikelyzero

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

prklm10 avatar Sep 16 '24 13:09 prklm10

@unlikelyzero can you try few things ->

  • Please update the percy cli version to the latest.
  • Can you add concurrency: 2 in you percy.yml file docs
  • Can you try above stuff and revert back to us if you are seeing this issue is still persistent or not.

prklm10 avatar Sep 18 '24 13:09 prklm10

Closing as stale.

ninadbstack avatar Oct 07 '24 10:10 ninadbstack