-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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: correct bad propagation of exit signals #7755
Conversation
Thanks for taking the time to open a PR!
|
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 |
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.
This appears to only change when we fork the process based on the usage of NODE_OPTIONS
which to me does not seem to reflect the reason this issue was opened (it mentions the use of global mode).
How would changing the util/node_options
affect global mode?
@brian-mann |
Other situations where the binary is launched directly (scripts, our own e2e tests...) will also benefit from this fix, which is why the changelog mentions "certain conditions" and not "global mode" explicitly. |
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.
Since this is fixing a userland bug, it needs tests. you can unit test this specific function if you'd like if its too difficult to recreate its usage in the real world.
we have some existing test patterns for testing cp.spawn
methods you could look for in the CLI, etc.
on('exit')
to propagate exits + fix buggy usages #7722User facing changelog
Additional details
on('exit')
to propagate exits + fix buggy usages #7722How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?