Skip to content

Commit b53d482

Browse files
committed
ci: swap --ignore-glob for -k 'not TestIpc' in numba-cuda pytest
pytest's --ignore-glob="**/test_ipc.py" didn't match through the --pyargs-resolved site-packages path (5 tests still ran and failed with the CUipcMemHandle.reserved AttributeError on linux-64). Match by class name instead — the affected tests live in TestIpcMemory and TestIpcStaged, both starting with "TestIpc", so this is unambiguous.
1 parent 3bc4acc commit b53d482

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -486,11 +486,12 @@ jobs:
486486
fi
487487
# Run from numba-cuda's testing/ dir so its pytest.ini kicks in
488488
# (consider_namespace_packages=true + --pyargs numba.cuda.tests).
489-
# test_ipc: numba-cuda v0.30.4 accesses CUipcMemHandle.reserved, which
490-
# cuda-bindings intentionally removed. numba-cuda is EOL upstream, so
491-
# no fix is coming. See cuda-python#2748.
489+
# -k "not TestIpc": numba-cuda v0.30.4 accesses CUipcMemHandle.reserved,
490+
# which cuda-bindings intentionally removed. numba-cuda is EOL upstream,
491+
# so no fix is coming. See cuda-python#2748. The affected tests all
492+
# live in the two TestIpcMemory/TestIpcStaged classes in test_ipc.py.
492493
pushd numba-cuda-released/testing
493-
pytest -v --ignore-glob="**/test_ipc.py"
494+
pytest -v -k "not TestIpc"
494495
popd
495496
496497
- name: Checkout numba-cuda-mlir tests at matching tag

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,9 +467,9 @@ jobs:
467467
if [[ "${LOCAL_CTK}" != 1 ]]; then
468468
export NUMBA_CUDA_TEST_WHEEL_ONLY=1
469469
fi
470-
# See linux step for rationale on running from testing/ and the test_ipc skip.
470+
# See linux step for rationale on running from testing/ and -k.
471471
pushd numba-cuda-released/testing
472-
pytest -v --ignore-glob="**/test_ipc.py"
472+
pytest -v -k "not TestIpc"
473473
popd
474474
475475
- name: Checkout numba-cuda-mlir tests at matching tag

0 commit comments

Comments
 (0)