Skip to content
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 can hang when recording to the cloud when CDP disconnects in the middle of a test #29209

Closed
ryanthemanuel opened this issue Mar 27, 2024 · 1 comment · Fixed by #29210
Assignees

Comments

@ryanthemanuel
Copy link
Collaborator

ryanthemanuel commented Mar 27, 2024

Current behavior

Cypress will hang when recording to the cloud when CDP disconnects in the middle of a test. Telltale signs of this hang include the following logs:

2024-03-27T17:14:26.755Z cypress:server:browsers:cri-client disconnected, starting retries to reconnect... { closed: false, target: 'AE093B9D3EFBCBFFB816B0D2934E705F' }
2024-03-27T17:14:26.755Z cypress:server:browsers:cri-client disconnected, attempting to reconnect... { retryIndex: 1, closed: false, target: 'AE093B9D3EFBCBFFB816B0D2934E705F' }
2024-03-27T17:15:15.738Z cypress:protocol:capture:DOMManager waitForAfterTest

And then nothing else printed out from cypress:protocol:capture

Desired behavior

Cypress should not hang

Test code to reproduce

There's not really a clear cut way to reproduce this, but I can reproduce this by messing with the Cypress code to disconnect the CDP websocket randomly during a test.

Cypress Version

latest

Node version

any

Operating System

any

Debug Logs

No response

Other

No response

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Apr 2, 2024

Released in 13.7.2.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.7.2, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Apr 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant