-
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
Cypress unexpectedly hangs when running tests on Codeship CI #1890
Comments
I normally don't do this, but +1 here. Since upgrading to Cypress v3.0.1 we've also been seeing random hangs on Jenkins builds that run our Cypress tests in headless mode. It is intermittent and we're not sure how to reproduce as it will hang the build on different specs while running. |
Could you paste the error message/exit message from one of these previously failing runs? |
@jennifer-shehane the problem is, the build hangs and codeship kills it so the last piece of information is the spec name. There is no error message or exit message Edit: I can set debug and give you the info from that if it will be useful? |
This is the exact issue with our situation as well: there is no exit code and there is no error message, and the last message in Update 2: It seems like it's randomly happening on different specs now as a few builds since I posted have stalled on other specs. Update: I found a pattern in our tests (it halts on the same spec file) and I'm no longer going to be commenting on this issue but will monitor it. If it is in-fact a problem I will open a new issue with more information. |
I've just noticed that my issue seems to be related to CORS. However, I'm not really sure exactly whats going on or whats actually causing this. There seems to be a bug where cypress doesn't report that it failed and just gets stuck.
Update: turned off uncaught exceptions and now the tests are failing correctly |
+1; same issue on TFS. It just hangs without any feedback about why. So the tests work fine on my local-machine, but since upgrading to 3.0.1 the cli hangs randomly on my build-server. |
+1 totally agree with SanderMeester and rufushonour. Hope there will be an quick fix for this. |
We used to see the same thing in |
Released in |
Current behavior:
We have parallel tests running a suite of specs on Codeship Pro, completely dockerised setup. One container running our app, one the database and one cypress for each parallel run.
In the last month or so, we've been seeing our CI hang randomly on different specs. They can fail on one build and pass after being restarted.
I have no errors in the logs.
The behaviour is very weird. It will run an random number of specs and then stop dead. On each run, its a different spec file that decides to hang. I have set DEBUG to cypress:* but when it hangs, I just get messages about waiting for an event.
Everything works fine running on my dev machine.
Any ideas to what could be causing it?
Desired behavior:
All tests run and output correctly, fail/pass
Steps to reproduce:
Not sure how to reproduce as completely random.
Versions
Cypress 3.0.1
Docker on Codeship
The text was updated successfully, but these errors were encountered: