-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 spawn calls for node LTS versions #13614
Conversation
c66fe2c
to
f0ce4c6
Compare
@msujew I guess this one's not ready for review with the PR checks failing? |
@tsmaeder Nope, there seem to be some pretty major changes in node-pty (on Unix, it still works as expected on Windows) in more current versions related to the error behavior. I.e. spawning a process on a non-existing file doesn't throw anymore but instead just prints to the console and exits with exit code |
@tsmaeder No idea what Microsoft has done there (note that I'm exclusively working on fixing breaking changes due to the updated version of node-pty), I can't even reproduce the error the CI gets on Windows, since the process just freezes. I've tried fixing this for the past 4 hours, I'm done for the week :) |
@planger Can I ask you to take a look at the playwright test errors (or can we just merge independent of these errors)? I'm not too deep in there and it would be good to have this fix for tomorrows release. |
@tsmaeder I found an earlier version of |
@msujew Sure, I'm just quite busy the next few days. So I suggest to just skip the failing tests for now and please create an issue for re-enabling them with a fix. I'm happy to look into it next week. Thank you very much! |
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.
Did you find a description of the fix that explains what adding "shell: true" is the right workaund? I haven't been able to find a description of what nodejs actually changed.
Not really. The changelog just states that they fixed an issue when not using |
I think this one is a good description: nodejs/node#52681 (comment). I guess always using "shell: true" won't hurt, usually. As for when we construct the process execution ourselves, we could differentiate between scrips and executables. |
@planger False alarm. It wasn't a false positive, but I actually broke terminals for Unix. I've fixed it again and the tests are green now, so no need for action on your side :) |
@msujew Oh, ok great that you've fixed it and that the tests actually helped revealing a real issue 💯 Thank you! |
What it does
Closes #13613
node-pty
to0.11.0-beta24
, as our currently used version uses aspawn
call that leads to errors on current LTS versions of nodechild_process#spawn
calls to use the{ shell: true }
options. This circumvents the changes for the LTS versions.How to test
Confirm that the CI is green on Windows
Otherwise, perform a manual smoke test on Windows with focus on the terminal functionality.
Follow-ups
Review checklist
Reminder for reviewers