Skip to content

Commit

Permalink
Add timeout to CI tests to prevent indefinite hangs
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Jul 25, 2023
1 parent 869c3f6 commit 97481b0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ci/test_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,16 @@ run_tests() {

# Test with TCP/Sockets
rapids-logger "TEST WITH TCP ONLY"
pytest --cache-clear -vs tests/
pytest --cache-clear -vs ucp/_libs/tests
timeout 10m pytest --cache-clear -vs tests/
timeout 2m pytest --cache-clear -vs ucp/_libs/tests

rapids-logger "Run local benchmark"
# cd to root directory to prevent repo's `ucp` directory from being used
# in subsequent commands
pushd /
python -m ucp.benchmarks.send_recv -o cupy --server-dev 0 --client-dev 0 --reuse-alloc --backend ucp-async
python -m ucp.benchmarks.send_recv -o cupy --server-dev 0 --client-dev 0 --reuse-alloc --backend ucp-core
python -m ucp.benchmarks.cudf_merge --chunks-per-dev 4 --chunk-size 10000 --rmm-init-pool-size 2097152
timeout 1m python -m ucp.benchmarks.send_recv -o cupy --server-dev 0 --client-dev 0 --reuse-alloc --backend ucp-async
timeout 1m python -m ucp.benchmarks.send_recv -o cupy --server-dev 0 --client-dev 0 --reuse-alloc --backend ucp-core
timeout 1m python -m ucp.benchmarks.cudf_merge --chunks-per-dev 4 --chunk-size 10000 --rmm-init-pool-size 2097152
popd
}

Expand Down

0 comments on commit 97481b0

Please sign in to comment.