Repository navigation
Docs: Add a CUDA bindings release verification runbook #3699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,154 @@ | ||||||||||
| <!-- | ||||||||||
| SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||||||||||
| SPDX-License-Identifier: Apache-2.0 | ||||||||||
| --> | ||||||||||
|
|
||||||||||
| # Verify a CUDA bindings and CUDA Python release | ||||||||||
|
|
||||||||||
| Release owners can use this runbook to have an agent gather evidence before | ||||||||||
| tagging and before announcing completion. Give it the target version, selected | ||||||||||
| source ref, release checklist, and available CI links. The release owner | ||||||||||
| approves publication and decides how to handle any open findings. Follow the | ||||||||||
| [bindings release guide](../../.github/RELEASE-bindings.md) for publication and | ||||||||||
| the [tag lifecycle](version-lifecycle.md) for tag handling. | ||||||||||
|
|
||||||||||
| ## Before tagging | ||||||||||
|
|
||||||||||
| 1. Resolve the candidate ref to its full commit SHA, whether it comes from | ||||||||||
| `main` or a stabilization branch. Identify the previous published release | ||||||||||
| in the same series and compare it with the candidate. Verify that the | ||||||||||
| selected changes and backports are present, flag unexpected user-visible | ||||||||||
| changes or API/ABI breaks, and look for changes missing from the notes. | ||||||||||
| 2. Read `ci/versions.yml` and the package metadata at the candidate SHA. | ||||||||||
| Confirm the selected bindings root, Toolkit pin, and supported Python | ||||||||||
| versions. Check the metapackage dependency constraints and ensure both | ||||||||||
|
Comment on lines
+23
to
+24
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Python versions are independent of a release -- adding/removing them is a separate task.
Comment on lines
+23
to
+24
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| components have substantive notes for the target version under the | ||||||||||
| repository's release-note policy. | ||||||||||
| 3. Inspect the candidate CI run and evidence for any targeted checks. Record | ||||||||||
| the intended tag, source ref and SHA, package root, Toolkit pin, and | ||||||||||
| workflow ref and SHA. Confirm that the release workflow understands the | ||||||||||
|
Comment on lines
+27
to
+29
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Record it where? |
||||||||||
| source's registry and artifact layout. For an older layout, use the | ||||||||||
| [compatible historical workflow](../../.github/RELEASE-bindings.md#older-release-layouts) | ||||||||||
| and verify the available checks on that ref. | ||||||||||
|
Comment on lines
+30
to
+32
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the use of this legacy information? If we need to make a release of code prior to this change, we have documentation at that commit -- not sure why we need to bring it forward on main. And all of that will be in the rearview mirror as of January anyway, so I'd advocate for this removing all of this legacy content. |
||||||||||
|
|
||||||||||
| ## Verify the exact tag and release runs | ||||||||||
|
|
||||||||||
| 1. Resolve `refs/tags/vX.Y.Z` to its commit and compare it with the approved | ||||||||||
| candidate SHA. Record the successful exact-tag CI run. Check that the | ||||||||||
| tag-triggered run selected the intended bindings root and that its builds, | ||||||||||
| tests, and artifact uploads cover the expected platform and Python matrix. | ||||||||||
| Take the matrix from the tagged configuration and workflow. | ||||||||||
| 2. For each component, record the dry-run and full-release run URLs, run | ||||||||||
| attempts, and workflow control SHA. Check the run inputs, tag CI run ID | ||||||||||
| selected by the workflow, and the outcomes of required jobs. For | ||||||||||
| `cuda-python`, verify that the dependency validation ran for default and | ||||||||||
| `[all]` installs on the expected matrix. Follow skipped or cancelled jobs | ||||||||||
| through their conditions and prerequisites. A green overall run can | ||||||||||
| contain skipped coverage, so record unexplained skips as pending or | ||||||||||
| blocking. [Metapackage dependency validation](https://github.com/NVIDIA/cuda-python/pull/3470) | ||||||||||
| 3. Confirm that release docs, asset upload, and registry publication ran for | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which registry? |
||||||||||
| both components. Record any historical workflow that lacked a check now | ||||||||||
| expected. If a required result is missing, report the exact failing or | ||||||||||
| skipped job and what evidence would clear it. | ||||||||||
|
Comment on lines
+49
to
+52
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The last 2 sentences don't make sense to me. Seems way too generic. It's like "make sure things worked?" |
||||||||||
|
|
||||||||||
| ## Verify what users receive | ||||||||||
|
|
||||||||||
| - **Published wheels.** Read each distribution's exact-version file list from | ||||||||||
| `https://pypi.org/pypi/<package>/<version>/json`. For an expected TestPyPI | ||||||||||
| upload, check the same endpoint on `test.pypi.org`. Compare sorted | ||||||||||
| `(filename, SHA-256)` pairs across the validated artifacts, indexes, and | ||||||||||
| GitHub release assets. Check for missing variants and yanked files. For a | ||||||||||
| recent upload, recheck after propagation and keep the result pending until | ||||||||||
| the files are visible. Record enough detail to reproduce the comparison. | ||||||||||
| - **Install smoke checks.** On a supported Python and platform, create a fresh | ||||||||||
| environment for each of the default and `[all]` installs. Pin both packages | ||||||||||
| to the target version so the metapackage's compatible-version constraint | ||||||||||
| cannot select a newer patch. Use binary wheels and a registry URL you can | ||||||||||
| verify. Record the Python, platform, registry, resolved versions, imports, | ||||||||||
| and `pip check` result. The full release-run matrix and post-release GPU QA | ||||||||||
| supply their own evidence. | ||||||||||
| - **GitHub release.** Confirm that the published release uses the exact tag and | ||||||||||
| describes this release. Download the uploaded source archive and its | ||||||||||
| `.sha256sum` sidecar and compare the computed archive hash with the sidecar. | ||||||||||
| Use the named release assets for this check. Some sidecars contain only a | ||||||||||
| digest, which can be compared directly with the first field of `sha256sum`. | ||||||||||
| - **Documentation.** Follow the public URLs for both exact-version landing | ||||||||||
| pages and their notes. Check the rendered titles and content, release index | ||||||||||
| entries, and links between the two components. Record redirects and verify | ||||||||||
| that the destination serves the intended version. After the selector update | ||||||||||
| deploys from `main`, check the live selector and open both destinations. | ||||||||||
| [Selector publication timing](https://github.com/NVIDIA/cuda-python/pull/3520) | ||||||||||
| - **Conda-forge and QA.** Follow the [bindings feedstock instructions](../../.github/RELEASE-bindings.md#publish-on-conda-forge). | ||||||||||
| Link the merged recipe and post-merge build, and record a fresh install of | ||||||||||
| both exact versions from the standard channel after repodata includes them. | ||||||||||
| Record the outcome of post-release QA and any open findings. | ||||||||||
|
|
||||||||||
| For a PyPI smoke check on Linux, select a supported interpreter and | ||||||||||
| substitute the target version. The two environments cover the default and | ||||||||||
| `[all]` dependency sets. | ||||||||||
|
|
||||||||||
| ```bash | ||||||||||
| ( | ||||||||||
| set -eu | ||||||||||
| version=X.Y.Z | ||||||||||
| smoke_dir=$(mktemp -d) | ||||||||||
| for extra in "" "[all]"; do | ||||||||||
| variant=default | ||||||||||
| if [ -n "$extra" ]; then variant=all; fi | ||||||||||
| python3 -m venv "$smoke_dir/$variant" | ||||||||||
| smoke_python="$smoke_dir/$variant/bin/python" | ||||||||||
| "$smoke_python" -m pip --isolated install --no-cache-dir \ | ||||||||||
| --index-url https://pypi.org/simple --only-binary=:all: \ | ||||||||||
| "cuda-bindings==$version" "cuda-python$extra==$version" | ||||||||||
| "$smoke_python" -m pip check | ||||||||||
| "$smoke_python" -m pip show cuda-bindings cuda-python | ||||||||||
| "$smoke_python" -c 'from cuda.bindings import driver, nvrtc, runtime' | ||||||||||
| done | ||||||||||
| ) | ||||||||||
| ``` | ||||||||||
|
|
||||||||||
| The [read-only release verifier proposal](https://github.com/NVIDIA/cuda-python/pull/3529) | ||||||||||
| covers automating parts of this evidence collection. | ||||||||||
|
|
||||||||||
| ## Report readiness | ||||||||||
|
|
||||||||||
| Leave an evidence record on the release checklist for the release owner. | ||||||||||
| Include the tag and source SHA, workflow ref and SHA, CI and release run | ||||||||||
| URLs, wheel and source-archive results, install and QA results, published | ||||||||||
| docs URLs and selectors, and the feedstock PR and install result. | ||||||||||
|
|
||||||||||
| For each exception, include the affected version and surface, expected and | ||||||||||
| observed result, and a link to the evidence. Report release blockers, checks | ||||||||||
| still pending, and previously known defects separately. For a known defect, | ||||||||||
| link the baseline and the release owner's explicit acceptance if available. | ||||||||||
| A release can be reported verified when the required checks pass and every | ||||||||||
| exception affecting it has been resolved or accepted by the release owner. | ||||||||||
|
|
||||||||||
| ## Worked example for 12.9.11 | ||||||||||
|
|
||||||||||
| - `v12.9.11` selected `cuda_bindings_12` with Toolkit `12.9.1` at | ||||||||||
| [382abe4d1e9221a15324b749f39715d852ac4bba](https://github.com/NVIDIA/cuda-python/commit/382abe4d1e9221a15324b749f39715d852ac4bba). | ||||||||||
| Its [successful tag CI run](https://github.com/NVIDIA/cuda-python/actions/runs/44624619973) | ||||||||||
| identifies the exact tag and SHA. Both releases used control ref | ||||||||||
| `pull-request/3470` at 8f90d1189f2e18e54888d345d1955fcde591fb6b. | ||||||||||
| - The bindings [dry run](https://github.com/NVIDIA/cuda-python/actions/runs/44774210948) | ||||||||||
| and [full release](https://github.com/NVIDIA/cuda-python/actions/runs/44776608591) | ||||||||||
| skipped the metapackage dependency job as expected. The metapackage | ||||||||||
| [dry run](https://github.com/NVIDIA/cuda-python/actions/runs/44778619286) | ||||||||||
| and [full release](https://github.com/NVIDIA/cuda-python/actions/runs/44781086586) | ||||||||||
| each passed all 42 default and `[all]` dependency jobs. All four runs are | ||||||||||
| attempt 1. | ||||||||||
| - All 21 bindings wheels and the one metapackage wheel matched by filename | ||||||||||
| and SHA-256 across TestPyPI, PyPI, and the | ||||||||||
| [GitHub release assets](https://github.com/NVIDIA/cuda-python/releases/tag/v12.9.11). | ||||||||||
| The source archive matched its sidecar. The two PyPI install checks and | ||||||||||
| the Conda install of both exact versions passed on Linux x86-64 with | ||||||||||
| Python 3.12. The [feedstock PR](https://github.com/conda-forge/cuda-python-feedstock/pull/230) | ||||||||||
| records the Conda build and validation evidence. | ||||||||||
| - Both exact-version note pages and both selector entries were verified | ||||||||||
| ([bindings notes](https://nvidia.github.io/cuda-python/cuda-bindings/12.9.11/release/12.9.11-notes.html), | ||||||||||
| [metapackage notes](https://nvidia.github.io/cuda-python/12.9.11/release/12.9.11-notes.html)). | ||||||||||
| The shared bindings index initially omitted the note and was repaired in | ||||||||||
| [#3526](https://github.com/NVIDIA/cuda-python/pull/3526). The metapackage | ||||||||||
| archive's bindings navigation still pointed to `latest` when checked. | ||||||||||
| [Navigation follow-up](https://github.com/NVIDIA/cuda-python/pull/3641) | ||||||||||
|
Comment on lines
+126
to
+154
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this here? Should we just remove it? |
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backports only applies to 12, I think, but this doc is intended to be generic?