-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 sometimes hangs trying to run first test in CI (Jenkins) #2294
Comments
Perhaps v3.0.3 will help: https://docs.cypress.io/guides/references/changelog.html#3-0-3 |
Unfortunately, upgrading to 3.0.3 causes a number of my tests to fail because of #2245 |
I'm seeing intermittent CI hangs on v3.0.3 as well (and same for each other version of 3.0.x, but never on 2.x). CircleCI does the full e2e test runthrough around 20% of the time, and the other 80% of the time a test will unexpectedly hang, causing a "Too long with no output (exceeded 10m0s)" The tests that it hangs on are different every time. Running with Let me know if there's any other info or debugging I can do to help surface this issue! |
There are some random CI hanging issues being resolved in our upcoming 3.1.0 release - not sure if will fix this problem, but may be worth trying. #2323 |
This is fixed in |
I'm still seeing this happen on 3.1.0 |
The same for me :( |
@brian-mann we still see this issue on Jenkins with Cypress version 3.1.0. However with the "trick" on overwriting the cy.window().then( win => win.onbeforeunload = undefined); |
@shinobi64 Where do you put this command? |
@cookuricoo I just added an Full code inside the file looks like this: after(function() {
cy.window().then(win => win.onbeforeunload = undefined );
}); This solved for use the issue reliably - and we did not had to adjust each and every test to check if there is a beforeunload function defined or not |
The issues that are resolved with a |
I have a hang on the verify running using the standard cypress base image on jenkins in kubernetes
|
Current behavior:
Cypress is hanging in Jenkins CI intermittently (does not happen every time but has been happening over half the time the past day). The issue started happening early yesterday; we had not experience it before then and did not change versions. It always gets hung up on the very first spec file. If it actually starts running, it is able to go to completion.
It might be chrome-specific. I switched to no longer specifying
--browser chrome
and a build hasn't hung yet, but still a relatively small sample size.Desired behavior:
Cypress is able to run the tests consistently
Steps to reproduce:
Running
cypress run --browser chrome --config video=false --spec 'cypress/integration/mocked/**/*.js'
in Jenkins CIVersions
Cypress 3.0.2
This is the debug output I get when the tests fail to run:
The text was updated successfully, but these errors were encountered: