From 1a7e8a215533d0b3bd03cb0ecae9fce9ce6cb879 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 24 Nov 2026 17:34:08 -0800 Subject: [PATCH 1/3] Document conda-forge releases for CUDA bindings --- .github/ISSUE_TEMPLATE/release_checklist.yml | 5 +- .github/RELEASE-bindings.md | 68 +++++++++++++++++++- AGENTS.md | 13 ++++ 3 files changed, 83 insertions(+), 3 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/release_checklist.yml b/.github/ISSUE_TEMPLATE/release_checklist.yml index 4e64d7bc347c..ccd264f978ef 100644 --- a/.github/ISSUE_TEMPLATE/release_checklist.yml +++ b/.github/ISSUE_TEMPLATE/release_checklist.yml @@ -26,8 +26,9 @@ body: - label: "For cuda-core: create the release branch (`release/cuda-core-vX.Y.x`) from `main` for a minor release, or use the existing one for a patch release" - label: Record the exact source commit, workflow control revision, and selected package root before creating the approved public release tag (for cuda-core, on the release branch) - label: Wait for the exact tag-triggered CI run to pass and complete a release dry run before approving publication - - label: Publish the release at https://github.com/NVIDIA/cuda-python/releases (this will trigger the conda package update) - - label: Approve the conda-package update PR + - label: Publish the release at https://github.com/NVIDIA/cuda-python/releases + - label: Open or find the conda-forge feedstock PR for the release, verify CI, and merge it + - label: Verify the released package versions install from conda-forge and record the result - label: Post-release QA - label: Finalize the announcement update - label: Send out the announcement internally (on `#swcuda-python`) diff --git a/.github/RELEASE-bindings.md b/.github/RELEASE-bindings.md index b6dc53d63be7..0b9bc1425285 100644 --- a/.github/RELEASE-bindings.md +++ b/.github/RELEASE-bindings.md @@ -62,7 +62,9 @@ intended toolkit inputs. Follow the `vX.Y.Z` GitHub Release draft. Check its release notes, versioned documentation links, source archive, checksum, and wheels. These component workflows leave the draft for the release owner to publish. -7. Finish post-release QA and announcements and return every applicable fix +7. [Publish both packages on conda-forge](#publish-on-conda-forge) for this + release line. +8. Finish post-release QA and announcements and return every applicable fix to `main`. For a bindings `vX.Y.Z` tag, tag CI validates that line's bindings documentation. @@ -135,3 +137,67 @@ then approved full releases. Run lookup matches the requested tag and source SHA, and artifact validation rejects mismatched versions. Tag creation and release order do not choose the version; releasing one line does not release the other. + +## Publish on conda-forge + +The [cuda-python feedstock](https://github.com/conda-forge/cuda-python-feedstock) +builds both `cuda-bindings` and the `cuda-python` metapackage from one recipe. +Start after publishing the matching `vX.Y.Z` GitHub Release. Download its +`cuda-python-vX.Y.Z.tar.gz` release asset and its `.sha256sum` sidecar. Compute +the archive's SHA-256 and compare it with the digest in the sidecar. Use the +verified digest and the release asset URL below in the feedstock recipe. + +```text +https://github.com/NVIDIA/cuda-python/releases/download/vX.Y.Z/cuda-python-vX.Y.Z.tar.gz +``` + +### Choose the feedstock PR + +- **CUDA 12.9** targets the feedstock's `12.9` branch. Start from that branch + and open a manual PR from a fork with `12.9` as its base. [Conda-forge + maintenance branch guidance](https://conda-forge.org/docs/how-to/advanced/several-versions/) +- **CUDA 13** targets the feedstock's `main` branch. Look for an existing + version-update PR for the exact release. If there is none, open an issue in + the feedstock with the title `@conda-forge-admin, please update version`. + Wait for any follow-up bot commits that complete the recipe update. If the bot + does not produce a PR for the intended version, open one from a fork against + `main`. [Conda-forge version update command](https://conda-forge.org/docs/maintainer/infrastructure/#conda-forge-admin-please-update-version) + +### Review, test, and publish + +1. Review `recipe/recipe.yaml` against the release asset. Verify the PR base, + set the release version and SHA-256, and reset the build number to `0` for + a new version. Compare the packaged paths, license files, Python minimum, + and dependency constraints with the tagged bindings and metapackage + `pyproject.toml` files and `cuda_python/setup.py`. For tags with the split + source layout, use `cuda_bindings_12` or `cuda_bindings_13` as appropriate. + If the tagged metapackage requires `CUDA_PYTHON_BUILD_MAJOR`, set it to + `12` or `13` for that build. Verify any newly required `cuda-core` or + `cuda-pathfinder` versions are available from conda-forge. +2. Run `pixi run lint` in the feedstock. Run `pixi run rerender` when changes + affect generated CI configuration or variants. Inspect any staged changes + from the rerender and compare the resulting matrix with the target branch. +3. Wait for the feedstock's **Build conda package** checks and lint to pass at + the final PR head. Check the logs against `.ci_support/` to verify bindings + builds and tests across the expected platform and Python variants and the + `noarch` metapackage build and tests. Investigate any unexplained differences + in coverage, including test steps skipped by recipe conditions. +4. Merge the reviewed PR to start conda-forge's build and upload. Check the + post-merge run, then verify that both exact package versions install + together in a fresh environment from the standard `conda-forge` channel. + Anaconda.org file listings can appear before channel repodata includes the + builds. Record the feedstock PR, CI run, and install result in the release + checklist. + +For a smoke test, substitute the release version and a supported Python minor +for the placeholders. Pin both package versions so the solver verifies the +specific bindings and metapackage being released. + +```bash +version=X.Y.Z +python_version=X.Y +pixi exec --force-reinstall --channel conda-forge \ + --spec "python=$python_version" \ + --spec "cuda-bindings==$version" --spec "cuda-python==$version" \ + python -c 'from cuda.bindings import driver, nvrtc, runtime' +``` diff --git a/AGENTS.md b/AGENTS.md index 540056eac205..99c69fa32d7b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -99,6 +99,19 @@ check the resulting release tuple rather than hard-code the expected alpha/development suffix, and report the effective `git describe` result for traceability. +## Conda release handoff + +Follow the [bindings Conda release guide](.github/RELEASE-bindings.md#publish-on-conda-forge) +for `cuda-bindings` and `cuda-python`. Verify the requested version, published +release asset and digest, and the feedstock PR base before editing or asking +the update bot to act. CUDA 12.9 uses the feedstock's `12.9` branch and CUDA +13 uses its `main` branch. + +Check the final PR head's logs for both outputs and compare build and test +coverage with the target branch. Treat the feedstock merge as a publication +action and merge only when authorized. Record the feedstock PR and CI run +and report public exact-version installation separately from CI results. + # Contributions Before starting implementation or preparing an issue or PR, follow the From 4b128bb267a24fe00502eff0effe9c069daddaf4 Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Tue, 24 Nov 2026 17:34:20 -0800 Subject: [PATCH 2/3] ci: require manual copy-pr-bot approval From 2521ae46b5ebc6586829f347a7e6afe7fd7f573f Mon Sep 17 00:00:00 2001 From: "Ralf W. Grosse-Kunstleve" Date: Fri, 27 Nov 2026 23:11:24 -0800 Subject: [PATCH 3/3] Check feedstock version before starting a Conda release --- .github/RELEASE-bindings.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/RELEASE-bindings.md b/.github/RELEASE-bindings.md index 0b9bc1425285..caf23083da01 100644 --- a/.github/RELEASE-bindings.md +++ b/.github/RELEASE-bindings.md @@ -153,6 +153,17 @@ https://github.com/NVIDIA/cuda-python/releases/download/vX.Y.Z/cuda-python-vX.Y. ### Choose the feedstock PR +Check what has already been published and which release should go next. This +avoids duplicate updates, accidental recipe downgrades, and skipping a +release planned for conda-forge. Concretely, check the recipe's +`context.version` in `recipe/recipe.yaml` on the target feedstock branch +before requesting a bot update or opening a manual PR. If it matches the +requested version, check the existing build and verify that both packages +install from conda-forge. If the branch is already on a newer version, +check whether both requested packages are available and coordinate any +needed backfill with the feedstock maintainers. When updating to a newer +version, publish and verify any earlier planned release first. + - **CUDA 12.9** targets the feedstock's `12.9` branch. Start from that branch and open a manual PR from a fork with `12.9` as its base. [Conda-forge maintenance branch guidance](https://conda-forge.org/docs/how-to/advanced/several-versions/)