-
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
Chromium Renderer process crashes on every Jenkins run #7200
Comments
Can you try to |
Thanks for the response Jennifer. I have implemented a portion of the solution mentioned in the |
I'm still getting the same error as before after adding the command mentioned.
I have added this in the module.exports = (on, config) => {
on('before:browser:launch', (browser = {}, launchOptions) => {
if (browser.family === 'chromium' && browser.name !== 'electron') {
launchOptions.args.push('--disable-dev-shm-usage')
}
return launchOptions
})
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
} If I change the browser to Chrome in the cypress run command to Then I am able to see that the above error is not happening and the tests are run in the Jenkins pipeline. |
Worked for me. I guess this one can be closed? |
Closing as resolved. If you're experiencing a bug similar to this in Cypress, please open a new issue with a fully reproducible example that we can run. There may be a specific edge case with the issue that we need more detail to fix. |
Current behavior:
Running Cypress Tests on local Jenkins installation is failing, and the Chromium render process crashes with this following error-
All the tests are passing as expected on local machine.
Desired behavior:
Tests should run without any issue, and
mochawesome
report generatedTest code to reproduce
To reproduce this steps, use the
Jenkinsfile
from this repo -Git RepoClone repository
run
npm i
from project root.cd
client
and then do anpm i
Run
npm start
to start server.Run
npm test:ci
for all testsVersions
Cypress Version -
4.4.0
Additional Information
Jenkins installation has been done through docker with the steps mentioned in this file from the Kitchen Sink CI link
Command to install Jenkins. -
docker run --ipc=host --shm-size=512M -u root -d --name blue-ocean -p 8080:8080 -v jenkins-data:/var/jenkins_home -v npm-cache:/root/.npm -v cypress-cache:/root/.cache -v /var/run/docker.sock:/var/run/docker.sock jenkinsci/blueocean:latest
I have added
--ipc=host
as mentioned By Brian in this issue here and changed the--shm-size
as mentioned in the same issue hereI have also changed the base cypress image to
cypress/browsers:node12.13.0-chrome80-ff74
and the added the solution mentioned here to disable shm usage. But none of them work.Log
The terminal output from the failed run is given here in this gist - https://gist.github.com/zac11/f899c8e95c095c606b2c12db4c952d0e
The text was updated successfully, but these errors were encountered: