-
Notifications
You must be signed in to change notification settings - Fork 6.9k
[deps] raydepsets import all config (1/3) #57581
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
base: master
Are you sure you want to change the base?
[deps] raydepsets import all config (1/3) #57581
Conversation
Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
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.
Code Review
This pull request is a good step in refactoring the dependency set management. The changes to include config_name
in Depset
and remove build_arg_sets
from the Config
class are logical and well-implemented. I've found one area for improvement in the test code for better efficiency and readability. Overall, the changes are clean and the tests are updated accordingly.
ci/raydepsets/workspace.py
Outdated
config_name = os.path.basename(config_path) | ||
config = Config.from_dict(data, config_name) |
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.
nit: could you move these two lines out of the with
block (by deindenting it), so that the file can be closed earlier?
|
||
@classmethod | ||
def from_dict(cls, data: dict) -> "Config": | ||
def from_dict(cls, data: dict, config_name: str) -> "Config": |
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.
could you explain to me again why build_arg_sets
are removed 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.
its not necessary once the depsets have been expanded per build arg set
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Elliot Barnwell <elliot.barnwell@anyscale.com>
… of github.com:ray-project/ray into elliot-barn/raydepsets-including-config-name-in-depset
Including config_name in depsets
Remove build_arg_sets from config class