mirror of
https://github.com/wassname/ray.git
synced 2026-07-07 01:56:47 +08:00
Remove outdated Java doc and run demo code in CI (#10698)
Resolve Conflicts:
java/tutorial/pom.xml
java/tutorial/pom_template.xml
This commit is contained in:
+12
-1
@@ -50,7 +50,7 @@ echo "Running tests under single-process mode."
|
||||
# bazel test //java:all_tests --jvmopt="-Dray.run-mode=SINGLE_PROCESS" --config=ci || single_exit_code=$?
|
||||
run_testng java -Dray.run-mode="SINGLE_PROCESS" -cp "$ROOT_DIR"/../bazel-bin/java/all_tests_deploy.jar "${TEST_ARGS[@]}" org.testng.TestNG -d /tmp/ray_java_test_output "$ROOT_DIR"/testng.xml
|
||||
|
||||
echo "Running connecting existing cluster tests"
|
||||
echo "Running connecting existing cluster tests."
|
||||
case "${OSTYPE}" in
|
||||
linux*) ip=$(hostname -I | awk '{print $1}');;
|
||||
darwin*) ip=$(ipconfig getifaddr en0);;
|
||||
@@ -60,8 +60,19 @@ RAY_BACKEND_LOG_LEVEL=debug ray start --head --port=6379 --redis-password=123456
|
||||
RAY_BACKEND_LOG_LEVEL=debug java -cp bazel-bin/java/all_tests_deploy.jar -Dray.address="$ip:6379"\
|
||||
-Dray.redis.password='123456' -Dray.job.code-search-path="$PWD/bazel-bin/java/all_tests_deploy.jar" io.ray.test.MultiDriverTest
|
||||
ray stop
|
||||
|
||||
echo "Running documentation demo code."
|
||||
docdemo_path="java/test/src/main/java/io/ray/docdemo/"
|
||||
for file in "$docdemo_path"*.java; do
|
||||
file=${file#"$docdemo_path"}
|
||||
class=${file%".java"}
|
||||
echo "Running $class"
|
||||
java -cp bazel-bin/java/all_tests_deploy.jar "io.ray.docdemo.$class"
|
||||
done
|
||||
|
||||
popd
|
||||
|
||||
|
||||
pushd "$ROOT_DIR"
|
||||
echo "Testing maven install."
|
||||
mvn -Dorg.slf4j.simpleLogger.defaultLogLevel=WARN clean install -DskipTests
|
||||
|
||||
Reference in New Issue
Block a user