-
Notifications
You must be signed in to change notification settings - Fork 710
Cleanup around subprocess helpers #7995
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
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
- Set enable_process_jobs on a variant of System.Process.proc instead of just for System.Process.createProcess - In Distribution.Simple.Utils, only use this proc instance. - Replace use of printRawCommand* by a unified helper logCommand, and use this more consistently. The output format is changed slightly. - New helpers rawSystemProc{,Action} for use with new proc Aside from the logging changes, this should be a no-op.
dfc0913
to
cc8a7af
Compare
cc8a7af
to
91fa33b
Compare
Alright, fingers crossed this should be ready for review now. The commits are also in a reasonable state now. |
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.
Uhm, lots of removals, great. I assume this is exercised by many tests and it doesn't add any new functionality, so nothing new needs to be tested.
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.
lgtm, thanks for the cleanup
CI jobs are stuck due to #8000 not merged yet, so let me merge manually. BTW. I forgot to rebase this one and caused git commit diagram art. Sorry about that. |
This is intended to be a mostly-no-op change to provide a basis for a clean take of #7921. The guiding principle was to reduce the number of
createProcess
calls and collect them inDistribution.Simple.Utils
.Functional changes should be limited to:
delegate_ctlc
andenable_process_jobs
)One of the last commits removes some obsolete functions that I'd previously deprecated. I'm a bit unsure if we need to deprecate these mostly-internal functions.
All those
rawSystem
helpers still feel a bit messy and I'm sure there's more that could be done, but I think this should already be a step forward, and will allow switching to some kind of bracketedwithProcess
in the context of #7921 much easier, and hence easier to review.Please include the following checklist in your PR:
Please also shortly describe how you tested your change. Bonus points for added tests!