Skip to content

[doc] Bump sphinxcontrib-openapi to 0.10.0 - #66957

Merged
dstrodtman merged 1 commit into
masterfrom
doc-1516-openapi-0-10-bump
Oct 13, 2026
Merged

dstrodtman merged 1 commit into
masterfrom
doc-1516-openapi-0-10-bump

Conversation

@dstrodtman

Copy link
Copy Markdown
Contributor

Description

Bumps sphinxcontrib-openapi, which renders the Ray Jobs REST API specification page, from 0.9.0 to 0.10.0, and regenerates the docs deplock.

0.10.0 fixes five upstream bugs, two of which this page's source comment named as blockers for request and response examples:

  • sphinx-contrib/openapi#166: :generate-examples-from-schemas: crashed on an allOf that targets a non-object schema, which is how JobDetails attaches descriptions to the JobType and JobStatus enums.
  • sphinx-contrib/openapi#165: :response-examples-for: and the other whitespace-delimited options were rejected as unknown options.
  • #173, #171, and #178: an operation summary written as a YAML block scalar rendered literal **, the old renderer's request body block was left unclosed, and the 3.0 renderer crashed on a non-object request body.

Examples still can't be enabled. With :generate-examples-from-schemas: on 0.10.0, the stop endpoint's 200 response, a bare JobStatus enum, renders as PENDING rather than "PENDING" under Content-Type: application/json. The http lexer rejects it, and the warning fails the build. That's sphinx-contrib/openapi#172, fixed for the httpdomain renderer on the open sphinx-contrib/openapi#185. This PR updates the source comment in api.md to name that bug instead of the two that are now fixed. The rendered page doesn't change.

What changes:

  • doc/requirements-doc.txt: sphinxcontrib-openapi==0.9.0 → 0.10.0.
  • python/deplocks/docs/docbuild_depset_py3.11.lock: regenerated with raydepsets. The diff is the one package block. 0.10.0 declares the same dependencies as 0.9.0, so there's no transitive churn.
  • doc/source/cluster/running-applications/job-submission/api.md: source comment only.

0.10.0 raises requires-python from >=3.10 to >=3.11. The only consumer is the docbuild depset, which is Python 3.11 on both Read the Docs and the docbuild-py3.11 CI image.

Related issues

Related to sphinx-contrib/openapi#172.

Additional information

Not a duplicate. No open PR touches sphinxcontrib-openapi or bumps this pin, and no open Dependabot PR targets doc/requirements-doc.txt.

Tests run:

  • bazelisk run //ci/raydepsets:raydepsets -- build ci/raydepsets/configs/docs.depsets.yaml --name docbuild_depset_311 regenerated the lock.
  • bazelisk run //ci/raydepsets:raydepsets -- build ci/raydepsets/configs/docs.depsets.yaml --check passed for all three docs depsets. The doctest lock is unchanged.
  • make -C doc rtd-build in a Python 3.11 venv installed from doc/requirements-doc.lock.txt: build succeeded., zero Sphinx warnings under -W. The rtd-doctor preflight confirmed the environment matches Read the Docs. The rendered Jobs API page has all 8 endpoints, including /stop.
  • The Jobs spec rendered standalone with openapi_default_renderer = "httpdomain" under -W: clean on 0.10.0 with no example options. With :generate-examples-from-schemas: it fails on the unquoted PENDING, which is the bug the updated comment describes.

AI assistance (Claude Code) was used to prepare this change. I reviewed every changed line.

🤖 Generated with Claude Code

0.10.0 fixes the two upstream bugs the Jobs API page named as blockers
for request and response examples (sphinx-contrib/openapi#165, #166).
Regenerate the docs deplock; the diff is the one package block.

Examples still can't be enabled: a schema-derived string example is
emitted without JSON encoding, which fails the http lexer under -W
(sphinx-contrib/openapi#172). Update the source comment in api.md to
name that bug instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman
dstrodtman requested review from a team as code owners October 13, 2026 17:15

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request upgrades the sphinxcontrib-openapi package from version 0.9.0 to 0.10.0 in both the requirements file and the Python 3.11 dependency lockfile. Additionally, it updates the documentation in api.md to revise the explanation of why request and response examples remain disabled, noting that while some previous issues were resolved, a new upstream bug still prevents enabling them. There are no review comments, and I have no feedback to provide.

@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Oct 13, 2026
@dstrodtman
dstrodtman merged commit 226d267 into master Oct 13, 2026
6 checks passed
@dstrodtman
dstrodtman deleted the doc-1516-openapi-0-10-bump branch October 13, 2026 17:54
elliot-barn added a commit that referenced this pull request Nov 19, 2026
…r required

release/requirements_py310.txt (the py_deps_py310 bazel lock and the
release-test launcher env) was not regenerated when the docs dropped
tensorflow (#65947) and swapped sphinx plugins (#66957), so it still pins
23 packages that nothing in requirements_py310.in or
requirements-doc.txt requires: the tensorflow/keras stack (tensorflow,
tf-keras, keras, tensorboard, h5py, absl-py, ...), sphinx-jsonschema,
sphinx-llms-txt, sphinxcontrib-redoc, pillow, werkzeug and wheel.

Recompiled with the same tool as //release:requirements_py310.update
(pip-tools 6.6.0 on pip 22.0.4 and python 3.10, --no-upgrade
--generate-hashes). The bazel target doesn't build on master
(rules_python no longer ships pip_compile.py), and requirements-doc.txt
can't resolve on python 3.10 (sphinx 8.2.3 and sphinxcontrib-openapi
0.10.0 need >=3.11). So for the compile, release/requirements-doc.txt
was replaced by the doc requirements at the versions already in the .txt,
then restored. No pins change and nothing is added. No bazel target or
release/ci code references the removed packages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
elliot-barn added a commit that referenced this pull request Nov 20, 2026
…r required (#68050)

## Description

`release/requirements_py310.txt` is the `py_deps_py310` Bazel lock and
the release-test launcher environment. It wasn't regenerated when the
docs dropped TensorFlow (#65947) and swapped sphinx plugins (#66957). It
still pins 23 packages that nothing in `requirements_py310.in` or
`requirements-doc.txt` requires anymore:

- **TensorFlow stack:** tensorflow, tf-keras, keras, tensorboard,
tensorboard-data-server, h5py, absl-py, astunparse, flatbuffers, gast,
google-pasta, libclang, ml-dtypes, namex, opt-einsum, optree, markdown,
werkzeug
- **Doc plugins:** sphinx-jsonschema, sphinx-llms-txt,
sphinxcontrib-redoc
- **Other:** pillow, wheel

This PR recompiles the file and removes them. No pin changes, and
nothing is added.

**Stacked on #68048** (idna and aiohttp security bumps), so the
recompile starts from the fixed floors. Merge #68048 first, then
retarget this PR to `master`.

### How it was recompiled

It uses the same tool and settings as
`//release:requirements_py310.update`: pip-tools 6.6.0 on pip 22.0.4 and
Python 3.10, with `--no-upgrade --generate-hashes`. The Bazel target
itself can't run on master for two reasons:

1. It doesn't build, because
`@rules_python//python/pip_install:pip_compile.py` no longer exists in
the rules_python version master uses.
2. `release/requirements-doc.txt` is a symlink to
`doc/requirements-doc.txt`, which now pins `sphinx==8.2.3` and
`sphinxcontrib-openapi==0.10.0`. Both need Python ≥3.11, so this Python
3.10 environment can't resolve them.

So during the compile, that symlink was temporarily replaced by the same
doc requirements at the versions already in the `.txt`, leaving out doc
packages the `.txt` doesn't have, and then restored. On
`releases/2.57.2`, the same procedure reproduces the existing file byte
for byte.

A longer-term fix is to drop `-r requirements-doc.txt` from this Python
3.10 environment, or move the environment to Python 3.11, and to repair
the Bazel target. I'll leave that for a follow-up.

## Related issues

Follow-up to #65947, #66957 and #68048.

## Testing

- No Bazel `ci_require`/`bk_require`/`requirement` or `@py_deps_py310_*`
reference and no import in `release/ray_release` or `ci/` uses the
removed packages.
- `uv pip install --dry-run --require-hashes` on Python 3.10 covers 198
packages, and a full resolve gives the same 198 with no conflicts.
Before this change, the full resolve needed one package the file didn't
pin.

AI assistance (Claude Code) was used to prepare this change.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants