test(cuda.bindings): remove tests for CUDA 13.1+ APIs from cuda_bindings_12
Maintainer thường phản hồi trong vòng 1 ngày
@mdboom đang làm issue này rồi.
Từ ngày 25/11/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Part of #2077.
Problem
Eight tests in cuda_bindings_12 can never run there, because they exercise APIs that the CUDA 12 bindings don't have:
| Test | Skip reason in all 20 CUDA 12 configurations |
|---|---|
cuda_bindings_12/tests/test_cuda.py::test_cuGraphGetId |
"Requires CUDA 13.1+" |
cuda_bindings_12/tests/test_cuda.py::test_cuGraphExecGetId |
same |
cuda_bindings_12/tests/test_cuda.py::test_cuGraphNodeGetLocalId |
same |
cuda_bindings_12/tests/test_cuda.py::test_cuGraphNodeGetToolsId |
same |
cuda_bindings_12/tests/test_cuda.py::test_cuGraphNodeGetContainingGraph |
same |
cuda_bindings_12/tests/test_cuda.py::test_cuStreamGetDevResource |
same |
cuda_bindings_12/tests/test_cuda.py::test_cuDevSmResourceSplit |
same |
cuda_bindings_12/tests/test_nvfatbin.py::test_nvfatbin_add_tile_ir |
"TileIR API is not supported in CUDA < 13.1" |
- The seven driver tests skip on
driver_version_less_than(13010) or not supportsCudaAPI(...), andsupportsCudaAPI(name)isname in dir(cuda). None of these seven functions exists incuda_bindings_12/cuda/bindings/cydriver.pxd, so the condition is always true in this root, whatever the driver. test_nvfatbin_add_tile_irskips when the nvFatbin library is older than 13.1. CUDA 12 environments ship nvFatbin 12.x.
These tests were added for CTK 13.1 (#1337, #1467), when one test suite served both bindings majors and the guards skipped them under CUDA 12. The CUDA 12 root still carries them. The cuda_bindings_13 copies pass in all 30 CUDA 13 configurations.
They have no "not currently run in any CI job" marker: until #3590 fixed toolshed/find_skipped_tests.py, CUDA 12 results were filed under cuda_bindings_13, where these tests pass.
Fix
Delete the seven driver tests from cuda_bindings_12/tests/test_cuda.py. The CUDA 13 root keeps its copies, so no change is needed there.
For test_nvfatbin_add_tile_ir: cuda_bindings_12/cuda/bindings/cynvfatbin.pxd does declare nvFatbinAddTileIR. Decide whether running the CUDA 12 bindings with nvFatbin 13.1 or later is supported.
- If it isn't, delete the test from
cuda_bindings_12. - If it is, add a CI configuration that pairs them, so the test runs.
Done when
None of the eight tests remains in cuda_bindings_12 in a form that can never run, and toolshed/find_skipped_tests.py no longer reports them.
Guidance for PRs that address this issue
- When making a fix that allows a test to run in CI, remove the comment about the test not running in CI from the code.
- When making a test run only in nightly CI, we need to concretely confirm that in nightly CI. Include instructions in the PR about how to kick off a nightly run for the specific PR in order to test that (see below).
- For every PR note that the reviewer should feel free to push commits directly to the PR to improve things. @mdboom does not have the bandwidth to shepard each of them through.
- Every PR should include a way to confirm automatically that the tests are now running in at least one CI configuration.
Running the nightly test suites for a PR
The nightly workflow can test a PR's own wheels and tests, but it has to be started by hand. Starting it needs write access to NVIDIA/cuda-python, so ask a maintainer if you don't have it.
-
Wait for the PR's CI workflow run to finish successfully, and note its run ID, the number in its URL (
.../actions/runs/<run-id>). -
Start CI: Nightly optional-deps on the PR's mirror branch, with that run ID. Either:
-
In the GitHub UI: Actions → CI: Nightly optional-deps → Run workflow. Set Use workflow from to
pull-request/<PR number>, enter the run ID in the run-ID field, and leave the link-checker-only box unchecked. -
From the command line:
gh workflow run ci-nightly.yml --repo NVIDIA/cuda-python --ref pull-request/<PR number> -f run-id=<run-id>
Supply the run ID. Without it, the nightly run tests
main's latest wheels and tests, not the PR's. -
-
Link the nightly run in the PR. Then confirm that the affected tests ran and passed, rather than skipped, in the relevant nightly jobs.
The nightly run tests the commit of that CI run. Repeat these steps after pushing changes that affect the nightly-only tests.
- Ngôn ngữ chính
- Cython
- Star
- 3.4k
- Fork
- 353
- Merge trung bình
- 2 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 163
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NVIDIA/cuda-python
-
[BUG]: the `__cuda_stream__` deprecation warning points to `Stream(obj)`, which always raisesCó thể đã có người làm @Iamsohungrynow đã nhận 5 ngày trước. Đang mởbug cuda.core P1
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
NVIDIA/cuda-python#3505 · 3 bình luận · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: ProcessInfo.used_gpu_memory returns the NVML_VALUE_NOT_AVAILABLE sentinel as a byte countĐang mởtriage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
NVIDIA/cuda-python#3468 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
NVIDIA/cuda-python#3409 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: cleanup-pr-previews never removes previews of deleted PRsCó thể làm lại được @rwgk đã nhận 48 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
NVIDIA/cuda-python#2952 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: LocatedHeaderDir is mutable, so callers can poison the cached header-directory lookupCó thể đã có người làm @rwgk đã nhận 62 ngày trước. Đang mởtriage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
NVIDIA/cuda-python#2646 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày