-
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
Detect and cleanly exit from renderer crashes #6189
Conversation
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
PR Review ChecklistIf any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'. User Experience
Functionality
Maintainability
Quality
Internal
|
f01c582
to
e22ab18
Compare
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
since we are going to implement proper browser crash detection later, let's use the socket disconnection as the only signal for now
User facing changelog
Additional details
cy.visit
ing, and the socket disconnects, and there is not a new runner connection within 5 seconds, the browser tab crashedcy.visit
ing, the socket disconnects, and it does not reconnect within 10 seconds (generous)this makes the code a lot more complex, maybe the rules should just be "if the runner disconnects, and it does not reconnect within 10 seconds, the browser tab crashed" - don't try to be smart about itMost of the meat of the error has been moved to the docs. Docs PR: cypress-io/cypress-documentation#2413
User Experience Changes
BROWSER_CRASHED
error message in stdout if the browser crashes in open modePR Tasks
cypress-documentation
? Update error docs around renderer crashes cypress-documentation#2413