Repository navigation
[ci] Give every runnable doc page its own doctest target - #67003
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request refactors the documentation doctest system by replacing broad glob patterns with explicit lists of markdown files in doc/BUILD.bazel and .buildkite/test.rules.txt. It also updates the doc/test_prose_doctest_targets.py linter script to scan all documentation pages under doc/source, including those not owned by any library (categorized under team:none). The review feedback suggests making the regular expressions in the linter script more robust to handle trailing spaces or comments, and stripping comments from BUILD.bazel calls to avoid matching commented-out file paths.
ronny-anyscale
approved these changes
Oct 14, 2026
edoakes
pushed a commit
that referenced
this pull request
Oct 15, 2026
…xample-test opt-in can run them (#66809) ## Why are these changes needed? With #66806, the `docs-example-test` label runs only per-file doc test targets. Prose outside Ray Data sits in one `doctest()` target per library, so the label can't run a changed Core, RLlib, Serve, or Train page. This PR splits those targets into per-file targets. Pages with nothing runnable drop out instead of becoming targets that pass without testing anything, because `bazel/pytest_wrapper.py` turns an empty collection into a pass. ### Decision for CI reviewers: what the routing costs Splitting the targets also means deciding how prose reaches the opt-in step. This PR routes all prose under `doc/source/` to `doc_example`. The alternative is a rule that names each page with a per-file target. That costs no compute, but it moves every page rename, move, or page gaining or losing a runnable block into `test.rules.txt`, which only `@ray-project/ray-ci` can approve. With #67003 that list grows to about 70 pages, during a docs rename campaign. Routing all prose keeps those edits in `doc/BUILD.bazel`, under the `/doc/` CODEOWNERS rule. **The cost.** rayci marks a selected step's `depends_on` chain before Buildkite evaluates the step's `if:` label guard, and wanda image steps can't take `if:`. So every build of a PR that touches prose under `doc/source/` schedules the opt-in step's 5 Python 3.10 image jobs, `oss-ci-base_test`, `oss-ci-base_build`, `doctestbuild`, `ray-core-build`, and `ray-dashboard-build`, even though the step itself is dropped. They're expected to be cache hits. The count comes from simulating PR builds with rayci v0.48.0. Master already pays this today for Ray Data prose, which this rule replaces. **How often.** Of the 403 PRs merged from 2026-09-16 to 2026-10-13, 111 touched prose under `doc/source/`, about 28 a week. For most of them the images already build for other reasons. 34, about 8 a week, changed nothing but `doc/` prose and images, so the 5 jobs are pure added cost on every build of those PRs. Any of these answers leaves something worth merging: | If CI reviewers prefer | What merges | After that | |---|---|---| | Accepting the 5 cached image jobs | This PR as written | Nothing. Routing doesn't change again. | | Fixing it in rayci, so that a label-gated step that's dropped doesn't pull in its dependencies | This PR as written | After the rayci release, the opt-in step gets the `always` tag and the `doc_example` prose rule is deleted. | | Neither | The per-page list instead, from the `doc-1708-per-file-doctests-literal` branch | Page renames and moves keep editing `test.rules.txt`. | The `doc-1708-per-file-doctests-literal` branch is this PR's previous head, so switching back is a reset, not a rewrite. ### Which pages get a target I ran real pytest collection for every prose page under the five library directories, with the pinned `pytest==7.4.4` and the `ray-project/pytest-sphinx` fork, as the `doctest` macro does: | Library | Prose files | Collect a test | Per-file targets after existing excludes | |---|---|---|---| | Core | 102 | 18 | 16 | | RLlib | 47 | 19 | 19 | | Serve | 96 | 2 | 1 | | Train | 61 | 10 | 7, plus the 2 existing GPU pages | | Tune | 60 | 0 | 0 | A page whose only blocks are `:skipif: True` collects nothing. That's why Train has 10 pages with `testcode` blocks that never run. An rST `.. testcode::` directive inside a MyST `.md` page isn't collected either; `core/internals/streaming-generator.md` and one block in `train/user-guides/experiment-tracking.md` hit this. ### Changes - `doc/BUILD.bazel`: `doctest[core]`, `[rllib]`, `[serve]`, and `[train]` become `doctest_each()` over an explicit page list. Existing excludes, `env` settings, RLlib's `cartpole-v1_large` data dependency, and the GPU targets are unchanged. `doctest[tune]` collected nothing and is removed. - `.buildkite/test.rules.txt`: the Ray Data prose rule, `doc/source/data/*.md` and `*.rst`, becomes `doc/source/*.md` and `*.rst`, still after the API reference rules and ahead of the prose skip rule. Prose that Sphinx never renders as a page, under `doc/source/_*` and `doc/source/templates/`, gets a skip rule ahead of it. API reference pages match the `doc_api` directory rule first and emit only `doc_api`, so the label doesn't run doctests on RLlib's two `api/` pages. The post-merge build still does. The rules file names no individual page, so renaming or removing a page never needs a `.buildkite/` edit. - New lint `doc_prose_doctest_targets` (`doc/test_prose_doctest_targets.py`), in the `lint-small-prose` matrix so prose-only PRs run it. With explicit lists, a runnable block added to an unlisted page would otherwise run nowhere, not even post-merge. The check fails when a library page has a runnable example but no target, or when a listed page has nothing runnable. It's stdlib-only because the forge image has no pytest. On the current tree its rule matches real pytest-sphinx collection exactly, 49 of 49 pages. - `doc/source/ray-contribute/ci.md` and `doc/AGENTS.md`: the label now runs Core, RLlib, Serve, and Train pages, not only Ray Data, and `ci.md` states the image-job cost of a prose change. - `doc/source/ray-contribute/ci.md` also lists the lint steps that run on a prose-only change. The page named three, and two of them, the README check and the Vale style check, no longer run on prose. It now lists the four that do, including the new check. ### Target renames The four library-wide targets become per-file targets named after their pages, for example `//doc:source/core/actors/named-actors`. The postmerge `//doc/...` doctest pass picks them up automatically. Flaky-test history and release-blocker auto-open are keyed by target name, so the old names' history doesn't carry over. Nothing in this repo refers to the old names except synthetic fixtures in `ci/ray_ci/doc/test_doc_example_targets.py`. ## Duplicate check No open PR covers this. Searches for `doctest_each`, "per-file doctest", "doctest targets doc/BUILD.bazel", and `doctest[tune]` return only #66806, which this PR builds on. ## Testing - `rayci test-rules` (rayci v0.48.0, the version in `.rayciversion`, built from source): all 198 cases in `test.rules.test.txt` and `always.rules.test.txt` pass. A deliberately wrong expectation fails, so the check is real. New cases cover a library page without a per-file target, the root index, a non-library page, a KubeRay page, and the three skipped internal prose paths. - The in-repo reference evaluator (`ci/pipeline/determine_tests_to_run.py`) gives the expected tags for a sample of library and KubeRay prose, API pages, internal prose, package and repo-root READMEs, images, a `doc_code` script, and `conf.py`. Only the prose emits `doc_example`. API pages emit only `doc_api`. `pytest ci/pipeline/test_doc_api_rules_sync.py` and `pytest ci/ray_ci/doc/test_doc_example_targets.py` pass. - `bazel query 'attr(tags, "doctest", tests(//doc:all))'` lists all 43 new per-file targets. - `bazel run //ci/ray_ci/doc:cmd_doc_example_targets -- <pages>` selects the matching per-file target for a Core, Train, RLlib `api/`, and Serve page, and reports "No test names this file" for an excluded page. - `./ci/lint/lint.sh doc_prose_doctest_targets` passes. Each failure mode fires when the tree is edited to trigger it: an unlisted runnable page, a page dropped from BUILD, and a listed page with nothing runnable. - I ran each Core page locally on Python 3.10 with the nightly wheel (macOS arm64). 11 of 16 pass. The other 5 fail for local reasons: missing `torch`, missing `CUDA_VISIBLE_DEVICES` on macOS, and the nightly wheel's usage-stats banner showing up in `testoutput`. The banner pages fail the same way when run in one shared session, so the split doesn't cause them. - Not run locally: the RLlib, Serve, and Train pages, and anything in the `doctestbuild` image. A `docs-example-test` labeled run on this PR is the check for those. AI assistance (Claude Code) was used to write this change. 🤖 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
force-pushed
the
doc-1822-doctest-gaps
branch
2 times, most recently
from
October 15, 2026 20:31
7f84d5b to
a0329fc
Compare
dstrodtman
force-pushed
the
doc-1822-doctest-gaps
branch
from
October 20, 2026 13:27
a0329fc to
2431bd6
Compare
The catch-all //doc:doctest target globbed 214 pages and 8 of them had anything to run, so it reported passes with nothing behind them. List pages explicitly instead of globbing. The catch-all becomes doctest_each() over its 8 runnable pages, still tagged team:none so the postmerge "doc: doctest" step selects them. The docs-example-test label now runs any changed page with a runnable example, and the selector has no shared prose target left to report. Extend doc_prose_doctest_targets from five library directories to all of doc/source, so a runnable page anywhere needs a target or an UNTESTED reason. The two contributor pages whose `>>>` samples teach doctest syntax stay untested as before. The lint also ignores BUILD comments when it reads targets. buildifier keeps end-of-line comments, so a comment after a doctest call's closing parenthesis merged that call with the next one, a comment after `gpu = True,` hid the GPU flag, and a commented-out page path counted as listed. Allow trailing comments on both lines, and strip comments before reading page paths. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
dstrodtman
force-pushed
the
doc-1822-doctest-gaps
branch
from
October 20, 2026 15:28
2431bd6 to
2e791ca
Compare
dstrodtman
added a commit
that referenced
this pull request
Oct 28, 2026
…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]>
dstrodtman
added a commit
that referenced
this pull request
Oct 29, 2026
…per-page doctest targets (#67204) ## 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 described `data: docstring examples` and said the examples step covers Ray Data only. Since #67083, `doc: docstring examples` in `others.rayci.yml` runs the changed modules' `>>>` examples for every library that a CPU `doctest()` target covers. It runs in the light `docstringbuild` image, which has no torch or TensorFlow, and reports examples that need those libraries as skipped, by name. Since #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-build` commit 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 as `broken` on an unlabeled PR, and that scheduled post-merge builds don't apply label rules, so all three label-gated steps show as `broken` there. The page also distinguishes the two kinds of post-merge build on `master`. 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 open `doc/BUILD` and exclude their page from a `glob(["source/**/*.rst"])` catch-all target. Neither exists: #66809 and #67003 replaced library-wide prose targets with per-page `doctest_each()` lists. The steps now show both cases: a doc page moves from its library's `doctest_each` list to the GPU `doctest` rule, and a docstring module moves from the CPU glob's `exclude` to the GPU rule. A new short section says how a page with its first runnable example joins CI, which the `doc_prose_doctest_targets` lint enforces. - **`docs.md` and `writing-style.md`.** Both said CI enforces Vale. The `documentation_style` check is out of the `lint.rayci.yml` matrix 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 the `docs-example-test` and `docstring-only` labels and `linkcheck_report.py`. - **`doc/README.md`.** It said CI doesn't run linkcheck. The postmerge `doc: linkcheck` step 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 open` searches 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: - #65868 adds a "How to test a Ray Serve deployment" section to `writing-code-snippets.md` at the same insertion point as this PR's new section, so whichever merges second needs a trivial rebase. - #66884 updates the LLM doc paths in `ci.md`, not the docstring-only section. ## Testing - Every changed claim was checked against `master` at 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 real `doctest[train-gpu]` and `py_doctest[train-gpu]` rules), `doc/test_prose_doctest_targets.py`, and the scripts under `ci/ray_ci/doc/`. - `pre-commit run` on the changed files passes, including the master-link check. - Not run: a Sphinx build. The Read the Docs preview on this PR is the 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](https://claude.com/claude-code) --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
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?
Builds on #66974.
This PR changes only files under
doc/, so it needs no@ray-project/ray-cireview. #66809 routes all prose underdoc/source/to thedocs-example-testopt-in, so giving a page a target here doesn't touch.buildkite/. The per-page routing this PR used to add, 27 page paths intest.rules.txt, is the kind of edit #66809 removes.#66809 gives Core, RLlib, Serve, and Train pages one doctest target each, listing only pages with something to run. Two doc doctest targets still glob directories, so they report passes with nothing behind them:
//doc:doctestglobs 214 pages that no library owns. 8 of them have a runnable example.doctest_eachglobssource/data/. 12 of its 31 per-page targets, such asuser-guide,benchmark, andapi/api, run nothing.Changes
doc/BUILD.bazel: the catch-all becomesdoctest_each()over its 8 runnable pages, still taggedteam:nonewith the Ray Data pytest plugin, so the postmergedoc: docteststep selects them unchanged. Its 17 exclude lines go away, including the three for pages that [doc] Show never-run testcode blocks as plain code blocks #66974 left with nothing to run. Data lists its 19 runnable CPU pages. The GPU targets are unchanged.doc/test_prose_doctest_targets.py: the lint now covers every page underdoc/source, not five library directories. A runnable page anywhere needs a target, or anUNTESTEDentry with a reason. Two pages joinUNTESTED: the contributor pages whose>>>samples teach doctest syntax. Both were excluded from the catch-all before. The lint also ignores comments when it reads targets fromdoc/BUILD.bazel.doc/source/ray-contribute/ci.md: thedocs-example-testlabel now runs any changed page with a runnable example. The "feeds only a shared doctest target" case is gone, because no multi-page CPU prose target remains.The comment above the postmerge
doc: docteststep in.buildkite/others.rayci.ymlstill calls//doc:doctesta single catch-all target. It's left for a later CI change so this PR stays docs-only.Target renames
//doc:doctestbecomes 8 per-page targets such as//doc:source/ray-references/glossary. The catch-all step runs with the test DB disabled, so no flaky-test history is lost. Data's 12 empty targets disappear.Duplicate check
No open PR covers this. The adjacent work is #66809, which split the other libraries' targets, and #66974, which this PR builds on. #66809 changes only the Core, RLlib, Serve, Train, and Tune targets.
Testing
./ci/lint/lint.sh doc_prose_doctest_targetspasses: "74 listed pages; every runnable page is accounted for." On scratch copies of the tree, each new failure mode fires: a runnable unlisted page outside the library directories, a catch-all page dropped from BUILD, and an empty Data page listed.rayci test-rules(rayci v0.48.0, built from source) passes on this branch. This PR doesn't change the rules files.bazel query 'attr(tags, "doctest", tests(//doc:all))'lists 72 targets. Theteam:nonequery lists the 8 catch-all pages.bazel run //ci/ray_ci/doc:cmd_doc_example_targets -- doc/source/ray-references/glossary.md doc/source/data/benchmark.md doc/source/data/loading-data.mdselects//doc:source/ray-references/glossaryunder teamnoneand//doc:source/data/loading-dataunderdata, and reports "No test names this file" forbenchmark.md.buildifierandpre-commit runon all changed files pass.docs-example-testlabeled run are the checks.AI assistance (Claude Code) was used to write this change.
🤖 Generated with Claude Code