Skip to content

Commit f106b1f

Browse files
committed
ci: skip numba-cuda IPC tests and mlir test_device_record_copy
nightly-numba-cuda: switch from `python -m numba.runtests` to `pytest` (numba-cuda's own CI uses pytest; PR NVIDIA#1987 landed the runtests form as a bring-up fix) so we can skip individual tests. Two workarounds: - pin pytest<9 (matches upstream's numba-cuda cap; NVIDIA/numba-cuda#637 covers the subTest breakage on 9). - --ignore-glob "**/test_ipc.py" — numba-cuda v0.30.4 accesses CUipcMemHandle.reserved, which cuda-bindings intentionally removed; numba-cuda is EOL upstream so no fix is coming (NVIDIA#2748). nightly-numba-cuda-mlir: add --deselect for TestCudaDeviceRecordWithRecord.test_device_record_copy — the WithRecord fixture uses np.recarray (uninitialized memory), so when the float32 field encodes a NaN, `np.testing.assert_equal` trips on NaN != NaN even though the copy round-trip is correct. Filed upstream as NVIDIA/numba-cuda-mlir#341.
1 parent feb41f7 commit f106b1f

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

‎.github/workflows/test-wheel-linux.yml‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,14 @@ jobs:
469469
470470
- name: Run numba-cuda tests
471471
if: ${{ inputs.test-mode == 'nightly-numba-cuda' }}
472-
run: python -m numba.runtests numba.cuda.tests
472+
run: |
473+
# pytest<9: numba-cuda's subTest-based tests break under pytest 9's
474+
# xdist subtest handling. See NVIDIA/numba-cuda#637.
475+
pip install "pytest<9"
476+
# test_ipc: numba-cuda v0.30.4 accesses CUipcMemHandle.reserved, which
477+
# cuda-bindings intentionally removed. numba-cuda is EOL upstream, so
478+
# no fix is coming. See cuda-python#2748.
479+
pytest -v --pyargs numba.cuda.tests --ignore-glob="**/test_ipc.py"
473480
474481
- name: Checkout numba-cuda-mlir tests at matching tag
475482
if: ${{ inputs.test-mode == 'nightly-numba-cuda-mlir' && env.NUMBA_CUDA_MLIR_VER != '' }}
@@ -495,9 +502,13 @@ jobs:
495502
# Skip tests/benchmarks/ and tests/doc_examples/ — they import the
496503
# numba package at collection time, which cuSIMT intentionally does
497504
# not depend on. See NVIDIA/numba-cuda-mlir#136.
505+
# test_device_record_copy (WithRecord variant): flaky NaN vs NaN
506+
# compare from uninitialized np.recarray memory. See
507+
# NVIDIA/numba-cuda-mlir#341.
498508
pytest -rxXs -v \
499509
--ignore=tests/benchmarks \
500510
--ignore=tests/doc_examples \
511+
--deselect 'tests/numba_cuda_tests/cudadrv/test_cuda_devicerecord.py::TestCudaDeviceRecordWithRecord::test_device_record_copy' \
501512
tests/
502513
popd
503514

‎.github/workflows/test-wheel-windows.yml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,10 @@ jobs:
453453
- name: Run numba-cuda tests
454454
if: ${{ inputs.test-mode == 'nightly-numba-cuda' }}
455455
shell: bash --noprofile --norc -xeuo pipefail {0}
456-
run: python -m numba.runtests numba.cuda.tests
456+
run: |
457+
# See linux step for rationale (pytest<9 and test_ipc skip).
458+
pip install "pytest<9"
459+
pytest -v --pyargs numba.cuda.tests --ignore-glob="**/test_ipc.py"
457460
458461
- name: Checkout numba-cuda-mlir tests at matching tag
459462
if: ${{ inputs.test-mode == 'nightly-numba-cuda-mlir' && env.NUMBA_CUDA_MLIR_VER != '' }}
@@ -476,9 +479,11 @@ jobs:
476479
pushd numba-cuda-mlir-released
477480
pip install --upgrade "pip>=25.1"
478481
pip install --group test
482+
# See linux step for rationale on the --deselect.
479483
pytest -rxXs -v \
480484
--ignore=tests/benchmarks \
481485
--ignore=tests/doc_examples \
486+
--deselect 'tests/numba_cuda_tests/cudadrv/test_cuda_devicerecord.py::TestCudaDeviceRecordWithRecord::test_device_record_copy' \
482487
tests/
483488
popd
484489

0 commit comments

Comments
 (0)