question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress hung up trying to run a spec - won't resolve

See original GitHub issue

Current behavior

Can’t reproduce this locally - but intermittently when running specs via circleci (so far 50% of the time) - one of the specs (never the same one), spins causing circleci to timeout. When I look at the run in the Cypress dashboard it shows all the rest of the specs have passed except for that one and it’s just constantly saying it is running - but shows no test results. https://dashboard.cypress.io/projects/zb7814/runs/1686/overview is an example. When I rerun the tests they all pass again so it looks like there’s an issue with the cypress runner. This just started happening when we upgraded to 8 - specifically 8.2

The error from circleci is:

ERR_TIMED_OUT (-7) loading '<specUrl>'
Error: ERR_TIMED_OUT (-7) loading '<specUrl>
    at rejectAndCleanup (electron/js2c/browser_init.js:217:1457)
    at Object.failListener (electron/js2c/browser_init.js:217:1670)
    at Object.emit (events.js:315:20)

After saying it was still running for several hours on the Cypress dashboard - it finally stopped and showed this error message: "The run started, but never completed. This can happen when the run is canceled from CI or when Cypress crashes during running tests.

Check your CircleCI #557d91f7-1bed-4c21-9f3c-9a4850bc64ad logs for more information. Archive this run to remove it from the runs list and analytics."

Desired behavior

Cypress not to get hung up

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

8.2.0

Other

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:37
  • Comments:89 (20 by maintainers)

github_iconTop GitHub Comments

13reactions
rebel-lcommented, Oct 12, 2021

Have the same issue on 8.6.0. video: false doesn’t help

Have someone resolved the issue?

Nope, everyone is doing a workaround. Most of the people go back to latest 7.x version. As we switched from 6.x to 8.5.0 currently and spend a lot effort to get there, we decided to turn off video captuirng as soon as it is fixed. It’s a very bad solution as we need a second run with only failed test and video capturing on and pray that this is fast enough that it don’t break.

I hope the people from Cypress will give that more priority soon. Again: I can offer my help to run a development version on our setup and share logs afterwards.

9reactions
diggabytecommented, Dec 22, 2021

Experiencing this issue in v8.5.0 / both Electron & Chrome within gitlab pipelines (docker-in-docker).

FYI: Upgraded to Cypress 9.2.0, still same issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Cypress Documentation
Open Cypress via cypress open · Go to Developer Tools -> View App Data · This will take you to the directory in...
Read more >
@cypress/github-action - npm
Using Docker image; Specify environment variables; Run only some spec files; Test project in subfolder; Record results on Cypress Cloud ...
Read more >
cypress-io/cypress - Gitter
I have problem with running Cypress tests on Azure DevOps CI using latest cypress ... on version 3.4.0, however now test run hangs...
Read more >
Continuous Integration with Cypress - YouTube
Link to slides: https:// cypress.slides.com/ cypress -io/ cypress - on -ci#/At Cypress, we believe running end-to-end tests on CI should be part of ......
Read more >
Running Cypress tests in parallel in GitHub Actions without ...
Making Cypress run in parallel can speed up your build times and help you have more confidence your app works correctly.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found