-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
feat: add CYPRESS_SKIP_VERIFY
option to suppress verification
#29836
feat: add CYPRESS_SKIP_VERIFY
option to suppress verification
#29836
Conversation
|
CYPRESS_SKIP_VERIFY
option to suppress verificationCYPRESS_SKIP_VERIFY
option to suppress verification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changelog does not match code
Did you open an issue about timeouts so this could be investigated? I'm seeing some other problems in CI environments with |
Hi @MikeMcC399! I have not opened an issue about the timeouts, but there has been a lot of discussion in this repo about this issue already (see for example #6082). It has been partially addressed by adding the ability to set a long timeout, but I would like to add the option to suppress the error so that we can:
|
|
Yes @MikeMcC399, I'm pretty sure something is going awry with the child tasks which interrogate the installed vs expected binaries, but it's pretty hard to narrow it down because it only happens on around 2% of jobs and usually passes on a re-run. I don't think it's a sensible use of resources to put For our use cases we don't much care about these integrity checks as we're pretty confident in our CI environment's stability (I think that will be a commonly held sentiment), our jobs are all running on the same container infrastructure, and using the same caches. We don't want to have to implement a retry shell script or other such workarounds, so using a flag to opt out seems like a better way forward for us. If our use of this flag helps to highlight a root cause or underlying problem I will be happy to raise it as an issue in this repo! |
Thanks again for your explanation and background! Which CI provider are you using and which package manager (npm, Yarn or pnpm)? |
@MikeMcC399 we're using GitHub Actions with a mix of Linux, Windows, and MacOS, and a mix of |
The new environment variable would need to be documented in the table https://docs.cypress.io/guides/references/advanced-installation#Environment-variables so this would mean that a release branch for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation aspect needs to be covered.
@MikeMcC399 docs PR is here: cypress-io/cypress-documentation#5889 |
@MikeMcC399 @jennifer-shehane is there anything else I can help with to get this moving? |
Yes, you will need to resolve the conflicts in the branch. Unfortunately this can happen as changes are committed to the This is mentioned in the submitter's guide https://github.com/cypress-io/cypress/blob/develop/CONTRIBUTING.md#pull-requests |
@MikeMcC399 sorry I hadn't seen there were more conflicts. I have updated that now, is there anything else? |
👍🏻
CI has one failing test, however that may be CircleCI flake. I expect that @jennifer-shehane will be able to provide more concrete feedback as the Cypress.io team is more familiar with the individual tests than I am. They can also re-run individual tests. Since I'm only an external contributor, I don't have write privileges to CircleCI, to the repo or to the PR approval process. I can just provide comments. |
@joshuajtward Just awaiting @AtofStryker review at this point |
Co-authored-by: Bill Glesias <[email protected]>
Co-authored-by: Bill Glesias <[email protected]>
Co-authored-by: Bill Glesias <[email protected]>
Good shout @AtofStryker, that reads more nicely - I've updated it now |
@joshuajtward There's a linting error |
@AtofStryker I have fixed this up and it should be ready for a re-review, thanks! |
@joshuajtward Thank you for getting the changes addressed! One last question on my end. I created a binary of your code changes on add6f09. Are you able to download the binary from the link and verify the changes work as expected? |
Hi @AtofStryker, I have installed the Without the flag it works as normal: With the flag the verify steps are skipped: And if the binary is missing then it fails with an illustrative error: Please let me know if there's any other testing you would like me to do! |
I notice that you're running quite an old version of Yarn (
|
@jennifer-shehane are we all set to merge? 🙏 |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Additional details
The PR adds a flag
CYPRESS_SKIP_VERIFY
to prevent the verification steps from running. These steps are semi-redundant in CI environments, and regularly timeout leading to false negatives in test suites.Steps to test
CYPRESS_SKIP_VERIFY=true
in your envHow has the user experience changed?
If a user opts in they will not get the verification on Cypress startup
PR Tasks
cypress-documentation
?type definitions
?