Skip to content

Conversation

elliot-barn
Copy link
Contributor

Including config_name in depsets
Remove build_arg_sets from config class

Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
@elliot-barn elliot-barn requested a review from aslonnie October 8, 2025 23:34
cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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.

@ray-gardener ray-gardener bot added core Issues that should be addressed in Ray Core devprod labels Oct 9, 2025
Comment on lines 105 to 106
config_name = os.path.basename(config_path)
config = Config.from_dict(data, config_name)
Copy link
Collaborator

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":
Copy link
Collaborator

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?

Copy link
Contributor Author

@elliot-barn elliot-barn Oct 10, 2025

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

elliot-barn and others added 3 commits October 9, 2025 17:40
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>
Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
… of github.com:ray-project/ray into elliot-barn/raydepsets-including-config-name-in-depset
@elliot-barn elliot-barn requested a review from aslonnie October 10, 2025 00:43
@aslonnie aslonnie enabled auto-merge (squash) October 10, 2025 03:53
@github-actions github-actions bot disabled auto-merge October 10, 2025 03:54
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core devprod go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants