-
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
Possible infinite loop while running in Jenkins with retries #14972
Comments
The debugger lines are just normal activity that happens when a run is running - so it's likely hanging.
There's really nothing we can do without a way to see the hanging on our side. So as much information you can give for us to get there would be helpful. |
I am experiencing the same issue running Cypress in an Azure DevOps pipeline. The pipeline runs over 330 tests, and we were experiencing hangs 8-10 minutes into the testing cycle which would eventually cause the task to timeout. After reading issue 9040 I tried upgrading to 6.4.0 which helped, allowing the tests to run to longer, but it did not alleviate the issue. I added the cypress_failed_log plugin and could clearly see the issue was hanging on retries as the tests progressed. Our initial retry setting was 3 in cypress.json. Setting this down to 2 allowed the tests to proceed further, and with a setting of 1 we were able to complete the entire test suite. Tests are running headless using electron in a Linux VM. Here is the log output of the start and finish when running 6.0.1: 2021-02-11T17:06:12.1605307Z ** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ ** Test started 17:06:12, test hung 17:11:37, running time 5:25 This is the log output of the start and finish when running 6.4.0 2021-02-12T17:16:46.5956349Z ** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ ** Tests started 17:16:46, tests hung 17:30:31, running time 13:45 And this is the log output of the start and finish when running 6.4.0 2021-02-12T19:18:00.0892994Z ** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ ** Tests stated 19:18:00, tests hung 19:32:06, running time 14:06 Again, setting retries to runmode 1, openmode 1 allowed the test cycle to complete. Hope this info helps! |
We're experiencing the same in two projects using Cypress 6.5.0
Examples to illustrate the last lines before the tests hang
Last lines of the debug output
Debug output of the process profiler
cypress.json
I'm happy to run someone through my findings and show our setup in more detail in a call. Feel free to reach out to my GH profile mail address |
Could just be a coincidence, but service worker is heavily used in my application as well. |
Yes, it does sound the similar as #9040, but all of us who have run reported the problem here are using 6.4 or greater and are still seeing the issue. |
the docker image we are using to run cypress on jenkins was installed with node 14, while the node version included with cypress is 12 and i saw that cypress currently only supports 10/12, is there a potential issue there? unsure how much cypress uses that built in |
found this: badeball/cypress-cucumber-preprocessor#476 seems the likely culprit. i am using the cucumber plugin as well |
same issue: cypress 6.8.0, no retries set (no retries setting defined which means 0), sometimes cypress hangs when running on dev.azure (we're never experiencing the same behavior locally) the log always ends with these repeating lines:
until CI cancels the job due to timeout |
I just want to chime in and say that we too are experiencing the same issue, however, we're experiencing it in all environments. |
I have already commented on a similar issue thatp proposed some changes: We are experiencing this stall in 70% or more. This means, rerunning CI several times for every change to go through. I am not sure how to debug or address this issue further. Our Setup
Things we have tried so far
None of which seems to help. |
This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided. |
Current behavior
While running Cypress with a docker image inside Jenkins, we are currently encountering an infinite loop (or what appears to be one). Seems related to this issue: #9040, but I am still encountering the problem with versions 6.3.0 and 6.4.0 of cypress.
With
DEBUG=cypress:*
set, I get these two messages repeatedly until I either abort the Jenkins build or lerna crashes.Appears to be related to retries, as it can successfully run occasionally, and I've seen that when it does pass all tests, the tests ran quickly with no retry attempts.
Desired behavior
Test code to reproduce
Unfortunately, I can't share my code, but can try and provide any more information you need.
Versions
Issue exists in 6.2.1, 6.3.0, and 6.4.0 at minimum. Haven't heard of or seen this issue from previous versions.
The text was updated successfully, but these errors were encountered: