CI: nightly-pytorch does not run the torch tests in cuda_core/tests/test_utils_dlpack.py
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
cuda_core/tests/test_utils_dlpack.py was added in #3499 (2026-11-25). Five of its tests (43 cases) need PyTorch and never run in CI:
| Test | Cases |
|---|---|
test_protocol_adapter_uses_protocol_on_first_and_cached_import |
24 |
test_real_tensor_and_subclasses_keep_existing_routes |
8 |
test_cuda_adapter_uses_real_device_storage |
6 |
test_class_proxy_is_not_a_native_tensor |
4 |
test_torch_tensor_type_lookup_is_cached |
1 |
They get torch through a fixture that calls pytest.importorskip("torch", minversion="2.3").
- Standard CI rows don't install PyTorch, so the tests skip there.
- The nightly-pytorch job installs PyTorch (2.9.1 and 2.15.0), but it runs only
pytest ... tests/test_utils.py tests/example_tests/(.github/workflows/test-wheel-linux.yml,.github/workflows/test-wheel-windows.yml). It never collectstests/test_utils_dlpack.py. In the nightly-pytorch log of 45532608245, which ran on the commit that added the file, the file doesn't appear at all.
The file's other tests don't need torch and run normally.
Fix
Add tests/test_utils_dlpack.py to the nightly-pytorch pytest command in both test-wheel-linux.yml and test-wheel-windows.yml.
The job selects tests by file name, so any new torch-dependent test outside those two paths is silently left out, as happened here. Consider selecting by what the tests need instead, for example a torch marker or running the full tests/ directory in that job. #3578 also changes what the nightly-pytorch job installs, so the two changes should agree.
Done when
The five tests pass in the nightly-pytorch job on Linux and Windows.
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