Repository navigation
[doc] Drop the unused nevergrad intersphinx target and fix the annotation-resolution note - #66211
Merged
Merged
Conversation
…tion-resolution note Signed-off-by: Douglas Strodtman <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request removes the nevergrad entry from the Sphinx intersphinx_mapping configuration and updates the documentation guidelines to clarify how None and typing.* annotations are handled during the build process. A review comment suggests a minor rephrasing of the added documentation text to improve readability and technical precision regarding py:obj annotations.
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Douglas Strodtman <[email protected]>
elliot-barn
approved these changes
Sep 24, 2026
nadongjun
pushed a commit
to nadongjun/ray
that referenced
this pull request
Oct 6, 2026
…tion-resolution note (ray-project#66211) ## What Two intersphinx-hygiene changes, backed by a fresh usage measurement of the rendered docs corpus: 1. **Drop the `nevergrad` intersphinx target** and its committed inventory snapshot. A per-target census of the rendered master corpus (4,432 pages) shows `nevergrad` resolves **zero** cross-references. Its only mentions in the built site are internal links to Ray's own `NevergradSearch` API and prose, not generated cross-references. It was carrying a committed `.inv` snapshot and a standing refresh obligation for no reader-facing links, which is the same criterion the eight targets dropped in ray-project#65644 met. `refresh.py` reads the target list from `_intersphinx_targets` in `conf.py`, so removing the entry also drops it from the refresh cycle with no further change. 2. **Correct an over-general sentence in the contributor docs.** `ray-contribute/docs.md` stated that annotations which don't resolve "render as plain text; they don't fail the build." That is true for third-party types, which resolve as `py:class` and are covered by a blanket `nitpick_ignore_regex` entry, but false for `None` and `typing.*` annotations, which Sphinx emits as `py:obj`. Nothing ignores `py:obj` generically, so those build cleanly only because the `python` intersphinx target resolves them. The added clause prevents the sentence being generalized into "intersphinx is safe to strip," which would fail the `-W` build on thousands of `None`/`typing.*` references. ## Why this isn't a duplicate No open PR drops `nevergrad` or edits this sentence (checked `gh pr list --search` for `intersphinx`, `nevergrad`, and the `ray-contribute` annotations text). ray-project#65644 dropped eight other zero-resolution targets; this continues that hygiene on a target that has since regressed to zero. ray-project#65604 (dropping `pytorch_lightning`) is closed. ## Why this isn't trivial busywork It removes a committed binary snapshot plus a monthly refresh obligation on measured evidence, and it corrects a documented claim that could lead a contributor into a build-breaking change. The two edits share the intersphinx-resolution surface and land together rather than as separate one-line PRs. ## Tests Faithful local RtD build of this branch, mirroring the Read the Docs `-W` config: ``` python -m sphinx --keep-going -b html -d _build/doctrees -a -E -W -j auto -T -D language=en source _build/html ``` Result: `build succeeded.`, exit 0 (zero Sphinx warnings under `-W`). Post-build grep confirms `nevergrad` now resolves no markers and no `-W` failure was introduced by its removal (it resolved nothing before the drop, so nothing regressed). The Read the Docs PR-preview build is the authoritative gate and runs on this PR. ## AI assistance This change was prepared with AI assistance (Claude Code). The measurement, edits, and local build were reviewed by the submitter. --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Two intersphinx-hygiene changes, backed by a fresh usage measurement of the rendered docs corpus:
nevergradintersphinx target and its committed inventory snapshot. A per-target census of the rendered master corpus (4,432 pages) showsnevergradresolves zero cross-references. Its only mentions in the built site are internal links to Ray's ownNevergradSearchAPI and prose, not generated cross-references. It was carrying a committed.invsnapshot and a standing refresh obligation for no reader-facing links, which is the same criterion the eight targets dropped in [doc] Drop the eight intersphinx targets that resolve nothing #65644 met.refresh.pyreads the target list from_intersphinx_targetsinconf.py, so removing the entry also drops it from the refresh cycle with no further change.ray-contribute/docs.mdstated that annotations which don't resolve "render as plain text; they don't fail the build." That is true for third-party types, which resolve aspy:classand are covered by a blanketnitpick_ignore_regexentry, but false forNoneandtyping.*annotations, which Sphinx emits aspy:obj. Nothing ignorespy:objgenerically, so those build cleanly only because thepythonintersphinx target resolves them. The added clause prevents the sentence being generalized into "intersphinx is safe to strip," which would fail the-Wbuild on thousands ofNone/typing.*references.Why this isn't a duplicate
No open PR drops
nevergrador edits this sentence (checkedgh pr list --searchforintersphinx,nevergrad, and theray-contributeannotations text). #65644 dropped eight other zero-resolution targets; this continues that hygiene on a target that has since regressed to zero. #65604 (droppingpytorch_lightning) is closed.Why this isn't trivial busywork
It removes a committed binary snapshot plus a monthly refresh obligation on measured evidence, and it corrects a documented claim that could lead a contributor into a build-breaking change. The two edits share the intersphinx-resolution surface and land together rather than as separate one-line PRs.
Tests
Faithful local RtD build of this branch, mirroring the Read the Docs
-Wconfig:Result:
build succeeded., exit 0 (zero Sphinx warnings under-W). Post-build grep confirmsnevergradnow resolves no markers and no-Wfailure was introduced by its removal (it resolved nothing before the drop, so nothing regressed). The Read the Docs PR-preview build is the authoritative gate and runs on this PR.AI assistance
This change was prepared with AI assistance (Claude Code). The measurement, edits, and local build were reviewed by the submitter.