-
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 10.x.x hangs under Linux + Docker using cypress/included:10.2.0 #22506
Comments
@jennifer-shehane In my opinion, this is a really serious bug. I have picked out tickets that describe the same or a similar problem: #18885 |
@pontilicious Thank you for logging an issue. To confirm this hanging is indeed related to the browser crashing or hanging, can you run I was able to produce the hang when Chrome crashes, but want to double-check this truly a Chrome issue. |
@emilyrohrbough I have an older log file here. Since the problem seems to occur since Cypress 4.2, it should still be a reference. |
we encountered exactly same issue as you, it lasts for several builds, now it got worse and the logs doesn't help at all. Is there anyone could help on this issue? |
|
Thanks @robrich7 ! , I read this post, yet seems there is nothing we could do except wait for cypress official team's fix. |
unfortunately you are right |
I'm also getting hanging of Cypress run in CI. When running locally, the browser crashes regardless of whether it's Chrome or Electron. The crash would happen around (but not exactly) the same part of the test. Here's some of the output thanks to
Node version: One thing that may be relevant: this is one test that's being run that's very long and involves a lot of clicking around and navigating the site, loading a lot of data on the way. The test is supposed to take around 5-10 minutes to complete. |
We also started getting this issue a couple of months ago.
Errors from DEBUG=cypress:*
and then the log is full of recurring of the following message until CircleCI will fail job by no output timeout
|
@robrich7 Could you please try disabling the Command Log: It is helped me to solve the issue with hanging tests |
On top of disabling the Command Log, disabling video recording has helped me to greatly reduce the frequency of hanging tests. |
Yes, this is a possibility to avoid the crashes, but in this case many of my tests fail, because certain values are no longer passed, which I need for my tests. So this is not a valid solution for me. |
I know that this isn't a solution for everyone, but disabling the command log fixed this issue for me. I'd love to understand how we can relieve the memory constraint another way in order to save these logs for troubleshooting later. |
I had some luck doing this as well as turning off parallel running and manually splitting out my runs over different spec files. This helps when something does timeout the re-run failed works pretty well, where when running in parallel I don't have that ability it seems. edit: I have also disabled the Command Log (did not solve the issue) and turned on Debug logging |
in the last update to 10.11.0 a bugfix was included: this now shows when the browser crashes and then continues with the next test spec. This is a good temporary solution, but it crashes every time I run a test spec, which is just not satisfying. we use Tekton Pipeline with the following performance:
and the following code in the index.js:
EDIT: I think the problem is with the Docker image for |
tested it with the |
i have found a solution that works for me. |
possibly related to #23391 which is being actively worked on. We will double check to see if this issue is resolved when work on the linked ticket is complete. |
Since this issue hasn't had activity in a while, we'll close the issue until we can confirm this is still happening. Please comment if there is new information to provide concerning the original issue and we'd be happy to reopen. |
I am facing the same issue with cypress-included-9.7.0. I am running tests inside a docker container with chrome browser in headless mode, and it is going till a certain point and getting stuck after that. I tried disabling the COMMAND_LOGS but it didn't solve the issue. Are there are known resolutions for this? |
I changed my chrome version to < 100, and it is working now. So I think it is a proper solution for this issue. |
Current behavior
Hello all,
we have the problem that Cypress local runs without problems. All tests are executed and the test run includes all test specs.
If we run the same code in a pipeline with the Docker image and Pipeline integration , it doesn't work anymore.
The problem is that Cypress doesn't do anything anymore except logging the CPU usage even though there are still test specs and tests to run.
Sometimes this happens during the first test spec, sometimes after another one. It is always different.
Via
DEBUG=cypress:* npx cypress run
I logged everything and there is no error in the logs when Cypress stops working and only logs CPU usage until the pipeline times out.This looks like this in the logs:
I can't tell for sure since the logs don't indicate anything but it seems like the test runner is crashing or Cypress is losing connection to it, or it is a memory leak, but unfortunately it is impossible to tell from the missing log entries. It is very hard to trace but happens with every test run. We have had this problem for over a year now....
I can't tell for sure since the logs don't indicate anything but it seems like the test runner is crashing, the Chrome crahed (Aw, snap!) or Cypress is losing connection to it. It is very hard to trace but happens with every test run. We have had this problem for over a year now....
If you run the Docker image locally, without pipeline, then it works as well. So it must be the interaction between pipeline and Docker image.
Currently we are using
Cypress 10.2.0
withChrome 100
, but we had the problem also withCypress 8.3.0
This happens also in Electron Browser. i've tried
"video": false, "numTestsKeptInMemory": 1 and 0
, and ourindex.js
incypress/e2e/plugins
looks like this:Desired behavior
Cypress no longer crashes during the pipeline run or spits out proper logs, after which you can see what the problem is.
Test code to reproduce
Since it fails on a different spec each time, it doesn't seem to be related to actual test code
Cypress Version
10.x.x
Other
Cypress seems to be very resource-heavy. Our local computers run with 8 CPUs and the pipeline with 6 CPUs. in my opinion it cannot be due to our hardware resources
The text was updated successfully, but these errors were encountered: