Skip to content

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

@leofang

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

Metadata

Metadata

Assignees

No one assigned

    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