-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cypress/CircleCi - Rerun workflow from failed causes 0 tests to run and 'passes' the circle job #386
Comments
@trevor-bennett thanks for taking the time to report this. I believe it is a duplicate of this issue in our |
@admah I updated to 10.9.0 and the issue still occurs. The rerun from failed is causing the same logging/situation where 0 tests are run but is listed as 27+ specs found and passes the entire step |
@trevor-bennett I'm going to transfer this issue to our circleci-orb repo so we can triage it appropriately there since this is more than likely an issue with that Orb and "Rerun workflow from failed". |
Turns out to be any re-run job is skipping every single test regardless if its from start or failed when run against cypress 10.9.0 and the cypress: cypress-io/[email protected] orb |
Experiencing the same issue here with |
For anyone else experiencing this issue, we solved it by appending the build number to the commit hash identifier in the
Hope this helps anyone else out there. |
As stated by @jnpwebdeveloper - you want to ensure that there is a unique ci-build-id for each run and each rerun. Typically Cypress is pretty good about determining a ci-build-id for reruns, but every CI environment is different and if you've overwritten this to be static for each run, that could also cause the issue where on rerun, Cypress sees the rerun as a previous run that's already finished and exists (unfortunately with passing tests). For v 3.0.0 of our orb, you could pass Closing as the solution is outlined above. |
Current behavior
splitting cypress/install and cypress/run into two different jobs within the circleci config yml will cause 0 tests to actually run when selecting rerun workflow from failed if the failed job within circle is only cypress/run
First failed circleci run:
After selecting
Rerun workflow from failed
:Cypress console logging:
Desired behavior
When the CircleCI option to
Rerun workflow from failed
step in invoked, the proper tests are ran.Test code to reproduce
Prerequisites:
CircleCi Job Definitions:
Cypress Version
10.3.1
Node version
12.19.0
Operating System
Ubuntu 20.04.4 LTS
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: