CI: run toolshed/find_skipped_tests.py periodically to catch tests that stop running
Les mainteneurs répondent en général sous 1 jour
@mdboom y travaille déjà.
Depuis le 25/11/2026.
Évaluation
Cette issue n'a pas encore été évaluée.
Description
Part of #2077.
Problem
toolshed/find_skipped_tests.py reports the tests that are skipped in every CI configuration. Today someone has to run it by hand, so gaps are found late:
- The list in #2077 was produced on 2026-11-17 and annotated in #3486. By then several of its entries were already wrong, and nothing flagged that.
cuda_core/tests/test_utils_dlpack.pywas added on 2026-11-25. Its torch tests have never run (#3594), and nothing flagged that either.- CUDA 12 bindings tests that never run (#3591, #3592, #3593) stayed hidden until the tool was fixed in #3590.
Tests that stop running, and "not currently run in any CI job" markers that go stale, should be caught automatically.
Proposal
Add a scheduled workflow that runs toolshed/find_skipped_tests.py and reports the result where maintainers will see it. This needs #3590 first: the tool's parsing fixes are what make its report trustworthy.
-
When: after each scheduled nightly completes. Trigger on
workflow_runof "CI: Nightly optional-deps" onmain, or on a weekly schedule. The tool reads the latestmainpush run and the latest scheduled nightly. -
Compare against the markers: read the "This test is not currently run in any CI job" comments in the source tree, including their "For … parameter case" scope lines, and report two lists:
- tests skipped everywhere that have no marker (new gaps);
- markers on tests that ran in at least one configuration (stale markers to remove).
If parsing free-form comments proves fragile, consider a machine-readable form for the marker.
-
Report:
- Write the full report to the job summary.
- Keep one tracking issue (or a comment on #2077) up to date.
ci-workflow-health.ymlalready maintains an incident issue withactions/github-scriptand hidden marker comments, so the same pattern fits. - Change it only when the lists change, to avoid noise.
-
Robustness:
- The tool already warns about configurations whose logs are missing and jobs where pytest never ran. The workflow should say so prominently, because results are incomplete then.
- Retry transient
gh apifailures. The jobs listing occasionally returns 5xx.
The job needs actions: read (to download job logs) and issues: write (only if it updates an issue). It downloads about 140 job logs, which takes a few minutes.
Done when
A scheduled workflow runs the tool. Its output lists new never-run tests and stale markers, separately, in a place maintainers watch. A test that stops running in every configuration shows up there without anyone running the script by hand.
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.
- Langage dominant
- Cython
- Étoiles
- 3.4k
- Forks
- 353
- Merge moyen
- 2 j 3 h
- PR mergées (30 j)
- 163
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de NVIDIA/cuda-python
-
[BUG]: the `__cuda_stream__` deprecation warning points to `Stream(obj)`, which always raisesPeut-être pris @Iamsohungrynow l’a pris il y a 5 jours. Ouvertebug cuda.core P1
Difficulté 1/5 Moins d'une heure Accessibilité débutants 86/100
NVIDIA/cuda-python#3505 · 3 commentaires · 1 réaction · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
[BUG]: ProcessInfo.used_gpu_memory returns the NVML_VALUE_NOT_AVAILABLE sentinel as a byte countOuvertetriage
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
NVIDIA/cuda-python#3468 · 3 commentaires ·
Les mainteneurs répondent en général sous 1 jour
-
triage
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
NVIDIA/cuda-python#3409 ·
Les mainteneurs répondent en général sous 1 jour
-
[BUG]: cleanup-pr-previews never removes previews of deleted PRsPeut-être à nouveau libre @rwgk l’a pris il y a 48 jours, et aucune pull request n’est ouverte. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
NVIDIA/cuda-python#2952 · 1 personne assignée ·
Les mainteneurs répondent en général sous 1 jour
-
[BUG]: LocatedHeaderDir is mutable, so callers can poison the cached header-directory lookupPeut-être pris @rwgk l’a pris il y a 62 jours. Ouvertetriage
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
NVIDIA/cuda-python#2646 · 1 réaction ·
Les mainteneurs répondent en général sous 1 jour