-
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 does not connect to browser and does not even attempt to retry to connect, hangs up forever in CI #27446
Comments
Hi @danyg , I have seen similar behavior before when there are multiple instances of Cypress running at the same time. Can you share the what the command |
@nagash77 as reported in the debug output, Yes, the behaviour can be reproduced when debugging.
Do you think something will change by running it outside of npm, is not a custom command, is in fact a npm script shouldn't add noise. The error is erratic only happens sometimes. But lately, a big percentage of our builds are affected by this, and we are forced to manually restart them, which messes up our delivery process. It cannot be a problem of multiple instances of cypress as this is run inside a docker as part of our CI (Continous Integration, pipelines) and is the only process and task running in the environment (as is inside a docker) |
Just if this helps others or with the investigation, the issue seems to be related with electron. I would argue that Cypress should try to retry or have some sort of watchdog that forces a retry 🤷 |
@danyg Thanks! Switching from |
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. |
This issue has been closed due to inactivity. |
I saw this issue in Azure Pipelines as well, and changing the browser it runs in to |
Current behavior
Sometimes (every time more often) Cypress gets stuck starting in CI
It fails to connect to the browser (Electron v106) and it doesn't even seems to retry
this gets stuck until CI times out after 1hs
Desired behavior
Cypress should just run or at lest make an attempt to retry to re-run the browser
Test code to reproduce
When enabling debug this is what I see
DEBUG=cypress:launcher*,cypress:server:browsers* npm run cy:run-ct:ci
Package.json
cy:run-ct:ci
=>cypress run --component --browser=electron
relevant ENV PROPS:
NODE_OPTIONS: --max_old_space_size=4096
CI= TRUE
DEBUG=cypress:launcher*,cypress:server:browsers*
Cypress Version
12.13.0
Node version
18.12.0
Operating System
Linux in Docker using image: cypress/browsers:node18.12.0-chrome107
Debug Logs
Added in step to reproduce
Other
No response
The text was updated successfully, but these errors were encountered: