Skip to content

bug fix: constrain cuda.core test installs to the requested CTK minor#1921

Open
rwgk wants to merge 2 commits intoNVIDIA:mainfrom
rwgk:fix-cuda-core-toolkit-constraint
Open

bug fix: constrain cuda.core test installs to the requested CTK minor#1921
rwgk wants to merge 2 commits intoNVIDIA:mainfrom
rwgk:fix-cuda-core-toolkit-constraint

Conversation

@rwgk
Copy link
Copy Markdown
Collaborator

@rwgk rwgk commented Apr 15, 2026

xref: #1851 (comment)

Fix latent bug discovered while reviewing #1851 with the team.

Without the explicit cuda-toolkit==${CUDA_VER_MINOR}.* pin, pip can satisfy the broad major-version requirements with a newer CUDA Toolkit minor than the one selected by the CI matrix. In practice, that can either pull a newer nvidia-cuda-runtime than the local CTK provides or make the wheel-backed job silently test the wrong CTK minor, reducing the value of the matrix and masking minor-version-specific regressions.

Changes

  • pin the cuda-toolkit dependency in ci/tools/run-tests to the matrix-selected CUDA toolkit minor for cuda.core test installs
  • apply that pin in both the local-CTK and wheel-backed install paths so pip does not resolve a newer runtime than the job is meant to cover
  • simplify the install flow by selecting the wheel target once via WHL_EXTRA, only adding the cu${TEST_CUDA_MAJOR} extra when the run needs published cuda-bindings

rwgk added 2 commits April 15, 2026 15:43
Keep the core test environment aligned with the matrix-selected CUDA toolkit so pip does not resolve a newer runtime and invalidate the job coverage.

Made-with: Cursor
Centralize the core wheel target selection so both install modes share one pip invocation while preserving when the published cuda.bindings extra is requested.

Made-with: Cursor
@rwgk rwgk added this to the cuda.core v1.0.0 milestone Apr 15, 2026
@rwgk rwgk self-assigned this Apr 15, 2026
@rwgk rwgk added P0 High priority - Must do! CI/CD CI/CD infrastructure cuda.core Everything related to the cuda.core module labels Apr 15, 2026
@copy-pr-bot
Copy link
Copy Markdown
Contributor

copy-pr-bot bot commented Apr 15, 2026

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@rwgk
Copy link
Copy Markdown
Collaborator Author

rwgk commented Apr 15, 2026

/ok to test

@github-actions
Copy link
Copy Markdown

@rwgk rwgk marked this pull request as ready for review April 16, 2026 00:04
@rwgk rwgk requested a review from cpcloud April 16, 2026 00:04
@rwgk
Copy link
Copy Markdown
Collaborator Author

rwgk commented Apr 16, 2026

@leofang @mdboom for visibility (we found this together in our review meeting on Monday)

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

Labels

CI/CD CI/CD infrastructure cuda.core Everything related to the cuda.core module P0 High priority - Must do!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant