Repository navigation
[doc] Update contributor CI docs for the docstring examples step and per-page doctest targets - #67204
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates several documentation files to reflect recent CI changes, including label-driven test selection, post-merge link checking, running docstring examples in a lightweight image, local Vale execution, and instructions for adding page examples or configuring GPU testing in Bazel. A minor grammatical typo was identified in writing-code-snippets.md regarding the description of the doc_prose_doctest_targets lint check.
This was referenced Oct 26, 2026
elliot-barn
pushed a commit
that referenced
this pull request
Oct 28, 2026
…label rules (#67341) > [!IMPORTANT] > Draft until rayci ships label rules ([rayci#510](ray-project/rayci#510), [rayci#511](ray-project/rayci#511)) and this PR bumps `.rayciversion` to that release. Don't merge it before then: today's rayci ignores `*.labels.yaml`, so removing the per-step gates would stop the `docstring-only` label from skipping Ray Data's suites. ## Why are these changes needed? The `docstring-only` and `docs-example-test` labels gate steps with Buildkite `if:` conditions, which Buildkite evaluates after rayci has selected the steps and marked their dependencies. That causes two problems: - **Images build for steps that don't run.** An unlabeled prose PR builds the 5 images only the opt-in step needs. An unlabeled Python PR builds `docstringbuild` for `doc: docstring examples`. - **`docstring-only` covers only Ray Data.** Each skipped step needs its own negated `if:`. Extending the label means a gate on nearly every premerge test step, and a new step that forgets one silently runs under the label. rayci#510 and #511 let PR labels adjust step selection before dependency marking, through rules in `.buildkite/*.labels.yaml`. This PR adopts them. ## What changes - **Adds `.buildkite/docs.labels.yaml`** with the following rules: - `docstring-only` keeps only steps tagged `always`, `lint`, `doc_api`, or `docstring_examples`. That's the same set a labeled Data PR runs today (`doc/source/ray-contribute/ci.md`): the docstring examples step, the two API surface checks, lint, and the scope guard, which is tagged `always`. It now applies to every library, not just Ray Data. Without the label, it skips `doc: docstring examples`. - `docs-example-test` skips the opt-in step without the label. - **Tags the two steps** in `others.rayci.yml`: `docstring_examples` on `doc: docstring examples`, and `doc_example_optin` on `doc: docs example tests (opt-in)`. - **Removes the 10 negated `docstring-only` gates** from `data.rayci.yml`. - **Keeps the positive `if:` gates** on the examples step, the opt-in step, and the scope guard. They're redundant now, but they show a reader of the step why it's label-gated. ## Behavior change to review Under `docstring-only`, examples that need torch or TensorFlow are reported as skipped by the light examples image, and their library's `doctest()` target is skipped with the rest of the suites. Today that's true only for Ray Data. With this PR it's true for every library, so those examples get no premerge coverage on a labeled PR. `ml: data integration tests`, which #67237 gates with its own `if:`, is also covered by the keep-only rule, so that gate becomes redundant. ## Duplicate check No open PR adopts rayci label rules, which don't exist yet in a release. Related open PRs: #67237 adds a `docstring-only` gate to `ml: data integration tests`, and #67204 rewrites the `docstring-only` section of `ci.md`. The `ci.md` update for this change (the label covering every library) waits until #67204 lands, to avoid conflicting with it. ## Testing I generated the premerge pipeline locally with a Linux build of rayci #510 and #511 against this branch. Each row simulates a PR that changes one file: | Simulated PR | rayci v0.50.0 on master | This branch, unlabeled | This branch, labeled | |---|---|---|---| | Doc prose (`doc/source/data/aggregating-data.md`) | 11 steps | 5 steps: the opt-in step and the 5 images only it needs drop | 11 steps with `docs-example-test` | | Ray Data docstring (`python/ray/data/dataset.py`) | 51 steps | 49 steps: `doc: docstring examples` and `docstringbuild` drop | 19 steps with `docstring-only` | | Core docstring (`python/ray/actor.py`) | 165 steps | 163 steps: the same 2 drop | 19 steps with `docstring-only` | The 19 labeled steps are test-rules, the lint steps, the scope guard, both API surface checks, `doc: docstring examples`, and their images. Apart from the two dropped steps, unlabeled pipelines are identical to v0.50.0 on master. `pre-commit run` on the changed files passes. Once a rayci release exists, the `.rayciversion` bump goes here and premerge runs with and without each label. This PR was prepared with AI assistance (Claude Code). It stays in draft until a human review of every changed line and a premerge run on the release. --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
…per-page doctest targets - ci.md: the docstring-only examples step is now `doc: docstring examples`, covering every library's changed modules in the light docstringbuild image (#67083). The label still skips only Ray Data's suites. - writing-code-snippets.md: replace the GPU guidance that showed a nonexistent glob catch-all in doc/BUILD with the per-page doctest_each lists (#66809, #67003), and say how a page with a new runnable example joins CI. - docs.md, writing-style.md: the Vale CI check is temporarily off. - ci/ray_ci/doc/README.md: describe the label-driven test selection scripts and the linkcheck report. - doc/README.md: linkcheck does run in CI, after merge, as a soft-fail step. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> Signed-off-by: Douglas Strodtman <[email protected]>
…s in ci.md Add a section on why label-gated steps show as broken: on a build that selects them without their label, including scheduled post-merge builds, and Ray Data's test steps under the docstring-only label. Distinguish the two kinds of post-merge build on master. The build each merge starts doesn't run the docs example tests. The scheduled builds that the release automation triggers run the full suite, so the page now says "scheduled post-merge builds" wherever it means those. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
The docstring-only label now skips every library's test suites through .buildkite/docs.labels.yaml (#67341). Update the contributor CI page to match, recommend an @rtd-build commit line alongside the label, and describe which label-gated steps still show as broken. Signed-off-by: Douglas Strodtman <[email protected]>
dstrodtman
force-pushed
the
djs-261020-ci-docs-refresh
branch
from
October 28, 2026 20:52
07199f5 to
8ccabd0
Compare
elliot-barn
approved these changes
Oct 29, 2026
dstrodtman
added a commit
that referenced
this pull request
Oct 30, 2026
## Description
This PR retires the notebook authoring templates and the contributor
guidance that points new examples at notebooks.
`doc/source/_templates/template.ipynb` is a Jupyter starter for new doc
examples. It isn't a page, because `templates_path` keeps `_templates/`
out of the source files Sphinx reads. Nothing includes it, and no bazel
target runs it. Its MyST sibling, `template.md`, is out of date. It
imports `ray.rllib.agents.ppo`, demos `{eval-rst}` and `{margin}`, and
teaches `{code-cell}` notebooks that no build or test target executes.
The "Creating a notebook example" section of the contributor guide links
both templates, tells contributors to download the page as an `.ipynb`,
and recommends converting their draft to `.ipynb` when they finish.
This PR deletes the Jupyter template and turns `template.md` into a
template for an end-to-end guide written as an ordinary MyST page. The
contributor guidance now says that a guide like this is a Markdown page
its author ran, not a tested asset, and sends examples that need testing
to the template-collections flow. The template and guidance changes come
from #67428, which merged into this branch.
### What this PR changes
- Deletes `doc/source/_templates/template.ipynb`.
- `doc/source/_templates/template.md`: rewrites it as an end-to-end
guide skeleton. It uses only MyST, sphinx-design (`tab-set`,
`dropdown`), colon-fence admonitions, and `{ref}` and `{py:func}` roles,
with no myst-nb notebook syntax. A maintainer-only HTML comment under
the title records that Ray CI doesn't test the guide and which Ray
version its author last ran it with. The example code is a minimal Ray
Core task. Sphinx still excludes the file through `_templates/`.
- `doc/source/ray-contribute/docs.md`:
- Replaces "Creating a notebook example" (label
`creating-notebook-example`) with "Writing an end-to-end guide"
(`writing-e2e-guide`). The new section points to the template and says
Ray CI doesn't run the guide's code, so the author runs every step and
records the Ray version. It sends tested examples to the
template-collections flow and says not to add notebooks or notebook
front matter. To convert an existing notebook, it gives `jupyter
nbconvert --to markdown`.
- Removes what the old section taught: the Jupyter template link,
downloading the page as an `.ipynb`, the Tune Hyperopt notebook as a
model, the kernel specification front matter, `code-cell` examples, cell
tags, reference labels, removed-cell testing, and the `jupytext`
conversions. It also drops the claim that CI tests every notebook placed
in the Tune `examples` folder.
- Updates the format overview and the "two types of documents" list so
they no longer present notebooks as the format for new examples.
- "Adding code to an `.rST` or `.md` file": drops the claim that every
snippet is tested and the `.. code-cell:: python` recommendation. Tested
code uses `testcode` or a `literalinclude` script, and code that CI
can't run goes in a plain fenced block.
- Links "How to write code snippets" by its `.md` file name.
- "Writing an end-to-end guide": offers an `examples.yml` gallery only
for Ray Data, Ray Serve, and Ray Train, the only libraries that have
one. `conf.py` marks gallery-linked pages as orphans, so the page needs
no `orphan` front matter. It also says what `nbconvert` does with
outputs and images.
- Replaces "Every Python file in the `doc_code` directory is
automatically tested." Some files and directories have no target in
`doc/BUILD.bazel`, so it now tells contributors to check that a target
covers their script.
- `doc/source/ray-contribute/writing-style.md`, "Code blocks": replaces
"Every runnable snippet in the docs is tested." It now names the two
tested forms, a `testcode` block on a page with a doctest target in
`doc/BUILD.bazel` and a `doc_code/` script included with
`literalinclude`. It limits both to code that runs as written and that
CI should test, and says CI doesn't run a plain fenced block. Since
#67432, no documentation page runs a `>>>` example, and #67429 updates
`writing-code-snippets.md` to match.
- `doc/source/ray-contribute/publishing-examples-legacy.md`: takes over
the cell-tag guidance (`hide-*`, `remove-*`, and overriding realistic
values in a removed cell), rewritten for `.ipynb` cell metadata. It
applies only to the remaining in-tree notebooks.
- `doc/source/ray-contribute/publishing-examples.md`: repoints its
cross-reference to `writing-e2e-guide`. No reference to the old label
remains.
- `.buildkite/test.rules.txt`: deletes the `doc/source/_templates/` skip
rule. It existed to keep `template.ipynb` off the `doc/*.ipynb`
catch-all. Every remaining file under `_templates/` (`.html`, `.rst`,
`.md`, `.gitkeep`) gets the same tags without it: `.md` and `.rst` files
hit the leading prose skip first, and the rest fall through to the broad
`doc/` skip.
- `.buildkite/test.rules.test.txt`: replaces the `template.ipynb` case
with `doc/source/_templates/layout.html:`.
### Merge-order note for #67012
#67012 adds `doc/asset_allowlists/notebooks.txt`, which lists
`doc/source/_templates/template.ipynb`, and its check fails on an entry
whose file is gone. Neither PR depends on the other, and they merge
without textual conflicts. Whichever merges second deletes that line. If
this PR merges first, `python doc/test_doc_assets.py --update` on #67012
removes it. With this branch, current master, and #67012 merged
together, the check fails only on that line and passes once it's
deleted.
## Related issues
Includes #67428, which merged into this branch. #67429 is stacked on
this branch, and #67639 is stacked on #67429. #67639 limits the legacy
notebook page to maintaining the two remaining notebook examples.
Follows #67008, which rewrote the same comment blocks in
`test.rules.txt` and `test.rules.test.txt`, and #66974, which moved
never-run `testcode` blocks to plain code blocks.
## Additional information
### Duplicate check
I searched open PRs for `template.ipynb`, `template.md`, `_templates`,
`notebook template`, `end-to-end guide`, `creating-notebook-example`,
`ray-contribute/docs.md`, `writing-style.md`, and `publishing-examples`,
then compared the files each docs PR in the results changes with this
PR's. No open PR removes either template or rewrites these sections. The
open PRs that touch the same files edit other hunks:
- #66462 and #67012 edit `test.rules.txt` and `test.rules.test.txt`.
Each merges with this branch without conflicts. #67204, which edited
`docs.md` and `writing-style.md`, has merged, and this branch is rebased
on it.
- #67018 edits a section of `writing-style.md` about 170 lines below
this PR's hunk.
- #67429 and #67639 are stacked on this branch.
### Testing
On this branch's head, rebased on master on 2026-10-30:
- `rayci test-rules`, using v0.51.0, the version `.rayciversion` pins,
built from `ray-project/rayci`: 197/197 cases pass, and the check also
passes with the branch merged with current master. Changing the new
`layout.html` case to expect `doc` makes it fail, so the case is live.
- Routing equivalence: I added every file under `doc/source/_templates/`
as a case that expects no tags. `rayci test-rules` passes both with and
without the deleted rule. The only file whose routing the rule changes
is `template.ipynb`, which routes to `doc_example` without it.
- `pre-commit run --files` on the changed files passes, including the
check that links to files on master resolve.
- `vale` on the changed pages: `docs.md` goes from 98 alerts to 71, and
the other pages stay level or drop. The only new alerts are spelling
flags on "toctree" and "doctest", terms these guides already use, and a
passive-voice flag on an unchanged sentence in `docs.md`.
- `jupyter nbconvert your-example.ipynb --to markdown`, with nbconvert
7.17.2 on a copy of a Tune notebook, writes a Markdown file with
`python` code fences and no Jupyter front matter.
- The Read the Docs preview renders "Writing an end-to-end guide", the
`writing-e2e-guide` references in `docs.md` and `publishing-examples.md`
resolve to it, and the legacy page renders "Hide and remove cells".
From #67428:
- The template's example code, run with `ray[default]` 2.59.0 on Python
3.11, prints `[0, 1, 4, 9]`.
- A copy of the template with its placeholders filled in builds without
warnings using Sphinx 8.2.3, myst-parser 5.1.0, sphinx-design, and the
`myst_enable_extensions` from `conf.py`. The tab set, dropdown, and tip
render.
This PR was prepared with AI assistance (Claude Code), including the
commits from #67428. Each author reviewed every line they changed.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Signed-off-by: Ronny Roland <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Douglas Strodtman <[email protected]>
dstrodtman
added a commit
that referenced
this pull request
Oct 30, 2026
## Description Stacked on #67426. #67639 is stacked on this PR. `writing-code-snippets.md` presents *doctest-style* (`>>>`) examples as an equal choice for docstrings and documentation pages. In practice, documentation pages don't use them. When this PR opened, 7 Markdown or rST pages under `doc/source/` had a `>>>` prompt, and only two of them ran it on purpose. #67432 has since converted those page examples to `testcode` and plain code blocks. On `master`, only `writing-code-snippets.md` and `getting-involved.md` have `>>>` prompts, and both teach the docstring format. This PR makes the guidance match: `>>>` doctest examples belong in docstrings, and documentation pages use `testcode` or `literalinclude`. ### What this PR changes - `doc/source/ray-contribute/writing-code-snippets.md`: - Front matter description and "Types of examples": *doctest-style* is for docstrings, and the other two types are for documentation pages. - The *doctest-style* example now uses the docstring `Example:` form instead of `.. doctest::`. The tip about dropping `.. doctest::` in docstrings becomes a note not to use *doctest-style* on documentation pages. - "Which type of example should you write?": where the example lives decides the style. The *doctest-style* and skip examples use the docstring form, and "When to use *code-output-style*" covers page examples that show output. - Leaves the GPU section alone, because #67204 rewrote it. - `doc/source/ray-contribute/writing-style.md`, "Code blocks": adds "Reserve `>>>` doctest-style examples for docstrings." This doesn't change `doc/BUILD.bazel`, `doc/test_prose_doctest_targets.py`, or any page with `>>>` examples. ## Related issues Stacked on #67426. Builds on #66974, which moved never-run `testcode` blocks to plain code blocks. ## Additional information ### Duplicate check I searched open PRs for `writing-code-snippets`, `doctest`, and `testcode`. #67204 also edits `writing-code-snippets.md` and `writing-style.md`, in other hunks. `git merge-tree` against it reports no conflicts. No open PR changes when to use *doctest-style*. ### Testing - The census: `git grep -c '^\s*>>> '` over `doc/source/*.md` and `*.rst` on `upstream/master`, then each page's enclosing blocks and its listing in `doc/BUILD.bazel` and `UNTESTED`. - `python doc/test_prose_doctest_targets.py` passes: "73 listed pages; every runnable page is accounted for." - `pre-commit run --files` on the changed files passes. - `vale` on `writing-code-snippets.md`: no new alerts except spelling flags on *literalinclude*, which the page already uses throughout. - The Read the Docs preview covers rendering. This PR was prepared with AI assistance (Claude Code). I reviewed every changed line. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
dstrodtman
added a commit
that referenced
this pull request
Nov 3, 2026
…ttings in the examples runner (#67237) ## Description Follow-ups to the `docstring-only` label (#66814, #67083) after its first real campaign PRs on Ray Data. They're bundled into one PR because they share files and all need ray-ci review. Stacked on #67204, which updates the contributor docs this PR edits. 1. **Skip polars examples by name instead of marking them render-only.** `Dataset.join` needs `polars`, which the light `docstringbuild` image doesn't install, so #67202 marked the docstring `+SKIP_EXAMPLE`. That also stopped it from running in `//python/ray/data:doctest`, whose image installs polars through `test-requirements.txt`. This PR adds `polars` to `OMITTED_LIBRARIES` and removes the flag. The examples step now reports `SKIP Dataset.join (needs polars)`, and Data's target runs the three `join` examples. - Polars isn't added to the image. `polars==1.40.0` plus `polars-runtime-32==1.40.0` is a 57 MB x86_64 wheel and about 195 MB installed, larger than pyarrow at 136 MB, for one docstring. Every current extra is 21 MB or less. - **lance, the same way.** `Dataset.write_lance` needs `lance`, from the `pylance` distribution. It's about 138 MB installed on Linux aarch64, for one docstring, and Data's doctest image installs it through `data-test-requirements.txt`. This PR adds `lance` to `OMITTED_LIBRARIES`, so the examples step reports `SKIP Dataset.write_lance (needs lance)`. #67238, stacked on this PR, converts that docstring and `write_sql`'s from `testcode` to `>>>`. - **LightGBM and XGBoost, the same way.** `ray.tune.integration.lightgbm` and `.xgboost`, and Ray Train's LightGBM and XGBoost modules, import these at module level. The image installs neither, so a `docstring-only` change to one of those modules failed the examples step at import, even though Tune's examples there are render-only (`+SKIP_EXAMPLE`) and Train's are still `testcode`. The ML images install both through `python/requirements/ml/core-requirements.txt`, which meets the omit rule in item 2. The step now reports `SKIP python/ray/tune/integration/lightgbm.py (module needs lightgbm)`, and likewise for `xgboost`. #67619, stacked on this PR, converts those two Tune examples. 2. **Write the inclusion rule into `docstring-examples-requirements.txt`.** The header now states when to add a library to the image and when to omit it by name. Each entry names the APIs whose examples need it, so it can go once those stop needing it. Comment-only. `raydepsets --check` reports the locks unchanged. 3. **Apply Ray Data's doctest settings in the runner.** `doctest_pytest_plugin.py` sets `preserve_order` and turns off `print_on_execution_start` for every Data docstring. The runner applied neither, so an order-dependent example could pass in its target and flake in the step. It now applies both to `ray.data` modules and restores them after each docstring. 4. **`ml: data integration tests` under the label.** This PR originally added a negated `if:` gate to it. #67341 merged the `docstring-only` keep-only rule in `.buildkite/docs.labels.yaml`, which drops this step with every other library test step, so the gate is removed and `ml.rayci.yml` is unchanged. 5. **Count the output a render-only docstring hides.** `+SKIP_EXAMPLE` skips a whole docstring, so expected output inside it is never checked. The skip line now names how many such examples there are. Across `python/ray` at this commit, 26 docstrings carry the flag, and only `Dataset.join` had expected output, which item 1 makes runnable. So the count is a signal rather than a failure: a render-only example can legitimately show sample output, such as for an external service. 6. **`check_docstring_only.py --base` diffs from the merge base.** It diffed against the ref literally. After master moved past the branch point, `--base upstream/master` flagged files the PR never touched. The CI path, which already used the merge base, is unchanged. This matches `run_docstring_examples.py`, and the `ci.md` instructions drop the manual `git merge-base` wrapper. 7. **Stale comments.** The `doc_example` prose rule's comment in `test.rules.txt` said an unlabeled prose PR still builds the opt-in step's images. Since #67341, the `docs-example-test` label rule drops the step before dependency marking, so the comment now says that. The `doc: doctest` comment in `others.rayci.yml` still called `//doc:doctest` the catch-all target, but #67003 split it into per-page `team:none` targets. The `docstring examples` comment now names the omitted libraries. It also said Buildkite drops the step on an unlabeled PR that selects it, but Buildkite shows it as `broken`, and that the skipped Ray Data examples run in "postmerge", which now says the scheduled postmerge builds, since the build each merge starts doesn't run them. ## Related issues Related to #66814, #67083, #67202, and #67204. #67238 and #67619 are stacked on this PR. ## Additional information **Not a duplicate.** I searched open PRs for `run_docstring_examples`, `check_docstring_only`, `docstring-only`, `OMITTED_LIBRARIES`, and `data integration tests`. Only #67204, which this stacks on, touches these files, and it changes docs only. **Tests run** - `bazel test //ci/ray_ci/doc:test_run_docstring_examples //ci/ray_ci/doc:test_check_docstring_only`: both pass. New cases cover: - The `Dataset.join` polars message. - The hidden-output count. - The Data settings, applied and restored, and left alone for other modules. - `--base` against a base that moved past the branch point. - `missing_library` for `lightgbm` and `xgboost` module-level imports. For that commit I ran the suite with `pytest` directly rather than through Bazel: 33 passed. - `run_docstring_examples.py` on `dataset.py`, `aggregate.py`, and `read_api.py`. I ran it in an aarch64 image built from `docstring_examples_depset_py3.10.lock`, without `decord` (no aarch64 wheel) and `ray-haproxy`, with the Ray nightly at `093faf5583e`. - 114 docstrings ran, and `Dataset.join` skipped for polars. - The one failure is `read_videos`, which needs decord. The x86_64 CI image installs it. - With polars installed, `Dataset.join` passes, and 115 docstrings run. - With the Data settings, `Starting execution of Dataset` lines drop to zero, and all 18 `aggregate.py` docstrings pass. - `run_docstring_examples.py` on `ray.tune.integration.lightgbm` and `.xgboost` from #67619, in a Python 3.12 virtualenv with `ray[tune]==2.59.0` and neither library installed: both modules skipped by name, 0 failed. Before this change, both failed at import. - `bazel run //ci/raydepsets:raydepsets -- build ci/raydepsets/configs/docs.depsets.yaml --check`: lock files are up to date. - `pre-commit run` on the changed files: passes. - `rayci` v0.50.0 pipeline generation for a labeled Data docstring PR on this branch, as above. This PR's own premerge runs the Data and ML suites, because it changes `dataset.py`. That run is also the check that Data's doctest image has polars. AI assistance (Claude Code) was used for this PR. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Why are these changes needed?
Several contributor-facing CI docs fell behind the docs CI changes that merged this month.
ci.md, "Docstring-only changes." The section still describeddata: docstring examplesand said the examples step covers Ray Data only. Since [ci] Run docstring-only examples for every library in a light image without torch or TensorFlow #67083,doc: docstring examplesinothers.rayci.ymlruns the changed modules'>>>examples for every library that a CPUdoctest()target covers. It runs in the lightdocstringbuildimage, which has no torch or TensorFlow, and reports examples that need those libraries as skipped, by name. Since [ci] Gate the docstring-only and docs-example-test labels with rayci label rules #67341, the label also skips every library's test suites through.buildkite/docs.labels.yaml, so the section now says that, and recommends an@rtd-buildcommit line alongside the label so Read the Docs builds the API reference the docstrings render into.ci.md, broken steps and post-merge builds. A new "Why some steps show as broken" section says that on a PR the label rules remove the steps a label skips, so they don't appear at all, that the scope guard is the one label-gated step still shown asbrokenon an unlabeled PR, and that scheduled post-merge builds don't apply label rules, so all three label-gated steps show asbrokenthere. The page also distinguishes the two kinds of post-merge build onmaster. The build each merge starts doesn't run the docs example tests, and the scheduled builds that the release automation triggers run the full suite, so the page now says "scheduled post-merge builds" wherever it means those.writing-code-snippets.md, "How to test examples with GPUs." It told readers to opendoc/BUILDand exclude their page from aglob(["source/**/*.rst"])catch-all target. Neither exists: [ci] Split library prose doctests into per-file targets so the docs-example-test opt-in can run them #66809 and [ci] Give every runnable doc page its own doctest target #67003 replaced library-wide prose targets with per-pagedoctest_each()lists. The steps now show both cases: a doc page moves from its library'sdoctest_eachlist to the GPUdoctestrule, and a docstring module moves from the CPU glob'sexcludeto the GPU rule. A new short section says how a page with its first runnable example joins CI, which thedoc_prose_doctest_targetslint enforces.docs.mdandwriting-style.md. Both said CI enforces Vale. Thedocumentation_stylecheck is out of thelint.rayci.ymlmatrix for now, so they say the check is temporarily off.ci/ray_ci/doc/README.md. It described only the doc build and the API guard. It now covers the scripts behind thedocs-example-testanddocstring-onlylabels andlinkcheck_report.py.doc/README.md. It said CI doesn't run linkcheck. The postmergedoc: linkcheckstep does, as a soft-fail step that never blocks.Docs-only. No CI or behavior changes.
Related issue number
None. Follows #66806, #66809, #66814, #67003, and #67083.
Duplicate check
Not a duplicate.
gh pr list --repo ray-project/ray --state opensearches for"ci.md docstring","writing-code-snippets", and"ci/ray_ci/doc README"return two other open PRs that touch these files, both mine, neither covering these sections:writing-code-snippets.mdat the same insertion point as this PR's new section, so whichever merges second needs a trivial rebase.ci.md, not the docstring-only section.Testing
masterat 3ae1b8b:.buildkite/others.rayci.yml,.buildkite/data.rayci.yml,.buildkite/lint.rayci.yml,.buildkite/doc.rayci.yml,doc/BUILD.bazel,python/ray/train/BUILD.bazel(the GPU rule examples are copied from the realdoctest[train-gpu]andpy_doctest[train-gpu]rules),doc/test_prose_doctest_targets.py, and the scripts underci/ray_ci/doc/.pre-commit runon the changed files passes, including the master-link check.AI assistance (Claude Code) was used to find the stale text and draft the changes. I reviewed every changed line.
🤖 Generated with Claude Code