-
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 run hangs for hours on Jenkins with no output, no errors, and no logs #16067
Comments
I resolved the same problem in Azure pipeline, reducing screen size to 1024x720. See Set screen size when running headless for details. |
@tommasomarchionni @jennifer-shehane |
Hey @Muhammadehsan2019, can you narrow down what has changed in your project within the time that your tests ran successfully in Jenkins and the time that it began hanging? Did you update Cypress? Narrowing that down will likely point to the issue. |
@jennifer-shehane |
I'm seeing the same behavior. However, I am on Linux, though also running headless running via Jenkins. This started for us when we moved from 6.8.0 to 7.1.0. We changed from route() to intercept() at the same time. One thing that I've noticed if that I run top on the build machine when it is stalled, Cypress is still out there, still consuming CPU, and 1 process claims it is using 46g of virtual memory. With video enabled, my CPU usage is substantially higher (about 3x higher) and the behavior is the same. I tried lowering the screen size per @tommasomarchionni, and the behavior is unchanged (and my top is similar to what it showed prior to changing the screen size). Result: top - 02:12:47 up 8 days, 4:16, 0 users, load average: 0.90, 0.93, 1.01 PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND |
I turned on Cypress DEBUG to see what it was doing after it should have completed. I get a bunch of lines like this: Occasionally, it will dump out some profile data: And periodically I see: Followed after a while by: It will do that endlessly, never exiting. The last apparently legitimate output I see looks like this: 2021-04-22T09:10:48.296Z cypress:proxy:http Running middleware { stage: 'IncomingResponse', middlewareName: 'AttachPlainTextStreamFn' } |
@Muhammadehsan2019 What Cypress version were you previously using? Is there still hanging when using the old cy.route() in the new version? We are working on resolving a few performance issues introduced in the last few versions, so it's likely concerned with these performance issues. |
@jennifer-shehane |
Similar issue here. Jobs hangs for hours in middle of test case without any output. As far as I can tell the issue started to appear after upgrading cypress from 7.0.0 to cypress 7.1.0. In Jenkins we have linux slaves running docker cypress/included:7.1.0. The test case that hangs is using cy.intercept to wait and check API response content. After going back to 7.0.0 it works fine. |
There are some performance issues introduced in recent versions of Cypress, please see those issues for relevant updates. We're working on them.
If you are running Cypress in a headless browser, please try reducing the screen size to the default size prior to 7.0 (1280x720) to see if the new issues are related to the increase in screen size. Instructions here. If that doesn't resolve the issue, I suggest downgrading to the last known version of Cypress that worked well. We'll be closing this issue as there are no reproducible actions. For now we need to focus on the performance issues where we're given clear reproducible examples. |
@jennifer-shehane
@bahmutov
@brian-mann
I noticed that the Cypress run stalls and hangs for hours in Jenkins. The scheduled job runs on Jenkins every day at 8:00 pm for the duration of approximately 30 minutes, but I noticed that this 30 minutes job was running indefinitely for over 12 hours in Jenkins with no errors, and no logs. All I could do is to stop the run and rerun the build.
Please provide a solution for this!!!
Additional Info:
The text was updated successfully, but these errors were encountered: