-
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
Failure during cypress verify step --smoke-test / throwing at makeError #4624
Comments
Hi together,
Workaround: adjust smoketest timeout per hand in I guess it might be due to my AntiVirus or Company policy checks, that it takes much longer than the 1.5 seconds. Feature-Suggestion (does not exist yet): Enabling smokeTestTimeout as an option for I hope this can help others. Platform: win32 (10.0.15063) |
Is this option available on mac/linux? Tried both, same error.
|
@justinpincar the option does not exist yet, as far as I'm aware, this was a feature suggestion for the future by my side. |
Ah, understood - I'll hack this change into our CI workflow and see if it helps. @jennifer-shehane it would be great if Cypress exposed this option. |
@justinpincar were you able to update your CI workflow to increase verify timeout? Thanks |
@jedwantstocode Only had it in for a few builds, but so far so good. For some reason my smoke test seems to take between 9s to 11s, resulting in sporadic timeouts with the default value of 10s. Haven't seen a failure to verify yet since adding this.
Not a very robust solution, but better than flaky CI :-) |
I got this thank you
…On Mon, 8 Jul. 2019, 12:26 pm Justin Pincar, ***@***.***> wrote:
@jedwantstocode <https://github.com/jedwantstocode> Only had it in for a
few builds, but so far so good. For some reason my smoke test seems to take
between 9s to 11s, resulting in sporadic timeouts with the default value of
10s. Haven't seen a failure to verify yet since adding this.
- DEBUG=cypress:* npx cypress install
- "sed -i.bak 's/smokeTestTimeout: 10000/smokeTestTimeout: 60000/' node_modules/cypress/lib/tasks/verify.js"
- DEBUG=cypress:* npx cypress verify
Not a very robust solution, but better than flaky CI :-)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4624?email_source=notifications&email_token=ADCJTW4PLXLSQ7ZXPOTPKF3P6KQWDA5CNFSM4H4QBCFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZLZORA#issuecomment-509056836>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADCJTW454KQBLBJOMK6PPP3P6KQWDANCNFSM4H4QBCFA>
.
|
@j-viczian where do you see timing out during Could you paste the debug logs from the timed out verify, please? |
hello, i had a sort-a-like problem, we were on the new 3.4.0 version, and our verify function got a timeout. What we did as WORK-A-ROUND, copied the file binary_state.json from the 3.2.0 version to the 3.4.0 folder and then cypress skips the verify function ... again not a solution, but it got us going again. the content of this file is just: { |
hi, we are seeing a similar problem after upgrading to Not so sure if this is a Cypress thing or a Docker issue while trying to verify it. Thanks for all the help!
|
Hi @srideeps
or on Windows
Also, in Docker container, could you do the |
hi @bahmutov this issue got magically resolved the next time I ran it. |
I am running into this issue as well using the https://gist.github.com/msabramo/6730804bbd5ad7b8934eb0919a75f6f3 I hope this helps diagnose the issue! |
and here's the https://gist.github.com/msabramo/2d5f18863db601e5ba6435f9405b9c63 |
Thank you @msabramo for the detailed log and Dockerfile. I have built your Dockerfile locally and I can recreate the error IF I limit the CPU allocated to the container to a very small number. Here is my command (I commented out
which makes me suspect that in an underpowered container, verification should use a higher time limit. I could pass verification by increasing the timeout in the node_modules/cypress/lib/tasks/verify.js file, so we should probably bump this in our code by default. |
The code for this is done in cypress-io/cypress#4859, but has yet to be released. |
Released in |
Problem still persists in
|
What worked for me in 3.4.1 was clearing the cache and re-installing:
|
@AngSin didn't work, I get the following error, I think it's different than it was. It's run as a pre-commit hook. Could that be an issue?
|
Can confirm, this issue is still happening with 3.4.1 even with clearing cache. |
We are running Cypress 3.7.0 and we see this problem periodically as well. We run Cypress in Docker containers as part of our CI and sometimes they may be underpowered, as has been noted in this issue. Unfortunately the logs don't really provide any color here:
It would appear that 30 seconds is sometimes just not enough time. Is there some way we can set this timeout in our Cypress config? Or a way we can disable this test altogether? Either of these would be much more preferable than Cypress failing, which wastes a lot of our time because our tasks have to be restarted. |
This issue will be closed to further comment as the exact issue here was resolved and tested. If you're experiencing a bug similar to this in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix. |
Current behavior:
We have a few issues floating around about errors during
cypress verify
that we have not been able to reproduce and have not been fixed as of Cypress v3.3.2.This issue is the epic issue to track them all in one place. All the other issues have been closed and direct users to comment here.
The error looks something like this:
Some of the output when run in
DEBUG:cypress*
mode display this stacktrace atmakeError
Most of the
code
values in this stack trace are either1
ornull
.9
and was solved by running undersudo
.3221225781
- SEE THIS ISSUE INSTEAD: Failure during cypress verify --smoke-test: code 3221225781 in Windows #4625Some people mentioned fixes?
Some people mentioned that restarting their computer fixed it. /shrug
Steps to reproduce: (app code and test code)
Basically any way you can run or open Cypress - people run into this issue
npx cypress open
cypress open
./node_modules/cypress/bin/cypress open
yarn cypress run
Versions
Cypress Versions: 3.0.1 ~ 3.3.1
OS Versions:
Try this before commenting!
cypress cache clear
cypress verify
BY ITSELF (notcypress open
orcypress run
)sudo apt-get install xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
The text was updated successfully, but these errors were encountered: