Skip to content
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

[ci] Disable flaky Java RPC tests #13170

Merged
merged 1 commit into from
Oct 21, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 20 additions & 15 deletions tests/scripts/task_java_unittest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,23 @@ CURR_DIR=$(cd `dirname $0`; pwd)
SCRIPT_DIR=$CURR_DIR/../../jvm/core/src/test/scripts
TEMP_DIR=$(mktemp -d)

python3 $SCRIPT_DIR/test_add_cpu.py $TEMP_DIR
python3 $SCRIPT_DIR/test_add_gpu.py $TEMP_DIR
python3 $SCRIPT_DIR/test_graph_executor.py $TEMP_DIR

# start rpc proxy server
PORT=$(( ( RANDOM % 1000 ) + 9000 ))
python3 $SCRIPT_DIR/test_rpc_proxy_server.py $PORT 30 &

make jvmpkg
make jvmpkg JVM_TEST_ARGS="-DskipTests=false \
-Dtest.tempdir=$TEMP_DIR \
-Dtest.rpc.proxy.host=localhost \
-Dtest.rpc.proxy.port=$PORT"

rm -rf $TEMP_DIR
cleanup()
{
rm -rf "$TEMP_DIR"
}
trap cleanup 0

python3 "$SCRIPT_DIR"/test_add_cpu.py "$TEMP_DIR"
python3 "$SCRIPT_DIR"/test_add_gpu.py "$TEMP_DIR"
python3 "$SCRIPT_DIR"/test_graph_executor.py "$TEMP_DIR"

# Skip the Java RPC Unittests, see https://github.com/apache/tvm/issues/13168
# # start rpc proxy server
# PORT=$(( ( RANDOM % 1000 ) + 9000 ))
# python3 $SCRIPT_DIR/test_rpc_proxy_server.py $PORT 30 &

# make jvmpkg
# make jvmpkg JVM_TEST_ARGS="-DskipTests=false \
# -Dtest.tempdir=$TEMP_DIR \
# -Dtest.rpc.proxy.host=localhost \
# -Dtest.rpc.proxy.port=$PORT"