You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[doc-only] Preserve shared docs inventories during release deploys - #3521
The CUDA 12.9.11 bindings deployment replaced the shared objects.inv with the release inventory while the shared latest/ pages still described CUDA 13. This long-standing bug was easy to miss because a subsequent main deployment restores the shared inventories. This PR prevents that mismatch after a release.
The two shared inventories on gh-pages are:
docs/objects.inv for the cuda-python metapackage
docs/cuda-bindings/objects.inv for cuda-bindings
Both docs build paths stage their output under artifacts/docs/. After either path finishes, release staging omits latest/, the selector files, and objects.inv at each staged component root. Versioned pages and their inventories stay in the payload. The deployment overlays the staged files on gh-pages, preserving the shared files published by main.
While working on this fix, we identified opportunities to simplify how CI builds and stages docs. We’re tracking that refactoring separately in #3600 so this PR stays focused on the inventory fix.
Validation
Ran the inline Bash extracted from the final workflow against all four individual component layouts and the aggregate layout. Each staged payload matched the previous helper’s output byte for byte. Each simulated Pages overlay preserved the shared files and copied the versioned files. Removing the inventory exclusion reproduced the overwrite in all five cases.
Bash syntax, ShellCheck, and focused pre-commit passed on the inline change.
The earlier hosted 12.9.11 rehearsal exercised the same exclusions when they were implemented in the standalone helper. Hosted rehearsal
I downloaded the docs artifact and checked the same overlay that previously clobbered the shared inventory. The payload contains the versioned release note and a readable versioned Sphinx inventory with 4,078 entries. The shared objects.inv, latest/, and both selector files are absent from the payload. A local overlay on the pre-release Pages snapshot installed the versioned note and inventory and preserved the shared inventory, selectors, redirect page, and sampled latest files byte for byte.
The focused regression fails on the shared inventory overwrite with the exclusion omitted and passes with it in place, for both component and aggregate payloads. All 429 CI-tool tests and all-files pre-commit passed locally.
Reviewing files that changed from the base of the PR and between 96de201 and 65376e8.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Summary
Summary by CodeRabbit
Chores
Release documentation builds now remove latest, version metadata, and search index files from the documentation output, including the CUDA Bindings, CUDA Core, and CUDA Pathfinder sections.
Changes
The release workflow now removes shared documentation paths after assembling release artifacts. It removes latest, nv-versions.json, versions.json, and objects.inv from the documentation root and three component roots.
The all-docs and component-docs release branches no longer clean their build output before copying it. A release-only step removes shared paths from the assembled artifacts.
Assessment against linked issues
Objective
Addressed
Explanation
Preserve the shared root inventory and selectors in release deployments while retaining versioned inventories; allow main/latest deployments to update the shared inventory [#3518]
✅
Suggested reviewers:leofang, andy-jost
Change: Bug fix · Severity of issue fixed: Medium
Merge Risk: Minimal · previous review 96de2
Release deploys should no longer overwrite the shared docs inventory, selectors, or latest pages, while versioned pages and inventories are still published. No actionable merge-blocking risk was found.
Architecture risk: Low · up to 96de2
The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.
Changed systems: None identified.
Architecture concerns
No architecture-level concerns identified.
Review details
Before / after behavior
observed — Modified behavior in .github/workflows/build-docs.yml: The all-docs release branch no longer removes build/html/latest, nv-versions.json, or versions.json before copying its output into the artifacts directory.
observed — Modified behavior in .github/workflows/build-docs.yml: The component-docs release branch no longer removes build/html/latest, nv-versions.json, or versions.json before copying its output into the artifacts directory.
observed — Modified behavior in .github/workflows/build-docs.yml: Adds a release-only cleanup step after docs are assembled in artifacts/docs: it removes latest and the three shared files nv-versions.json, versions.json, and objects.inv from the docs root and the cuda-bindings, cuda-core, and cuda-pathfinder roots.
- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Reviewing files that changed from the base of the PR and between 21b9f33 and 96de201.
Files selected for processing: 1
.github/workflows/build-docs.yml
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.
To understand the impact of the bug fixed by this PR, I asked codex "What would happen if we deleted docs/objects.inv from gh-pages?"
codex GPT-6.2-Sol ultra:
Deleting docs/objects.inv from gh-pages would make the top-level inventory URL return 404. The rendered docs and version pickers would keep working.
The potential breakage is in future Sphinx builds. If another project configures intersphinx with https://nvidia.github.io/cuda-python/ as its base and leaves the inventory unspecified, Sphinx fetches that exact file. Losing it could leave cross-references unresolved or fail a build that treats warnings as errors. Sphinx configuration
I found no confirmed consumer of that exact file in CUDA Python or the public configurations I checked. For example, trtutils uses the metapackage inventory under latest/, and RMM uses the bindings inventory under cuda-bindings/. Both would keep working. trtutils configuration · RMM configuration
With the current build script, the next successful main docs deployment would recreate the top-level copy. Build script
The reason will be displayed to describe this comment to others. Learn more.
Minor findings:
The PR description talks about "two shared inventories", but the cleanup also covers cuda-core and cuda-pathfinder. Those had the same latent bug, for example a patch release built from an older tag. Mentioning this would make the scope clearer.
The cleanup also runs for tag CI builds in ci.yml, which have is-release: true and deploy-docs: false. Those builds only upload an inspection artifact, so this is harmless.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bugSomething isn't workingCI/CDCI/CD infrastructuredocumentationImprovements or additions to documentation
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
— codex on behalf of Ralf —
Description
The CUDA 12.9.11 bindings deployment replaced the shared
objects.invwith the release inventory while the sharedlatest/pages still described CUDA 13. This long-standing bug was easy to miss because a subsequentmaindeployment restores the shared inventories. This PR prevents that mismatch after a release.The two shared inventories on
gh-pagesare:docs/objects.invfor thecuda-pythonmetapackagedocs/cuda-bindings/objects.invforcuda-bindingsBoth docs build paths stage their output under
artifacts/docs/. After either path finishes, release staging omitslatest/, the selector files, andobjects.invat each staged component root. Versioned pages and their inventories stay in the payload. The deployment overlays the staged files ongh-pages, preserving the shared files published bymain.Closes #3518.
While working on this fix, we identified opportunities to simplify how CI builds and stages docs. We’re tracking that refactoring separately in #3600 so this PR stays focused on the inventory fix.
Validation
Checklist