-
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
Flakiness connecting to Chrome in github actions #29860
Comments
A different comment suggested that using the |
We're experiencing the same issue. At first we were running e2e against
|
Thanks for your repo and tests! There is a bug hiding in there somewhere! It's good that you also tried out the Cypress Docker image and were able to reproduce. That means the bug is independent of Linux variant (Ubuntu 22.04 / Debian 12.6) and independent of Node.js version (v18.x / v20.x). |
As a data point it's been relatively stable for us now that we're only using @airhorns were you running multiple browsers or just Could it be a race condition related to the cache? 🤔 |
No multi-browser stuff, just using |
Hmm, so maybe a caching issue... |
I'm not sure its a caching issue -- the browser discovery seems to have no problem at all finding the browsers in both the working and failing case. The only thing that stands out in the logs as strange to me is this:
which suggests chrome is struggling to check that file. Maybe the flakiness is introduced by certain underlying hardware running the GHA docker container, where some CPU platforms work and some don't? This chrome bug tracker thread has some details: https://issues.chromium.org/issues/40189632 |
Current behavior
Most of the time, cypress is able to boot a Chrome within a GitHub Actions runner and run tests. However sometimes, the run fails to boot Chrome and errors. This can happen with the exact same code running the exact same github actions yaml -- I just have to retry a few times to create this failure.
A failure looks like this:
Desired behavior
Cypress should always boot chrome, or if it can't for some reason, indicate why.
Test code to reproduce
I can't find what causes this to reliably reproduce -- it is very flakey. But I was able to capture an instance where it failed with
DEBUG=cypress:*
. See that log for this OSS project here: https://github.com/gadget-inc/js-clients/actions/runs/9941229702/job/27473079273Cypress Version
13.13.0
Node version
v18.19.1
Operating System
Ubuntu 22.04 within Github Actions
Debug Logs
Debug logs from run linked above: https://gist.github.com/airhorns/70757c597cd0f7fb540e06600a8fb4bc
Other
For the exact same project on the exact same config, there was no flakiness when starting Electron, but now there is starting chrome.
The text was updated successfully, but these errors were encountered: