Skip to content
Merged
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
3 changes: 0 additions & 3 deletions cuda_bindings_12/tests/nvml/test_pynvml.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ def test_device_get_handle_by_pci_bus_id(ngpus, pci_info):
assert len(handles) == ngpus


# This test is not currently run in any CI job
@pytest.mark.parametrize("scope", [nvml.AffinityScope.NODE, nvml.AffinityScope.SOCKET])
@pytest.mark.skipif(util.is_wsl() or util.is_windows(), reason="Not supported on WSL or Windows")
def test_device_get_memory_affinity(handles, scope):
Expand All @@ -74,7 +73,6 @@ def test_device_get_memory_affinity(handles, scope):
assert len(node_set) == size


# This test is not currently run in any CI job
@pytest.mark.parametrize("scope", [nvml.AffinityScope.NODE, nvml.AffinityScope.SOCKET])
@pytest.mark.skipif(util.is_wsl() or util.is_windows(), reason="Not supported on WSL or Windows")
def test_device_get_cpu_affinity_within_scope(handles, scope):
Expand Down Expand Up @@ -248,7 +246,6 @@ def test_device_get_pcie_throughput(ngpus, handles):
# Test pynvml.nvmlDeviceGetNvLinkRemotePciInfo


# This test is not currently run in any CI job
@pytest.mark.parametrize(
"cap_type",
[
Expand Down
6 changes: 0 additions & 6 deletions cuda_bindings_13/tests/legacy_api/test_legacy_cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ def callableBinary(name):
return shutil.which(name) is not None


# This test is not currently run in any CI job
@pytest.mark.skipif(True, reason="Always skip!")
def test_always_skip():
pass


def test_cuda_memcpy():
# Get device

Expand Down
2 changes: 0 additions & 2 deletions cuda_bindings_13/tests/nvml/test_pynvml.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ def test_device_get_handle_by_pci_bus_id(ngpus):
assert len(handles) == ngpus


# This test is not currently run in any CI job
@pytest.mark.parametrize("scope", [nvml.AffinityScope.NODE, nvml.AffinityScope.SOCKET])
@pytest.mark.skipif(IS_WSL or IS_WINDOWS, reason="Not supported on WSL or Windows")
def test_device_get_memory_affinity(handles, scope, subtests):
Expand All @@ -87,7 +86,6 @@ def test_device_get_memory_affinity(handles, scope, subtests):
assert len(node_set) == size


# This test is not currently run in any CI job
@pytest.mark.parametrize("scope", [nvml.AffinityScope.NODE, nvml.AffinityScope.SOCKET])
@pytest.mark.skipif(IS_WSL or IS_WINDOWS, reason="Not supported on WSL or Windows")
def test_device_get_cpu_affinity_within_scope(handles, scope, subtests):
Expand Down
3 changes: 2 additions & 1 deletion cuda_bindings_13/tests/test_cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ def node_array(nodes):
return (ctypes.c_void_p * len(nodes))(*nodes)


# This test is not currently run in any CI job
# Canary for toolshed/find_skipped_tests.py: it must be reported as skipped in
# every CI configuration, which shows that this suite ran. Do not remove.
@pytest.mark.skipif(True, reason="Always skip!")
def test_always_skip():
pass
Expand Down
1 change: 0 additions & 1 deletion cuda_bindings_13/tests/test_graphics_apis.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ def _gl_context():
win.close()


# This test is not currently run in any CI job
@pytest.mark.parametrize(
"flags",
[
Expand Down
11 changes: 5 additions & 6 deletions cuda_core/tests/example_tests/test_samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@

# Samples launch full GPU workloads in their own subprocess, so keep them
# serialized when the suite is run under pytest-run-parallel.
# For sample_key values: cuda_core/binarySearch, cuda_core/cudaComputeLambdas, cuda_core/customPyTorchKernel,
# cuda_core/customTensorFlowKernel, cuda_core/fftSignalAnalysis, cuda_core/glInteropFluidNumbaCudaMlir,
# cuda_core/glInteropFluid, cuda_core/glInteropMipmapLod, cuda_core/glInteropPlasma, cuda_core/greenContext,
# cuda_core/matrixMulSharedMem, cuda_core/multiGPUGradientAverage, cuda_core/numpyVsCupy, cuda_core/pageRank,
# cuda_core/parallelReduction, cuda_core/prefixSum, cuda_core/processCheckpoint, cuda_core/reductionMultiBlockCG,
# cuda_core/simplePrint, cuda_core/tmaTensorMap:
# For sample_key values: cuda_core/binarySearch, cuda_core/cudaComputeLambdas, cuda_core/customTensorFlowKernel,
# cuda_core/glInteropFluidNumbaCudaMlir, cuda_core/glInteropFluid, cuda_core/glInteropMipmapLod,
# cuda_core/glInteropPlasma, cuda_core/greenContext, cuda_core/matrixMulSharedMem, cuda_core/multiGPUGradientAverage,
# cuda_core/pageRank, cuda_core/parallelReduction, cuda_core/prefixSum, cuda_core/processCheckpoint,
# cuda_core/reductionMultiBlockCG, cuda_core/simplePrint, cuda_core/tmaTensorMap:
Comment on lines +31 to +35

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Major · Functional Correctness · Quick win

important: Add a positive CI check for the three samples whose markers are removed.

This change removes the "not currently run in any CI job" marker from customPyTorchKernel, fftSignalAnalysis, and numpyVsCupy. The updated toolshed/find_skipped_tests.py cannot show that these samples ran. universally_skipped returns ever_skipped - ever_non_skipped, and build_summary lists only that set. A sample that never produces a pytest outcome line appears in neither set, so it is not reported. The new warnings cover missing logs and jobs without pytest. They do not report per-test results. The suggested check therefore shows only that a sample is absent from the skipped list. That does not show that the sample ran.

test_sample can also skip a collected sample when no GPU is detected or when run_sample returns WAIVED. Collection alone does not prove execution.

Linked issue #3562 requires an automated way to verify that affected tests run in at least one CI configuration. Add a check that requires a non-skipped result for each of these three samples in at least one configuration. Until such a check exists, the removed markers rely on manual CI observation.

# This test is not currently run in any CI job
@pytest.mark.parallel_threads_limit(1)
@pytest.mark.parametrize("sample_key", _SAMPLES)
Expand Down
1 change: 0 additions & 1 deletion cuda_core/tests/system/test_system_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ def test_affinity(subtests):
assert isinstance(affinity, list)


# This test is not currently run in any CI job
def test_numa_node_id(subtests):
for device in system.Device.get_all_devices():
with subtests.test(device_index=device.index):
Expand Down
3 changes: 0 additions & 3 deletions cuda_core/tests/test_object_protocols.py
Original file line number Diff line number Diff line change
Expand Up @@ -927,9 +927,6 @@ def test_usable_in_weak_set(sample_object):
# =============================================================================


# For sample_alloc_node, sample_empty_node, sample_free_node, sample_memcpy_node, sample_memset_node,
# sample_object_code_ptx, and sample_program_ptx:
# This test is not currently run in any CI job
@pytest.mark.parametrize("sample_object,pattern", REPR_PATTERNS, indirect=["sample_object"])
def test_repr_format(sample_object, pattern):
"""repr() returns a properly formatted string."""
Expand Down
2 changes: 0 additions & 2 deletions cuda_core/tests/test_tensor_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ def test_replace_address_rejects_tensor_from_other_device(self, dev, skip_if_no_
with pytest.raises(ValueError, match=r"replace_address expects tensor on device 0, got 1"):
desc.replace_address(buf1)

# This test is not currently run in any CI job
def test_replace_address_accepts_managed_buffer_on_nonzero_device(self, init_cuda):
if len(Device.get_all_devices()) < 2:
pytest.skip("requires multi-GPU")
Expand Down Expand Up @@ -616,7 +615,6 @@ def test_from_im2col_wide_rejects_tensor_from_other_device(self, init_cuda):
pytest.skip("Im2col-wide requires cuda.core built with CUDA 13+")
raise

# This test is not currently run in any CI job
def test_from_tiled_accepts_managed_buffer_on_nonzero_device(self, init_cuda):
if len(Device.get_all_devices()) < 2:
pytest.skip("requires multi-GPU")
Expand Down
10 changes: 0 additions & 10 deletions cuda_core/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,6 @@ def gpu_array_ptr(arr):

@pytest.mark.parametrize(("in_arr", "use_stream"), gpu_array_samples())
class TestViewGPU:
# For the empty parameter set ([NOTSET]):
# This test is not currently run in any CI job
def test_args_viewable_as_strided_memory_gpu(self, in_arr, use_stream):
# TODO: use the device fixture?
dev = Device()
Expand All @@ -261,8 +259,6 @@ def my_func(arr):

my_func(in_arr)

# For the empty parameter set ([NOTSET]):
# This test is not currently run in any CI job
def test_strided_memory_view_cpu(self, in_arr, use_stream):
# TODO: use the device fixture?
dev = Device()
Expand All @@ -273,8 +269,6 @@ def test_strided_memory_view_cpu(self, in_arr, use_stream):
view = StridedMemoryView.from_any_interface(in_arr, stream_ptr=s.handle if s else -1)
self._check_view(view, in_arr, dev)

# For the empty parameter set ([NOTSET]):
# This test is not currently run in any CI job
def test_strided_memory_view_init(self, in_arr, use_stream):
# TODO: use the device fixture?
dev = Device()
Expand Down Expand Up @@ -344,8 +338,6 @@ def test_strided_memory_view_exposes_dlpack_c_exchange_api_capsule():
@pytest.mark.skipif(cp is None, reason="CuPy is not installed")
@pytest.mark.parametrize("in_arr,use_stream", (*gpu_array_samples(),))
class TestViewCudaArrayInterfaceGPU:
# For the empty parameter set ([NOTSET]):
# This test is not currently run in any CI job
def test_cuda_array_interface_gpu(self, in_arr, use_stream):
# TODO: use the device fixture?
dev = Device()
Expand Down Expand Up @@ -761,7 +753,6 @@ def test_ml_dtypes_bfloat16_dlpack(init_cuda, slices):
assert smv.strides == strides_in_counts


# This test is not currently run in any CI job
@pytest.mark.parametrize(
"slices",
[
Expand Down Expand Up @@ -962,7 +953,6 @@ def test_array_interface_mask_rejected():
_torch_skip = pytest.mark.skipif(torch is None, reason="PyTorch is not installed")


# This test is not currently run in any CI job
@_torch_skip
@pytest.mark.parametrize(
"dtype",
Expand Down
Loading
Loading