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
Upgrade documentation environments to Sphinx 9 - #2599
@mdboom I opened this draft PR for #2598. It updates the shared CI documentation environment from Sphinx <8.2.0 to Sphinx 9.x, along with the three component Pixi manifests and the local setup script. The local syntax and consistency checks pass; the full docs build is intended to run in CI because Pixi is not installed locally. Please let me know if you would like any changes, or if the team would prefer to handle this upgrade internally. Thanks!
I pushed a follow-up fix to the PR branch. The Sphinx 9 upgrade was leaving sphinx-toolbox on the conda-forge 4.1.2 line, which is incompatible with Sphinx 9. The docs environments now install sphinx-toolbox>=4.2.0 from PyPI consistently across Pixi, the shared conda environment, and the setup script. Local TOML/YAML parsing, shell syntax, and git diff --check pass. Could you please rerun CI when convenient?
conda-forge tops out at sphinx-toolbox 4.1.2, which does not support
Sphinx 9. Declaring the package in both [feature.docs.dependencies] and
[feature.docs.pypi-dependencies] leaves the conda 4.1.2 build in the
solve, so the >=4.2.0 requirement never takes effect. Drop the conda
entry in all three manifests, matching environment-docs.yml.
Signed-off-by: Aryan Putta <aryansputta@gmail.com>
Head is now 9d4fc2c6. Two changes since the last run:
1. Merged current main. The branch was 183 commits behind, which is what the red test matrix was actually reporting. Every Test * job failed at collection with:
ERROR collecting tests/test_utils.py
tests/test_utils.py::TestViewCPU::test_args_viewable_as_strided_memory_cpu: in "parametrize"
the number of names (1) must be equal to the number of values (3)
That is #2212 (tests: fix parametrize patterns rejected by pytest 9.1.0), which landed on main after this branch was cut, together with the pytest==9.1.0 pin in cuda_core/pyproject.toml. It has nothing to do with the docs environments. The one build failure, Build linux-64, CUDA 13.3.0 / py3.10, was a registry read error pulling the manylinux image:
short read: expected 71891324 bytes but got 2097153: unexpected EOF
##[error]cibuildwheel: Command ['docker', 'create', ... ] failed with code 1
The other 17 build jobs on that run passed. Because docs has needs: build-linux-64, the Docs job was skipped, so the Sphinx 9 build itself has not been exercised in CI yet. That is the result worth getting from the next run.
2. Dropped the conda sphinx-toolbox from the three Pixi manifests. My previous commit added sphinx-toolbox>=4.2.0 under [feature.docs.pypi-dependencies] but left sphinx-toolbox = "*" under [feature.docs.dependencies]. conda-forge tops out at 4.1.2, which does not support Sphinx 9, and cuda_core/pixi.lock confirms that is what currently resolves:
With the package declared on both sides the conda build stays in the solve and the >=4.2.0 constraint never takes effect. The manifests now match environment-docs.yml, which already took it from PyPI only.
One thing I cannot do locally: pixi.lock still records sphinx <8.2.0 and sphinx-toolbox 4.1.2. I do not have Pixi installed, so I have not regenerated the lock files. ci-pixi-source-test.yml does not pass --frozen, so it should re-solve rather than fail, but let me know if you want the locks regenerated in this PR and I will find a way to run pixi lock.
Follow-up: I installed Pixi and verified the solve. The result is stronger than I described above, so recording it here.
On the previous head 5e75843, the docs environment does not solve at all. Running pixi lock in cuda_core/:
Error: × failed to solve the pypi requirements of environment 'docs' for platform 'linux-aarch64'
├─▶ failed to resolve pypi dependencies
╰─▶ Because you require sphinx-toolbox>=4.2.0 and sphinx-toolbox==4.1.2, we
can conclude that your requirements are unsatisfiable.
help: The following PyPI packages have been pinned by the conda solve, and
this version may be causing a conflict:
sphinx-toolbox==4.1.2
Pixi pins the PyPI resolution to whatever the conda solve chose, so declaring sphinx-toolbox in both [feature.docs.dependencies] and [feature.docs.pypi-dependencies] is not merely redundant, it is unsatisfiable. Dropping the conda entry is required, not a cleanup.
On the current head 9d4fc2c6 the solve succeeds and produces what the upgrade is aiming for:
The regenerated lock stays at version: 7, matching the format the pinned PIXI_VERSION: "v0.73.0" in ci-pixi-source-test.yml expects.
I have not committed the regenerated pixi.lock files. My local Pixi is 0.76.2 and CI pins 0.73.0, and I would rather not land a 20k-line lock diff written by a different Pixi than the one the repo standardizes on. The three pixi.lock files therefore still record sphinx <8.2.0 and sphinx-toolbox 4.1.2, which is now out of step with the manifests. Given #2532 relocked in-repo after #2384, I assume you want them regenerated. Say the word and I will install Pixi 0.73.0 and push the locks, or leave it to whoever runs the relock normally.
Docs / Build docs uses cuda_python/docs/environment-docs.yml through conda rather than Pixi, so the CI docs build is a separate path from the above and still needs a run to confirm. @mdboom
Updated documentation build environments across the project to use Sphinx 9.x and sphinx-toolbox 4.2 or later.
Adjusted how documentation tools are installed, including moving pyclibrary to the main dependency list in one documentation environment.
Documentation environment definitions and the setup script now require Sphinx >=9,<10 and install sphinx-toolbox >=4.2.0 through pip. The Python docs environment also moves pyclibrary to the main dependency list.
The documentation environments now specify Sphinx >=9,<10 and install sphinx-toolbox >=4.2.0 through pip. The Python docs environment moves pyclibrary to the main dependency list.
Assessment against linked issues
Objective
Addressed
Explanation
Upgrade Sphinx to version 9.x [#2598]
✅
Confirm the upgrade does not break documentation [#2598]
❓
The provided change summaries contain no compatibility test results.
Out-of-scope changes
Code Change
Explanation
Move pyclibrary to the main dependency list (cuda_python/docs/environment-docs.yml:18-27)
The linked objective concerns upgrading Sphinx. It does not specify changing the placement of pyclibrary.
Suggested labels:dependencies
Suggested reviewers:leofang, mdboom, cpcloud
Change: Other
Merge Risk: Moderate · up to 355d6
The documentation environments now declare Sphinx 9, but the Pixi lockfiles still pin the older Sphinx and Toolbox versions. Locked docs builds will not pick up the upgrade, and the Sphinx 9 docs build has not yet run in CI. Regenerate and validate the lockfiles with the pinned Pixi version, then confirm the docs build passes, before merging.
Architecture risk: Low · up to 355d6
The change affects 6 source areas.
For cuda-core documentation builds, the environment now provides sphinx-toolbox through pip at version 4.2.0 or newer so the unchanged Sphinx configuration can load its extension; compatibility with the Sphinx 9 constraint still needs validation.
Reviewing files that changed from the base of the PR and between 1c9ed66 and 355d689.
Files selected for processing: 6
cuda_bindings_12/pixi.toml
cuda_bindings_13/pixi.toml
cuda_core/pixi.toml
cuda_pathfinder/pixi.toml
cuda_python/docs/environment-docs.yml
toolshed/setup-docs-env.sh
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 10 remain after this review.
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
cuda.bindingsEverything related to the cuda.bindings modulecuda.coreEverything related to the cuda.core modulecuda.pathfinderEverything related to the cuda.pathfinder module
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.
Summary
Changes
>=9,<10incuda_bindings,cuda_core, andcuda_pathfinder.sphinx-toolbox>=4.2.0to the Pixi PyPI dependencies so Pixi does not pin the incompatible conda-forge 4.1.2 package.cuda_python/docs/environment-docs.ymlandtoolshed/setup-docs-env.sh.Validation
pre-commit.cipasses on the refreshed branch.bash -n toolshed/setup-docs-env.shpasses.git diff --checkpasses.Remaining validation
/ok to test.Closes #2598.