Skip to content

Commit 73e2a79

Browse files
cpcloudcursoragent
andauthored
test: add pytest-randomly to cuda_pathfinder (#1269)
* test: add `pytest-randomly` to `cuda_pathfinder` * ci: prevent randomized reordering in bindings/core test runs Adding pytest-randomly for cuda_pathfinder currently affects bindings/core in shared CI jobs and exposes unrelated order-dependent failures. Disable collection reordering for bindings/core invocations to keep those suites stable while pathfinder adopts randomization. Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 229dbac commit 73e2a79

File tree

4 files changed

+65
-4
lines changed

4 files changed

+65
-4
lines changed

ci/tools/run-tests

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ elif [[ "${test_module}" == "bindings" ]]; then
4747
pip install $(ls "${CUDA_BINDINGS_ARTIFACTS_DIR}"/*.whl)[all] --group test
4848
fi
4949
echo "Running bindings tests"
50-
${SANITIZER_CMD} pytest -rxXs -v --durations=0 tests/
50+
${SANITIZER_CMD} pytest -rxXs -v --durations=0 --randomly-dont-reorganize tests/
5151
if [[ "${SKIP_CYTHON_TEST}" == 0 ]]; then
52-
${SANITIZER_CMD} pytest -rxXs -v --durations=0 tests/cython
52+
${SANITIZER_CMD} pytest -rxXs -v --durations=0 --randomly-dont-reorganize tests/cython
5353
fi
5454
popd
5555
elif [[ "${test_module}" == "core" ]]; then
@@ -80,11 +80,11 @@ elif [[ "${test_module}" == "core" ]]; then
8080
pip install $(ls "${CUDA_CORE_ARTIFACTS_DIR}"/*.whl)["cu${TEST_CUDA_MAJOR}"] --group "test-cu${TEST_CUDA_MAJOR}${FREE_THREADING}"
8181
fi
8282
echo "Running core tests"
83-
${SANITIZER_CMD} pytest -rxXs -v --durations=0 tests/
83+
${SANITIZER_CMD} pytest -rxXs -v --durations=0 --randomly-dont-reorganize tests/
8484
# Currently our CI always installs the latest bindings (from either major version).
8585
# This is not compatible with the test requirements.
8686
if [[ "${SKIP_CYTHON_TEST}" == 0 ]]; then
87-
${SANITIZER_CMD} pytest -rxXs -v --durations=0 tests/cython
87+
${SANITIZER_CMD} pytest -rxXs -v --durations=0 --randomly-dont-reorganize tests/cython
8888
fi
8989
popd
9090
fi

0 commit comments

Comments
 (0)