Skip to content

Commit

Permalink
revert changes to test_wheel.sh, use pytest binary in run_pytests.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Feb 7, 2024
1 parent 15b96ae commit 348b391
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
11 changes: 5 additions & 6 deletions ci/run_pytests.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/bin/bash
# Copyright (c) 2024, NVIDIA CORPORATION.

set -euo pipefail

# Test with TCP/Sockets
# Support invoking run_pytests.sh outside the script directory
cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../tests/
timeout 10m python -m pytest --cache-clear -vs "$@" .
cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../

# Support invoking run_pytests.sh outside the script directory
cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/../ucp/
timeout 2m python -m pytest --cache-clear -vs "$@" ./_libs/tests
# Test with TCP/Sockets
timeout 10m pytest --cache-clear -vs "$@" tests
timeout 2m pytest --cache-clear -vs "$@" ucp/_libs/tests
7 changes: 5 additions & 2 deletions ci/test_python.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash
# Copyright (c) 2024, NVIDIA CORPORATION.

set -euo pipefail

# Support invoking test_python.sh outside the script directory
"$(dirname "$(realpath "${BASH_SOURCE[0]}")")"

rapids-logger "Create test conda environment"
. /opt/conda/etc/profile.d/conda.sh

Expand Down Expand Up @@ -36,8 +40,7 @@ run_tests() {

# Test with TCP/Sockets
rapids-logger "TEST WITH TCP ONLY"
# Support invoking test_python.sh outside the script directory
"$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/run_pytests.sh
./run_pytests.sh

rapids-logger "Run local benchmark"
# cd to root directory to prevent repo's `ucp` directory from being used
Expand Down
6 changes: 4 additions & 2 deletions ci/test_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ RAPIDS_PY_WHEEL_NAME="ucx_py_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-fr
# echo to expand wildcard before adding `[extra]` requires for pip
python -m pip install $(echo ./dist/ucx_py*.whl)[test]

# Support invoking test_wheel.sh outside the script directory
"$(dirname "$(realpath "${BASH_SOURCE[0]}")")"/run_pytests.sh
cd tests
python -m pytest --cache-clear -vs .
cd ../ucp
python -m pytest --cache-clear -vs ./_libs/tests/

0 comments on commit 348b391

Please sign in to comment.