-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
fix(rewriter): make workers self-exit to avoid SIGABRTs #7572
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
|
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 |
LGTM except I don't understand having message types implemented as flags. I'd have exclusive message types via an enum or string union instead, i.e. |
agreed @thlorenz, it's a good point to refactor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar feedback to @thlorenz. I think we can merge this, but can we play a refactor story soon? Next sprint or during any downtime?
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
User facing changelog
experimentalSourceRewriting
where Cypress could exit with a SIGABRT instead of exiting normally.Additional details
process.exit
withworker_threads
active electron/electron#23366worker.terminate
from the main thread, which was the original workaround: Remove regex-based JS/HTML rewriting, switch to AST-based rewriting #7297 (comment)How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?