Skip to content

Conversation

@elliot-barn
Copy link
Contributor

@elliot-barn elliot-barn commented Nov 21, 2025

removing flag from raydepsets: --index-url https://pypi.org/simple (included by default https://docs.astral.sh/uv/reference/cli/#uv-pip-compile--default-index)
adding flag to raydepsets: --no-header
updating unit tests

This will prevent updating all lock files updating when default or config level flags are updated

@elliot-barn elliot-barn requested a review from a team as a code owner November 21, 2025 02:31
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 updates the dependency generation script raydepsets by removing the hardcoded default --index-url and adding a --no-header flag to the uv command. This cleans up the generated lock files by removing the verbose autogeneration comment. While the changes are correct and achieve the stated goal, I have provided a suggestion on ci/raydepsets/cli.py to use a concise custom header instead of removing it entirely. This would improve long-term maintainability by retaining context about how the files are generated. The numerous changes to .lock files are the expected result of this configuration change.

from ci.raydepsets.workspace import Depset, Workspace

DEFAULT_UV_FLAGS = """
--no-header
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While --no-header cleans up the lock files, it also removes valuable context about how these files are generated. This can make future maintenance and debugging more difficult. Consider using the --header flag to add a concise, custom header, for example:

# Generated by ci/raydepsets. Do not edit manually.

This provides a pointer to the generation tool without the verbosity of the full command.

Suggested change
--no-header
--header "# Generated by ci/raydepsets. Do not edit manually."

Signed-off-by: elliot-barn <[email protected]>
@ray-gardener ray-gardener bot added core Issues that should be addressed in Ray Core devprod labels Nov 21, 2025
assert (
_override_uv_flags(
["--index-url https://dummyurl.com"],
["--index-strategy first-index"],
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Duplicate test logic after flag removal

The test_override_uv_flag_multiple_flags test is now identical to test_override_uv_flag_single_flag. Both tests override --index-strategy with the same value and perform identical assertions. The test named "multiple_flags" no longer tests multiple flags being overridden simultaneously, making it redundant and not testing what its name suggests.

Fix in Cursor Fix in Web

@aslonnie aslonnie enabled auto-merge (squash) November 22, 2025 00:56
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Nov 22, 2025
@aslonnie aslonnie merged commit e3c9673 into master Nov 22, 2025
8 checks passed
@aslonnie aslonnie deleted the elliot-barn/raydepsets-removing-headers branch November 22, 2025 02:37
ykdojo pushed a commit to ykdojo/ray that referenced this pull request Nov 27, 2025
…#58872)

removing flag from raydepsets: --index-url https://pypi.org/simple
(included by default
https://docs.astral.sh/uv/reference/cli/#uv-pip-compile--default-index)
adding flag to raydepsets: --no-header
updating unit tests

This will prevent updating all lock files updating when default or
config level flags are updated

---------

Signed-off-by: elliot-barn <[email protected]>
Signed-off-by: YK <[email protected]>
SheldonTsen pushed a commit to SheldonTsen/ray that referenced this pull request Dec 1, 2025
…#58872)

removing flag from raydepsets: --index-url https://pypi.org/simple
(included by default
https://docs.astral.sh/uv/reference/cli/#uv-pip-compile--default-index)
adding flag to raydepsets: --no-header
updating unit tests

This will prevent updating all lock files updating when default or
config level flags are updated

---------

Signed-off-by: elliot-barn <[email protected]>
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.

3 participants