Replies: 1 comment 1 reply
-
|
Hey @yjaaidi! Thanks for the idea, I’ve let the product team know about it. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The problem
There are some incremental build/test workflows where no snapshots are taken.
In these cases,
percy execorpercy exec:start&percy exec:stopare used in conjunction withPERCY_PARTIAL_BUILD=1but as there is no snapshot taken, the build fails.In a more precise example, we are using Nx which has an
nx affectedcommand that only runs affected tests.Some commits or PRs might change files that don't affect tests.
In this case, running the following command would fail as no snapshot is uploaded:
Solutions
PERCY_PARTIAL_BUILDPERCY_ALLOW_EMPTY_BUILDenv var that sends anallow_empty_build: trueflag to the API when creating the build and mark the build as successful on finalize even if no snapshot was upload.Workarounds
Beta Was this translation helpful? Give feedback.
All reactions