CI: no CUDA 12 row runs on a Windows WDDM GeForce GPU, so test_set_temperature_threshold never runs there

未關閉
#3,593 0 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

維護者通常 1 天內回覆

@mdboom 已經在處理了。

開始於 2026年11月25日。

評估

這個 Issue 還沒有評估資料。

描述

CI/CD cuda.bindings nvidia-runners test

Part of #2077.

Problem

cuda_bindings_12/tests/nvml/test_device.py::test_set_temperature_threshold never runs in CI. On every CUDA 12 GPU (L4, T4, V100, A100, RTX PRO 6000), NVML reports the temperature-threshold call as unsupported, and the test skips.

The cuda_bindings_13 copy runs, but only on the Windows WDDM GeForce runners (win-64 RTX 4090 and RTX 2080, both WDDM). Every CUDA 12 Windows row in ci/test-matrix.yml uses a V100 or an L4 in MCDM or TCC mode, so no CUDA 12 configuration has a GPU where the call is supported.

The test has 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 this test passes.

Fix

Move one CUDA 12 Windows row in ci/test-matrix.yml to an RTX 4090 or RTX 2080 WDDM runner. Both runner types already exist in the CUDA 13 Windows rows.

If that isn't worth a runner change for one test, add a "not currently run in any CI job" marker to the CUDA 12 copy instead, so the gap stays visible.

Done when

test_set_temperature_threshold passes on a CUDA 12 configuration, or the CUDA 12 copy carries the marker and the decision is recorded here.

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.

  1. 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>).

  2. 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.

  3. 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.

主要語言
Cython
星號
3.4k
分支
353
平均合併
2 天 3 小時
30 天內合併 PR
163

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

NVIDIA/cuda-python 的其他 Issue

查看 NVIDIA/cuda-python 的全部 Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。