Skip to content

Conversation

@jjyao
Copy link
Collaborator

@jjyao jjyao commented Nov 18, 2025

Description

add_command_alias deepcopy the Command object but it's no longer deep-copyable: pallets/click#3065 (comment). We can remove it completely since it just creates some command aliases that have been deprecated for 5+ years.

Related issues

Closes #56747

Signed-off-by: Jiajun Yao <[email protected]>
@jjyao jjyao requested a review from a team as a code owner November 18, 2025 00:04
Signed-off-by: Jiajun Yao <[email protected]>
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 removes the add_command_alias function to address a deepcopy issue with newer versions of the click library. While this correctly removes several deprecated aliases, it also has the side effect of making some hidden commands (rsync_down, rsync_up, get_head_ip) visible in the CLI. My review provides suggestions to keep these commands hidden without using the problematic function, thus preserving the intended CLI interface.

@ray-gardener ray-gardener bot added the core Issues that should be addressed in Ray Core label Nov 18, 2025
@jjyao jjyao added the go add ONLY when ready to merge, run all tests label Nov 18, 2025
Signed-off-by: Jiajun Yao <[email protected]>
Signed-off-by: Jiajun Yao <[email protected]>
@edoakes edoakes merged commit 2bcec09 into ray-project:master Nov 18, 2025
6 checks passed
@jjyao jjyao deleted the jjyao/click branch November 18, 2025 15:54
400Ping pushed a commit to 400Ping/ray that referenced this pull request Nov 18, 2025
`add_command_alias` deepcopy the `Command` object but it's no longer
deep-copyable:
pallets/click#3065 (comment). We
can remove it completely since it just creates some command aliases that
have been deprecated for 5+ years.

Closes ray-project#56747

---------

Signed-off-by: Jiajun Yao <[email protected]>
Aydin-ab pushed a commit to Aydin-ab/ray-aydin that referenced this pull request Nov 19, 2025
`add_command_alias` deepcopy the `Command` object but it's no longer
deep-copyable:
pallets/click#3065 (comment). We
can remove it completely since it just creates some command aliases that
have been deprecated for 5+ years.

Closes ray-project#56747

---------

Signed-off-by: Jiajun Yao <[email protected]>
Signed-off-by: Aydin Abiar <[email protected]>
ykdojo pushed a commit to ykdojo/ray that referenced this pull request Nov 27, 2025
`add_command_alias` deepcopy the `Command` object but it's no longer
deep-copyable:
pallets/click#3065 (comment). We
can remove it completely since it just creates some command aliases that
have been deprecated for 5+ years.

Closes ray-project#56747

---------

Signed-off-by: Jiajun Yao <[email protected]>
Signed-off-by: YK <[email protected]>
SheldonTsen pushed a commit to SheldonTsen/ray that referenced this pull request Dec 1, 2025
`add_command_alias` deepcopy the `Command` object but it's no longer
deep-copyable:
pallets/click#3065 (comment). We
can remove it completely since it just creates some command aliases that
have been deprecated for 5+ years.

Closes ray-project#56747

---------

Signed-off-by: Jiajun Yao <[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 go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] click package 8.3.0 is broken with ray

3 participants