-
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
If "We detected that the Chromium Renderer process just crashed." still output report #3602
Comments
We also have this issue in a flaky manner, so cannot provide a working example. But it shows the tests run with version 3.2.0 but are failing with 3.3.2 and 3.4. Maybe this helps. (Internally we think it might be the electron version) |
I started to encounter this error with version 3.6.0 and now tested with 3.6.1 and still happens. With 3.4.1 version I never encountered it. |
Also started experiencing this while attempting to upgrade from 3.4.0 -> 3.6.1 |
Started encountering this after upgrading from 3.4.1 -> 3.7.0 |
@jasondeng @darkyndy are you using kubernetes by any chance? |
@mattrlong yes |
Same, and also experiencing this issue. How many parallel runners are you using? Are you using resource limits on your Pods? |
Have you tried to prevent this issue in the past? Wondering if this is something you're also experiencing? |
I do not have access to k8s setup as this is maintained by the Ops team and as I'm the owner of the single project that uses Cypress they will not do any changes specific to my project. If it is a way to configure cypress or to run some bash script (I have sudo) on the docker image that could be a solution for me. Later edit:
Yes every pod is limited, need to check with Ops what is in place. I'm using 3 parallel runners by using
and everything start from sh command:
Note: I tried with 4 and the docker instance crashed :) this is why I have only 3 groups. |
We also started seen this after upgrading to 3.7.0 It only breaks in our CI where we use k8s |
We have tried an upgrade to 3.7.0 and we have the same issue (tests are run from docker, in gitlab-ci) |
we have circle-ci and also jenkins-kuberneties.. crushing in both. |
Same here. In my case I use cypress to test a ReST API. I do not even load a website. Just sending requests using |
I'm also seeing this same issue. I stub all requests using mock data, so my tests don't even take that long to run. I'm on 3.8.2. |
I'm having the same issue, with the latest Cypress ( |
Also running into this same issue. We were looking to upgrade to Cypress 4.0.2, but cannot. Works fine on 3.4.1 |
Running into a similar issue on 4.0.2. Wasn't seeing the issue on earlier versions. |
We are running into the same issue on Gitlab CI
|
Here's our workaround for Cypress
(might be a different command for you because we use angular, just append
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
on('before:browser:launch', (browser = {}, launchOptions) => {
// `args` is an array of all the arguments that will
// be passed to browsers when it launches
if (browser.family === 'chromium' && browser.name !== 'electron') {
// see: https://github.com/cypress-io/cypress/issues/3633
launchOptions.args.push('--disable-dev-shm-usage');
// whatever you return here becomes the launchOptions
return launchOptions;
}
});
};
So we could use chrome 80 (not sure if chrome 80 is necessary but doesn't hurt) After that our CI passed without issues, hope this helps any other poor souls running into this :) |
@JoniVR re point 3, you've change the docker image. What do you install cypress with? As the image you use doesn't include the runner itself. (Unless I'm mistaken.) |
@leads We run the Although I'm pretty sure you'll be able to find base images that have cypress included with chrome 80+ by now, I just said v80+ because I wasn't sure if that specific argument was supported before v80. |
Thanks @JoniVR for such a quick response. Ours is all done via a docker file which uses I'll have a play with your solution. |
With Cypress 10.7.0 I have observed a similar behaviour. I didn't check whether the output report exists. But when a test fails with "Chromium Renderer process just crashed" it will not be reported to sorry-cypress (and probably also not Cypress dashboard). Luckily the build job in GitLab will fail but the test itself in sorry-cypress will remain in the state "Running" and will turn into "timed out" or something else later on. Also these test failures are not retried (see #349) Anybody who is using sorry-cypress with cypress-cloud could probably also profit from this feature request currents-dev/cypress-cloud#121 but ideally it would be solved in Cypress itself. |
This issue is for a very old version of Cypress. I am going to close it. If anyone has a reproducible example on a later version of Cypress please comment back here or open a new issue and we will be happy to investigate. |
Current behavior:
If cypress crashes due to "We detected that the Chromium Renderer process just crashed.", it does not produce a mocha report:
^^ (Note no mocha report is generted)
Desired behavior:
The mocha report is also outputted/saved, this is so that (for us) the mocha-awesome report can be generated and uploaded via our CI.
Steps to reproduce: (app code and test code)
Make the chrome renderer crash.
Versions
Latest cypress, we are running on CI/CD (AWS CodeBuild) - all other tests are fine, it's this one that randomly crashes. (Thats another issue).
If this is an issue with the reporter - please let me know and I'll raise an issue there.
Thanks :)
The text was updated successfully, but these errors were encountered: