DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk4 min

How to Control Percy Snapshot Concurrency in CI

Coordinate Percy CI shards with a shared nonce and the right completion mode: a fixed total for known shard counts, or total -1 with explicit finalization.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Control Percy parallel snapshots by coordinating CI shards into one build: use the same run-unique PERCY_PARALLEL_NONCE on every shard, set PERCY_PARALLEL_TOTAL to the number of shards Percy should receive when that number is fixed, and finalize once the expected work is complete. For a variable shard count, Percy documents total -1 with an explicit finalize step after all test jobs finish. First check whether your CI integration already detects parallel metadata; many supported setups do.

What Percy concurrency settings coordinate

These settings coordinate parallel Percy builds or shards; they are not a single knob that limits how many snapshots can run simultaneously. The nonce groups shards from one CI run into the same Percy build. The total tells Percy how many shard finalizations to expect when you know the count. See BrowserStack Percy’s parallel test suites guide and environment-variable reference.

As an Amazon Associate I earn from qualifying purchases.

Count the Percy shard invocations that report to the build, not the test cases running inside them. The official guidance does not establish one universal maximum concurrency limit across plans; check current plan documentation or support for any account-specific cap.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose the coordination mode

CI situation Configuration How completion works Risk to avoid
Fixed, known shard count One shared, unique nonce and an exact PERCY_PARALLEL_TOTAL Percy waits for that many shard finalizations. An incorrect total can leave the build waiting for a missing shard.
Variable or unknown shard count Parallel mode with total -1 Run an explicit finalize operation after every shard has finished. A missing finalizer or a different nonce can leave the build open.

Percy documents these modes in its parallel suite guide. Choose based on whether the shard count is known and whether your CI workflow can run a dependent finalizer job.

Configure a fixed shard count

  1. Determine the count. Set the total to the number of Percy shard invocations expected for this build.
  2. Choose a run-unique nonce. Use a CI run identifier that all shards share, but that differs between separate runs. Confirm reruns do not reuse an identifier that could point at an already finalized build.
  3. Pass both values to every shard. Example for four shards, assuming CI_RUN_ID is shared across those four invocations and unique for each run:
    PERCY_PARALLEL_NONCE="$CI_RUN_ID" PERCY_PARALLEL_TOTAL=4 npx percy exec --parallel -- npm test
  4. Wait for all expected shard finalizations. Keep the values consistent across jobs and verify your installed CLI and CI integration’s completion behavior.

Percy documents percy exec --parallel -- [test command] for tests distributed across machines or containers. The command above is illustrative; adapt the shell and CI variable name to your environment. A fixed total is useful only if every expected shard can report.

Configure a variable shard count

  1. Run the test shards in parallel mode with the shared nonce and total -1.
  2. Add one dependent CI job that waits until all test shards have finished.
  3. In that job, run percy build:finalize using the same nonce/environment context as the shards. Run it once, after—not alongside—the shard jobs.

Percy identifies percy build:finalize in its command reference. The parallel-suite guide also describes finalizing after all tests complete. Follow the syntax supported by the CLI version installed in your project.

Check automatic CI detection before overriding values

Percy says most supported CI configurations detect parallel variables automatically. Inspect the environment detection and job logs before adding manual overrides; conflicting values across shards can prevent them from joining correctly. For a custom or unsupported provider, map the Percy token and parallel metadata explicitly. Percy’s guide to other CI/CD tools says PERCY_PARALLEL_NONCE is required for custom providers and should be shared within a run but unique between runs.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Troubleshoot builds stuck in receiving

  • The build remains in “receiving.” Compare the configured fixed total with the number of shards that actually finalized. If the total is four and only three shards completed, Percy can continue waiting.
  • You use total -1. Check that the finalize job ran after every test shard, ran only once, and used the same nonce as those shards.
  • A rerun attaches to an old build or fails after finalization. Make the nonce unique across runs, including reruns. A provider’s workflow identifier may be reused, so verify its behavior rather than assuming it is unique.
  • Only some jobs join the parallel build. Compare the nonce and total visible to every shard, and inspect whether supported CI detection is already setting values that your configuration overrides inconsistently.
  • You use a custom CI provider. Map the Percy token and shared parallel metadata into each job, and ensure the finalizer receives the same nonce when using total -1.

These failure modes and remedies follow Percy’s parallel suite troubleshooting guidance and its environment-variable reference.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or skip the browser setup

Percy remains the right configuration for coordinating Percy snapshots in CI. For a separate workflow that needs website screenshots from a single API request, ScreenshotNeo returns a screenshot or PDF from a URL. For example, save the response as a WebP file:

curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp

See the ScreenshotNeo API documentation for request options. It removes cookie banners, newsletter popups, and chat widgets before capture; bot checks, blank pages, failed loads, timeouts, and cache hits are not billed. Its MCP server provides screenshot tools for AI agents, and the free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000. Sign up for ScreenshotNeo’s free plan.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.