Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[runtime env] Async pip runtime env #22381
[runtime env] Async pip runtime env #22381
Changes from 6 commits
3f3108d
1d90c68
91ecd8e
90a1908
803a9f1
e13a503
13a6cf5
9311ac3
e5425c9
317584d
bab5d47
443eed7
9d91dc2
68d9830
538019f
9a5b7e6
ef5bf89
dae5801
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
"stderr" will be empty because we redirect it to stdout https://github.com/ray-project/ray/pull/22381/files#diff-3968b5fc7121d304a253988b1bed9fdd58c910dbae0eb33bc0405e2a9a1bfec3R346 ?
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 looks very similar to this part, maybe you can modify the implementation in conda_utils.py to avoid splitting the implementation
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.
Yes. But we can't assume that the stderr is always redirected to the stdout. The implementation of
SubprocessCalledProcessError
should cover the interface of the parentsubprocess.CalledProcessError
.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.
The
exec_cmd
andexec_cmd_stream_to_logger
in theconda_utils.py
are used by many runtime envs, not only by the conda. I thinks it's better to put the exec utils into theutils.py
instead ofconda_utils.py
.But, we are going to make all the runtime env async, so
exec_cmd
andexec_cmd_stream_to_logger
will be removed after they are not referenced.