Skip to content

Commit

Permalink
[ci] Disable flaky Java RPC tests
Browse files Browse the repository at this point in the history
See #13168
  • Loading branch information
driazati committed Oct 21, 2022
1 parent 100c050 commit 5edee04
Showing 1 changed file with 20 additions and 15 deletions.
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"

0 comments on commit 5edee04

Please sign in to comment.