-
Notifications
You must be signed in to change notification settings - Fork 25
Enable java cluster test in CI. #68
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
Conversation
| pkill -9 redis | ||
| pkill -9 raylet | ||
| ps aux | grep ray | awk '{system("kill "$2);}' | ||
| rm /tmp/raylet* |
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.
why remove this?
java/test_cluster.sh
Outdated
| if [ "$1" == "raylet" ]; then | ||
| sed -i 's/^use_raylet.*$/use_raylet = true/g' ray.config.ini | ||
| else | ||
| sed -i 's/^use_raylet.*$/use_raylet = false/g' ray.config.ini |
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.
I'm not sure if it's a real problem. But I'd prefer not editing the file in place, because it makes the git state dirty.
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.
If this way is not great, I will try distinguishing raylet or non raylet mode byOVERWRITE.
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.
using overwrite is fine, or you can create a temp config file
java/test_cluster.sh
Outdated
| fi | ||
|
|
||
| sh cleanup.sh | ||
| rm -rf local_deploy |
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.
what will be stored in local_deploy? maybe move it to /tmp/local_deploy?
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.
Does CURR_WORK_DIR be not suitable?
@zhijunfu What do you think?
|
|
| import org.ray.core.RayRuntime; | ||
|
|
||
| /** | ||
| * HelloWorld example for tests, like test cluster. |
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.
test cluster -> test_cluster.sh
| [[ ${start_process_log} =~ "Started Ray head node" ]] || exit 1 | ||
| echo "Check[$1]: Ray all processes started." | ||
|
|
||
| execution_log=$(cat "./local_deploy/ray/run/org.ray.api.example.HelloExample/0.out.txt") |
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.
my PR changed the logging path to /tmp/raylogs, you should rebase and change this accordingly.
|
Considering that we are going to get rid of |
What do these changes do?
Related issue number
N/A