-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat(util/exec): use spawn instead of exec #16414
feat(util/exec): use spawn instead of exec #16414
Conversation
Please dont mind the changes in |
Test run output using the driver function: Expand logs
Post Run ps
|
- Use child_process.spawn instead of child_process.exec
746affd
to
9e86048
Compare
This PR contains 1+2. above output includes all steps as a POC. |
- Use child_process.spawn instead of child_process.exec
- Use child_process.spawn instead of child_process.exec
- Use child_process.spawn instead of child_process.exec
- init spawn-util
- spawn-util
- init index-spawn.spec.ts
- fixed various tests
- fix all artifacts.spec.ts
- fix all artifacts.spec.ts
- fix npm post update imports
- revert renaming to minimize PR diff
- revert renaming to minimize PR diff
- revert renaming to minimize PR diff
- revert renaming to minimize PR diff
- revert renaming to minimize PR diff - destroy stdio when terminating child process
- delete and revert dev related changes
- fix support for windows
- handle SIGSTOP and such - add test coverage
This now behaves the same as before (using exec). works both on ubuntu and windows, the later must be run with ive added test coverage and tested this using a driver function but yet to run e2e tests. once these are done ill mark this as ready for review. |
- now converts to strings when resolving/rejecting
- logs improvements - force shell (exec like) - fix tests
241b2aa
to
3fa4f25
Compare
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.
Will provide a small refactor PR to simplify testing
# Conflicts: # lib/util/exec/index.spec.ts # test/exec-util.ts
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.
Looks much cleaner now 🎉
Can you please do some real runs again with latest changes? |
Sure |
That should be enough |
This docker command was used to run all tests -
Relevant logs
Relevant logs
Relevant logs
Relevant logs
Bug reproduction
Relevant logs
|
Relevant logs with the same Artifact error with branch main checked out
|
Classified as feature, so we get a single release. Hopefully we don't need to rollback this 🙃 |
would updating the branch dismiss approval? |
no if you are using the github button with merge commit . 🤗 |
🎉 This PR is included in version 32.124.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Changes
Use
child_process.spawn
instead ofchild_process.exec
while preserving function arguments (i.e, encoding & maxBuffer).Context
Related to #16197
Documentation (please check one with an [x])
How I've tested my work (please tick one)
I have verified these changes via: