Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/test-wheel-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ jobs:
if: ${{ inputs.test-mode == 'nightly-pytorch' }}
run: |
pushd cuda_core
pytest -rxXs -v --durations=0 tests/test_utils.py tests/example_tests/
pytest -rxXs -v --durations=20 tests/test_utils.py tests/example_tests/
popd

- name: Run numba-cuda tests
Expand Down Expand Up @@ -488,7 +488,7 @@ jobs:
--deselect 'tests/numba_cuda_tests/cudadrv/test_nvjitlink.py::TestLinkerDumpAssembly::test_nvjitlink_jit_with_linkable_code_lto_dump_assembly_warn'
)
fi
pytest -rxXs -v --durations=0 \
pytest -rxXs -v --durations=20 \
--ignore=tests/benchmarks \
--ignore=tests/doc_examples \
"${DESELECTS[@]}" \
Expand Down Expand Up @@ -525,7 +525,7 @@ jobs:
--deselect 'tests/test_enum_coverage.py::test_wrapper_covers_all_binding_members[NvlinkVersion]'
)
fi
pytest -rxXs -v --durations=0 --randomly-dont-reorganize \
pytest -rxXs -v --durations=20 --randomly-dont-reorganize \
"${DESELECTS[@]}" \
tests/
popd
6 changes: 3 additions & 3 deletions .github/workflows/test-wheel-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ jobs:
shell: bash --noprofile --norc -xeuo pipefail {0}
run: |
pushd cuda_core
pytest -rxXs -v --durations=0 tests/test_utils.py tests/example_tests/
pytest -rxXs -v --durations=20 tests/test_utils.py tests/example_tests/
popd

- name: Run numba-cuda tests
Expand Down Expand Up @@ -452,7 +452,7 @@ jobs:
--deselect 'tests/numba_cuda_tests/cudapy/test_cuda_array_interface.py::TestCudaArrayInterface::test_fortran_contiguous'
)
fi
pytest -rxXs -v --durations=0 \
pytest -rxXs -v --durations=20 \
--ignore=tests/benchmarks \
--ignore=tests/doc_examples \
"${DESELECTS[@]}" \
Expand Down Expand Up @@ -494,7 +494,7 @@ jobs:
--deselect 'tests/test_memory.py::test_non_managed_resources_report_not_managed[pinned]'
)
fi
pytest -rxXs -v --durations=0 --randomly-dont-reorganize \
pytest -rxXs -v --durations=20 --randomly-dont-reorganize \
"${DESELECTS[@]}" \
tests/
popd
10 changes: 5 additions & 5 deletions ci/tools/run-tests
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ if [[ "${test_module}" == "pathfinder" ]]; then
"LD:${CUDA_PATHFINDER_TEST_LOAD_NVIDIA_DYNAMIC_LIB_STRICTNESS} " \
"FH:${CUDA_PATHFINDER_TEST_FIND_NVIDIA_HEADERS_STRICTNESS} " \
"BC:${CUDA_PATHFINDER_TEST_FIND_NVIDIA_BITCODE_LIB_STRICTNESS}"
pytest -ra -s -v --durations=0 tests/ |& tee /tmp/pathfinder_test_log.txt
pytest -ra -s -v --durations=20 tests/ |& tee /tmp/pathfinder_test_log.txt
# Report the number of "INFO test_" lines (including zero)
# to support quick validations based on GHA log archives.
line_count=$(awk '/^INFO test_/ {count++} END {print count+0}' /tmp/pathfinder_test_log.txt)
Expand All @@ -51,9 +51,9 @@ elif [[ "${test_module}" == "bindings" ]]; then
pip install $(ls "${CUDA_BINDINGS_ARTIFACTS_DIR}"/*.whl)[all] --group test
fi
echo "Running bindings tests"
${SANITIZER_CMD} pytest -rxXs -v --durations=0 --randomly-dont-reorganize tests/
${SANITIZER_CMD} pytest -rxXs -v --durations=20 --randomly-dont-reorganize tests/
if [[ "${SKIP_CYTHON_TEST}" == 0 ]]; then
${SANITIZER_CMD} pytest -rxXs -v --durations=0 --randomly-dont-reorganize tests/cython
${SANITIZER_CMD} pytest -rxXs -v --durations=20 --randomly-dont-reorganize tests/cython
fi
popd
elif [[ "${test_module}" == "core" || "${test_module}" == nightly-* ]]; then
Expand Down Expand Up @@ -105,11 +105,11 @@ elif [[ "${test_module}" == "core" || "${test_module}" == nightly-* ]]; then
echo "Installed packages before core tests:"
pip list
echo "Running core tests"
${SANITIZER_CMD} pytest -rxXs -v --durations=0 --randomly-dont-reorganize tests/
${SANITIZER_CMD} pytest -rxXs -v --durations=20 --randomly-dont-reorganize tests/
# Currently our CI always installs the latest bindings (from either major version).
# This is not compatible with the test requirements.
if [[ "${SKIP_CYTHON_TEST}" == 0 ]]; then
${SANITIZER_CMD} pytest -rxXs -v --durations=0 --randomly-dont-reorganize tests/cython
${SANITIZER_CMD} pytest -rxXs -v --durations=20 --randomly-dont-reorganize tests/cython
fi
popd
elif [[ "${test_module}" == "nightly-cuda-core" ]]; then
Expand Down