feat(PER-9724): send priority on build create via PERCY_PRIORITY (internal)#2329
Open
annukumari-bs wants to merge 1 commit into
Open
feat(PER-9724): send priority on build create via PERCY_PRIORITY (internal)#2329annukumari-bs wants to merge 1 commit into
annukumari-bs wants to merge 1 commit into
Conversation
…ernal) Internal product orchestration (e.g. Scanner / LCA) can set PERCY_PRIORITY=true to request the priority lane; the client forwards it as the build-create `priority` attribute. Mirrors the existing PERCY_ORIGINATED_SOURCE internal signal in createBuild. percy-api only honors `priority` for eligible internal build types (visual_scanner / responsive_scanner / lca), so this is a no-op for customer builds and is not customer-controllable. Attribute is omitted entirely when PERCY_PRIORITY is unset (no payload change for existing flows). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Author
Claude Code PR ReviewPR: #2329 • Head: a8512dd • Reviewers: fallback focused review (no in-scope specialist reviewers in percy/cli) SummaryPER-9724: Review Table
FindingsNo HIGH/MEDIUM findings.
Verdict: PASS |
rishigupta1599
approved these changes
Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
PER-9724 — client side of the priority-queue feature. Lets internal product orchestration (e.g. Scanner / LCA) request the priority lane for a build.
@percy/clientcreateBuild()now forwards an internal env signal as the build-createpriorityattribute:This mirrors the existing
PERCY_ORIGINATED_SOURCEinternal signal right beside it increateBuild.Why an env var (internal, decoupled, safe)
PERCY_PRIORITY=true; the client just relays it. Not a customer-facing config.priorityfor eligible internal build types (visual_scanner,responsive_scanner,lca). A customer setting the env var on a normal build has no effect, and the CLI doesn't duplicate the eligibility allowlist.priorityattribute is omitted entirely unlessPERCY_PRIORITY=true, so existing build payloads are unchanged.Companion PRs
priority, gates byparam && internal build type, routes jobs)End-to-end: internal product sets
PERCY_PRIORITY=true→ client sendspriority: true→ percy-api honors it for eligible scanner/lca builds → jobs route topriority_*queues across api / renderer / image-processor.Tests
Added to
packages/client/test/client.test.js: priority sent whenPERCY_PRIORITYset, and omitted when unset. Both pass; all existingcreateBuildtests pass. (Two unrelatedproxy.test.jsfailures are pre-existing — a Node URL error-string difference, not part of this change.)🤖 Generated with Claude Code