-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Preserve ray/serve/generated when creating softlink for serve package #48793
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Mimi Liao <mimiliao2000@gmail.com>
python/ray/setup-dev.py
Outdated
if package == "serve": | ||
# Copy generated folder to a temp dir | ||
generated_folder = os.path.join(package_home, "generated") | ||
temp_dir = "/tmp/ray/" |
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.
temp_dir = "/tmp/ray/" | |
temp_dir = "/tmp/ray/_serve/" |
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.
To avoid collisions with other libs
python/ray/setup-dev.py
Outdated
subprocess.check_call(sudo + ["rm", "-rf", package_home]) | ||
subprocess.check_call(sudo + ["ln", "-s", local_home, package_home]) | ||
|
||
# Move generated folder to local_home | ||
if package == "serve": | ||
tmp_generated_folder = "/tmp/ray/generated" |
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.
Let's reuse var from previous conditional
Signed-off-by: Mimi Liao <mimiliao2000@gmail.com>
Why are these changes needed?
This PR modifies the
setup-dev.py
script to preserveray/serve/generated
folder during the symlink creation process. Specifically:Related issue number
Closes #48792
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.