Skip to content

Commit 9ab7567

Browse files
authored
[CI] Avoid the use of full trace with pytest. (#11318)
1 parent c6f5604 commit 9ab7567

File tree

2 files changed

+12
-15
lines changed

2 files changed

+12
-15
lines changed

ops/pipeline/test-python-wheel-impl.sh

+10-13
Original file line numberDiff line numberDiff line change
@@ -40,31 +40,28 @@ case "$suite" in
4040
gpu)
4141
echo "-- Run Python tests, using a single GPU"
4242
python -c 'from cupy.cuda import jitify; jitify._init_module()'
43-
pytest -v -s -rxXs --fulltrace --durations=0 -m 'not mgpu' tests/python-gpu
43+
pytest -v -s -rxXs --durations=0 -m 'not mgpu' tests/python-gpu
4444
;;
4545
mgpu)
4646
echo "-- Run Python tests, using multiple GPUs"
4747
python -c 'from cupy.cuda import jitify; jitify._init_module()'
4848
export NCCL_RAS_ENABLE=0
49-
pytest -v -s -rxXs --fulltrace --durations=0 -m 'mgpu' tests/python-gpu
50-
pytest -v -s -rxXs --fulltrace --durations=0 -m 'mgpu' \
51-
tests/test_distributed/test_gpu_with_dask
52-
pytest -v -s -rxXs --fulltrace --durations=0 -m 'mgpu' \
53-
tests/test_distributed/test_gpu_with_spark
54-
pytest -v -s -rxXs --fulltrace --durations=0 -m 'mgpu' \
55-
tests/test_distributed/test_gpu_federated
49+
pytest -v -s -rxXs --durations=0 -m 'mgpu' tests/python-gpu
50+
pytest -v -s -rxXs --durations=0 tests/test_distributed/test_gpu_with_dask
51+
pytest -v -s -rxXs --durations=0 tests/test_distributed/test_gpu_with_spark
52+
pytest -v -s -rxXs --durations=0 tests/test_distributed/test_gpu_federated
5653
;;
5754
cpu)
5855
echo "-- Run Python tests (CPU)"
5956
export RAY_OBJECT_STORE_ALLOW_SLOW_STORAGE=1
60-
pytest -v -s -rxXs --fulltrace --durations=0 tests/python
61-
pytest -v -s -rxXs --fulltrace --durations=0 tests/test_distributed/test_with_dask
62-
pytest -v -s -rxXs --fulltrace --durations=0 tests/test_distributed/test_with_spark
63-
pytest -v -s -rxXs --fulltrace --durations=0 tests/test_distributed/test_federated
57+
pytest -v -s -rxXs --durations=0 tests/python
58+
pytest -v -s -rxXs --durations=0 tests/test_distributed/test_with_dask
59+
pytest -v -s -rxXs --durations=0 tests/test_distributed/test_with_spark
60+
pytest -v -s -rxXs --durations=0 tests/test_distributed/test_federated
6461
;;
6562
cpu-arm64)
6663
echo "-- Run Python tests (CPU, ARM64)"
67-
pytest -v -s -rxXs --fulltrace --durations=0 \
64+
pytest -v -s -rxXs --durations=0 \
6865
tests/python/test_basic.py tests/python/test_basic_models.py \
6966
tests/python/test_model_compatibility.py
7067
;;

ops/pipeline/test-win64-gpu.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ python -m pip install `
1818
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }
1919

2020
Write-Host "--- Run Python tests"
21-
python -X faulthandler -m pytest -v -s -rxXs --fulltrace tests/python
21+
python -X faulthandler -m pytest -v -s -rxXs tests/python
2222
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }
2323
Write-Host "--- Run Python tests with GPU"
24-
python -X faulthandler -m pytest -v -s -rxXs --fulltrace -m "(not slow) and (not mgpu)"`
24+
python -X faulthandler -m pytest -v -s -rxXs -m "(not slow) and (not mgpu)"`
2525
tests/python-gpu
2626
if ($LASTEXITCODE -ne 0) { throw "Last command failed" }

0 commit comments

Comments
 (0)