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
71 stars 45 forks source link

Percy cli throws error when finalizing a build #1293

Closed mbr-sn closed 1 year ago

mbr-sn commented 1 year ago

The problem

I am doing a percy cli run, with 2556 pages / URLs to snapshot. At the end of the run I get the following error:

[percy:client] Finalizing build 12345678... (1ms) [percy:cli] Error: Finalizing build 12345678 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:///usr/lib/node_modules/@percy/cli/node_modules/@percy/client/dist/utils.js:186:17) at IncomingMessage.<anonymous> (file:///usr/lib/node_modules/@percy/cli/node_modules/@percy/client/dist/utils.js:202:27) at IncomingMessage.emit (node:events:525:35) at endReadableNT (node:internal/streams/readable:1359:12) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) (317ms) Similar runs are fine with fewer pages to snapshot.

Where does Percy cli (or headless chromium) store temporary files by the way? Could this be a disk space issue on a temp folder?

Environment

Details

percy.yml version: 2 snapshot: widths: [375, 1280] min-height: 2000 enable-javascript: true discovery: network-idle-timeout: 500 disable-cache: false concurrency: 4 launch-options: headless: true timeout: 30000

Debug logs

See above

Code to reproduce issue

Not really reproducible

itsjwala commented 1 year ago

This is related to https://github.com/percy/cli/discussions/1137

Please reach out to us via our support, we'll be happy to assist further.