Skip to content

[BUG] CI: "Self-test release-notes checker" fails due to root conftest.py import error #2062

Closed

Description

@leofang

Description

The check-release-notes job in the CI: Release workflow (release.yml) fails at the "Self-test release-notes checker" step with pytest exit code 4 (collection error).

Example failure: https://github.com/NVIDIA/cuda-python/actions/runs/25701496246/job/75462415468

Root cause

The step runs:

- name: Self-test release-notes checker
  run: |
    pip install pytest
    pytest ci/tools/tests

When pytest launches from the repo root, it discovers the root-level conftest.py, which imports cuda.pathfinder. Since the job only installs pytest (not the project packages), the import fails and pytest aborts before any tests run.

The actual release-notes file (cuda_core/docs/source/release/1.0.0-notes.rst) is fine — the job never reaches the "Check versioned release notes exist" step.

Suggested fix

Remove the self-test step from the release workflow entirely. Running infra/tooling tests during a release is not the right place — they should be validated separately (e.g. in a CI workflow that runs on PRs).

For reference, this was already worked around by commenting out the step in a release branch: 40508c5

Activity

  1. added
    bugSomething isn't working
    P0High priority - Must do!
    CI/CDCI/CD infrastructure
    and removed
    triageNeeds the team's attention
    on May 11, 2026
  2. leofang commented on May 12, 2026

    @leofang
    MemberAuthor

    For reference, this was already worked around by commenting out the step in a release branch: 40508c5

    This commit was ported to the main branch via #2073.

  3. rparolin commented on Aug 20, 2026

    @rparolin
    Collaborator

    Fixed on main; closing.

    • release.yml: the "Self-test release-notes checker" step is gone entirely ([no-ci] Prepare for cuda.core v1.0.1 release #2073). The check-release-notes job now only runs ci/tools/check_release_notes.py.
    • ci-nightly.yml: the tool tests moved to a "Run CI tools unit tests" step using python -m pytest -v --noconftest ci/tools/tests — --noconftest is the root-cause fix, stopping pytest from loading the repo-root conftest.py that imports cuda.pathfinder.
    • Verified green: the "Nightly: CI tools for release" job passed in run 32325363029 (2026-08-20). Other failures in that run are unrelated GPU jobs.

    Possible follow-up (separate issue): these only run nightly, so a PR breaking ci/tools/ is caught up to ~24h late. Adding the same step to PR CI would tighten that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

CI/CDCI/CD infrastructureP0High priority - Must do!bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions