Skip to content

Commit

Permalink
Add timeout to CI tests to prevent indefinite hangs (#974)
Browse files Browse the repository at this point in the history
Authors:
  - Peter Andreas Entschev (https://github.com/pentschev)

Approvers:
  - Ray Douglass (https://github.com/raydouglass)

URL: #974
  • Loading branch information
pentschev authored Jul 25, 2023
1 parent c0e4bc1 commit 1e3db32
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 1e3db32

Please sign in to comment.