cypress: Tests in GitHub Action hangs from version 13.3.2 onwards
Current behavior
Our GitHub Action that runs the tests seems to hang indefinitely (2 hours+) from version 13.3.2 onwards (tested as well in 13.5.0 and 13.6.0), without logging anything after a certain test name. This problem doesn’t occur in versions 13.3.1 and below (tested as well in 13.0.0) where the finishes in a few minutes. The hang doesn’t occur when the test that seemingly hangs is run in isolation or locally using Act, only in a GitHub Action. Disabling the test that hangs simply causes another test to hang, indicating the issue isn’t specific to any one test.
Desired behavior
Finish the tests without hanging.
Test code to reproduce
Due to the factors described in the Current Behavior section, creating a simple reproduction scenario for this problem is challenging.
Cypress Version
13.3.2
Node version
16.16.0
Operating System
Ubuntu 22.04/GitHub Action
Debug Logs
Wed, 29 Nov 2023 10:35:54 GMT
(Results)
Wed, 29 Nov 2023 10:35:54 GMT
Wed, 29 Nov 2023 10:35:54 GMT
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
Wed, 29 Nov 2023 10:35:54 GMT
│ Tests: 1 │
Wed, 29 Nov 2023 10:35:54 GMT
│ Passing: 1 │
Wed, 29 Nov 2023 10:35:54 GMT
│ Failing: 0 │
Wed, 29 Nov 2023 10:35:54 GMT
│ Pending: 0 │
Wed, 29 Nov 2023 10:35:54 GMT
│ Skipped: 0 │
Wed, 29 Nov 2023 10:35:54 GMT
│ Screenshots: 0 │
Wed, 29 Nov 2023 10:35:54 GMT
│ Video: false │
Wed, 29 Nov 2023 10:35:54 GMT
│ Duration: 3 seconds │
Wed, 29 Nov 2023 10:35:54 GMT
│ Spec Ran: home-content-rows.spec.ts │
Wed, 29 Nov 2023 10:35:54 GMT
└────────────────────────────────────────────────────────────────────────────────────────────────┘
Wed, 29 Nov 2023 10:35:54 GMT
Wed, 29 Nov 2023 10:35:54 GMT
Wed, 29 Nov 2023 10:35:54 GMT
────────────────────────────────────────────────────────────────────────────────────────────────────
Wed, 29 Nov 2023 10:35:54 GMT
Wed, 29 Nov 2023 10:35:54 GMT
Running: home-links.spec.ts (4 of 11)
Wed, 29 Nov 2023 10:35:54 GMT
Wed, 29 Nov 2023 10:35:54 GMT
Your project has set the configuration option: `chromeWebSecurity` to `false`.
Wed, 29 Nov 2023 10:35:54 GMT
Wed, 29 Nov 2023 10:35:54 GMT
This option will not have an effect in Firefox. Tests that rely on web security being disabled will not run as expected.
Wed, 29 Nov 2023 12:50:45 GMT
Error: The operation was canceled.
Other
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (5 by maintainers)
In the meantime, I’m trying to build a reproduction scenario, adding parts step by step but it takes some time because of the time it takes to run the GitHub Action every time.