Skip to content

[ci] Stop routing unexecutable doc assets to the core docs example step - #65289

Merged
dstrodtman merged 1 commit into
ray-project:masterfrom
dstrodtman:doc-1423-scope-doc-catchall
Aug 10, 2026
Merged

dstrodtman merged 1 commit into
ray-project:masterfrom
dstrodtman:doc-1423-scope-doc-catchall

Conversation

@dstrodtman

Copy link
Copy Markdown
Contributor

Why this change

The trailing catch-all in .buildkite/test.rules.txt routes any remaining .py or .ipynb under doc/ to core_doc. For a few directories that starts Ray Core's docs example step for files the step cannot run, because no bazel target covers them:

  • doc/BUILD.bazel names source/templates/ exactly once, and it's a doctest exclusion.
  • Nothing covers doc/source/cluster/doc_code/, doc/source/ray-contribute/doc_code/, or doc/source/_templates/.

So the step spins up, runs Core's own targets, and never touches the file that changed. Cost without signal.

This is a follow-on to #64775, which introduced the per-library <lib>_doc tags and left this population on the catch-all deliberately, pending a check of what was actually there.

What it does

Splits the population by what the documentation build actually reads.

Routed to doc (build and validation only). Sources a rendered page pulls in with literalinclude. Nothing executes them, but Sphinx reads them, so a rename or delete breaks the including page and the build is the only premerge check that can catch it. Same reasoning #64775 applied to highly_parallel.ipynb.

  • doc/source/cluster/doc_code/ — included by four cluster/vms/user-guides/community/ pages
  • doc/source/ray-contribute/doc_code/ — included 3x by writing-code-snippets.md
  • doc/source/templates/05_dreambooth_finetuning/ — included ~12x by train/examples/pytorch/dreambooth_finetuning.rst

Skipped. exclude_patterns in doc/source/conf.py drops templates/* from the build outright, so Sphinx never reads any of it. 01–03 have no reference anywhere in the repo; 04 is cited only as a GitHub URL from train/deepspeed.rst, train/huggingface-accelerate.rst, and the Train examples gallery, none of which a build step resolves. _templates/template.ipynb is boilerplate contributors copy, linked as a GitHub URL from ray-contribute/docs.md.

  • doc/source/templates/ (01 through 04)
  • doc/source/_templates/

Images and prose under the doc-routed directories are unaffected: the leading prose-and-image skip still matches them first, as everywhere else in the tree. The dreambooth page's .. image:: targets therefore stay skipped, consistent with every other doc image. Widening that is a separate decision and belongs in that rule.

Blast radius

Dry-ran ci/pipeline/determine_tests_to_run.py over all 10,255 tracked files, before and after:

  • 33 paths change routing. All are under doc/. Zero outside.
  • 14 move core_doc → doc (the literalinclude sources)
  • 11 move core_doc → nothing (templates 01–04, _templates)
  • 8 move nothing → doc (non-.py include inputs such as slurm-basic.sh, ray-skein.yaml, dreambooth_run.sh, which the catch-all's .py/.ipynb patterns never reached)

Net: 25 files stop starting a docs example step that couldn't run them; 8 gain the documentation build, which is the cheap step and the one that can catch a broken include.

These are directory rules, matching how doc/external/ is handled. That means four non-included assets under 05 (its Dockerfile, two compute configs, requirements.txt) start the build too. Deliberate trade — enumerating individual include targets would rot the moment someone adds a literalinclude.

Tests

Added 8 cases to .buildkite/test.rules.test.txt, including two regression guards: that the leading prose-and-image skip still wins inside a doc-routed directory, and that doc/test_myst_doc.py stays on core_doc so the catch-all keeps working for its real purpose.

$ python ci/pipeline/determine_tests_to_run.py   # replayed over every fixture case
fixture cases: 124   evaluated: 124   mismatches: 0

All 124 cases pass, the 116 pre-existing ones included. pre-commit run --files .buildkite/test.rules.txt .buildkite/test.rules.test.txt passes.

The authoritative tag computation is the external rayci test-rules step, not this in-repo parser, so premerge on this PR is the real confirmation.

Not a duplicate

No open PR touches .buildkite/test.rules.txt (gh pr list --search "test.rules.txt in:title,body" returns four unrelated PRs). This continues #64775, which is merged.

Follow-up, deliberately not in this PR

doc/source/templates/README.md documents a contribution workflow that can't be followed: it points at templates.yaml, testing/validate.py, testing/release/, and //doc:workspace_templates, none of which exist. Templates 01–03 look like orphaned 2.6-era artifacts and are probably deletable, but 04 and 05 are not, since published pages link to or inline them. That's content cleanup with its own reviewers, and external links to those GitHub paths may exist, so it wants a maintainer's call separately.


AI assistance was used to research and draft this change. Opening as a draft for my own review pass before requesting maintainer review.

The trailing catch-all in test.rules.txt routes any remaining .py or
.ipynb under doc/ to core_doc. For a handful of directories that starts
Ray Core's docs example step for files the step cannot run: no bazel
target covers them.

doc/BUILD.bazel names source/templates/ exactly once, as a doctest
exclusion, and no target covers doc/source/cluster/doc_code/,
doc/source/ray-contribute/doc_code/, or doc/source/_templates/. So the
step spins up and executes Core's own targets while the changed file is
never touched. Pure cost, no signal.

Split the population by what the documentation build actually reads:

- Sources a rendered page pulls in with literalinclude route to `doc`,
  the build and validation step. Nothing executes them, but Sphinx reads
  them, so a rename breaks the including page and the build is the only
  premerge check that catches it. Covers cluster/doc_code/,
  ray-contribute/doc_code/, and templates/05_dreambooth_finetuning/,
  whose sources back doc/source/train/examples/pytorch/dreambooth_finetuning.rst.

- Starter templates 01 through 04 and _templates/template.ipynb emit
  nothing. conf.py drops templates/* from the build via exclude_patterns,
  so Sphinx never reads them; 01 through 03 have no reference anywhere in
  the repo, and 04 is cited only as a GitHub URL that no build step
  resolves. template.ipynb is boilerplate contributors copy.

Repo-wide differential over all 10,255 tracked files: 33 paths change
routing, all under doc/, none outside. 25 lose a core docs example step
that could not run them; 8 gain the documentation build, which is the
cheap step and the one that can catch a broken include.

Added eight cases to test.rules.test.txt, including guards that the
leading prose-and-image skip still wins inside a `doc`-routed directory
and that doc/test_myst_doc.py stays on core_doc. All 124 fixture cases
pass against ci/pipeline/determine_tests_to_run.py.

Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Aug 7, 2026
@dstrodtman
dstrodtman marked this pull request as ready for review August 7, 2026 17:29
@dstrodtman
dstrodtman requested a review from a team as a code owner August 7, 2026 17:29

@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 updates the Buildkite test routing rules for documentation assets. It routes snippet sources used in literalinclude directives (such as cluster doc codes and specific templates) to the doc build, while explicitly ignoring starter templates and authoring boilerplate that are excluded from the Sphinx build. The feedback suggests wrapping a long comment line in .buildkite/test.rules.txt to maintain consistency with the surrounding text.

Comment thread .buildkite/test.rules.txt
Comment on lines +440 to +442
# URL, from train/deepspeed.rst, train/huggingface-accelerate.rst, and the train
# examples gallery, none of which any build step resolves. They also back no bazel target: doc/BUILD.bazel names
# source/templates/ exactly once, as a doctest exclusion. So the catch-all was

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.

medium

This comment line is quite long (111 characters) and wraps awkwardly compared to the surrounding comments which are wrapped around 80 characters. Wrapping it will improve readability and maintain consistency with the rest of the file.

# URL, from train/deepspeed.rst, train/huggingface-accelerate.rst, and the train
# examples gallery, none of which any build step resolves. They also back no
# bazel target: doc/BUILD.bazel names source/templates/ exactly once, as a
# doctest exclusion. So the catch-all was

@ray-gardener ray-gardener Bot added docs An issue or change related to documentation core Issues that should be addressed in Ray Core devprod labels Aug 7, 2026
@dstrodtman
dstrodtman merged commit f4510dc into ray-project:master Aug 10, 2026
6 checks passed
Artimislyy pushed a commit to Artimislyy/ray that referenced this pull request Aug 11, 2026
…ep (ray-project#65289)

## Why this change

The trailing catch-all in `.buildkite/test.rules.txt` routes any
remaining `.py` or `.ipynb` under `doc/` to `core_doc`. For a few
directories that starts Ray Core's docs example step for files the step
cannot run, because no bazel target covers them:

- `doc/BUILD.bazel` names `source/templates/` exactly once, and it's a
doctest *exclusion*.
- Nothing covers `doc/source/cluster/doc_code/`,
`doc/source/ray-contribute/doc_code/`, or `doc/source/_templates/`.

So the step spins up, runs Core's own targets, and never touches the
file that changed. Cost without signal.

This is a follow-on to ray-project#64775, which introduced the per-library
`<lib>_doc` tags and left this population on the catch-all deliberately,
pending a check of what was actually there.

## What it does

Splits the population by what the documentation build actually reads.

**Routed to `doc` (build and validation only).** Sources a rendered page
pulls in with `literalinclude`. Nothing executes them, but Sphinx reads
them, so a rename or delete breaks the including page and the build is
the only premerge check that can catch it. Same reasoning ray-project#64775 applied
to `highly_parallel.ipynb`.

- `doc/source/cluster/doc_code/` — included by four
`cluster/vms/user-guides/community/` pages
- `doc/source/ray-contribute/doc_code/` — included 3x by
`writing-code-snippets.md`
- `doc/source/templates/05_dreambooth_finetuning/` — included ~12x by
`train/examples/pytorch/dreambooth_finetuning.rst`

**Skipped.** `exclude_patterns` in `doc/source/conf.py` drops
`templates/*` from the build outright, so Sphinx never reads any of it.
`01`–`03` have no reference anywhere in the repo; `04` is cited only as
a GitHub URL from `train/deepspeed.rst`,
`train/huggingface-accelerate.rst`, and the Train examples gallery, none
of which a build step resolves. `_templates/template.ipynb` is
boilerplate contributors copy, linked as a GitHub URL from
`ray-contribute/docs.md`.

- `doc/source/templates/` (01 through 04)
- `doc/source/_templates/`

Images and prose under the `doc`-routed directories are unaffected: the
leading prose-and-image skip still matches them first, as everywhere
else in the tree. The dreambooth page's `.. image::` targets therefore
stay skipped, consistent with every other doc image. Widening that is a
separate decision and belongs in that rule.

## Blast radius

Dry-ran `ci/pipeline/determine_tests_to_run.py` over **all 10,255
tracked files**, before and after:

- **33 paths change routing. All are under `doc/`. Zero outside.**
- 14 move `core_doc` → `doc` (the `literalinclude` sources)
- 11 move `core_doc` → nothing (templates 01–04, `_templates`)
- 8 move nothing → `doc` (non-`.py` include inputs such as
`slurm-basic.sh`, `ray-skein.yaml`, `dreambooth_run.sh`, which the
catch-all's `.py`/`.ipynb` patterns never reached)

Net: 25 files stop starting a docs example step that couldn't run them;
8 gain the documentation build, which is the cheap step and the one that
can catch a broken include.

These are directory rules, matching how `doc/external/` is handled. That
means four non-included assets under `05` (its Dockerfile, two compute
configs, `requirements.txt`) start the build too. Deliberate trade —
enumerating individual include targets would rot the moment someone adds
a `literalinclude`.

## Tests

Added 8 cases to `.buildkite/test.rules.test.txt`, including two
regression guards: that the leading prose-and-image skip still wins
*inside* a `doc`-routed directory, and that `doc/test_myst_doc.py` stays
on `core_doc` so the catch-all keeps working for its real purpose.

```
$ python ci/pipeline/determine_tests_to_run.py   # replayed over every fixture case
fixture cases: 124   evaluated: 124   mismatches: 0
```

All 124 cases pass, the 116 pre-existing ones included. `pre-commit run
--files .buildkite/test.rules.txt .buildkite/test.rules.test.txt`
passes.

The authoritative tag computation is the external `rayci` `test-rules`
step, not this in-repo parser, so premerge on this PR is the real
confirmation.

## Not a duplicate

No open PR touches `.buildkite/test.rules.txt` (`gh pr list --search
"test.rules.txt in:title,body"` returns four unrelated PRs). This
continues ray-project#64775, which is merged.

## Follow-up, deliberately not in this PR

`doc/source/templates/README.md` documents a contribution workflow that
can't be followed: it points at `templates.yaml`, `testing/validate.py`,
`testing/release/`, and `//doc:workspace_templates`, none of which
exist. Templates `01`–`03` look like orphaned 2.6-era artifacts and are
probably deletable, but `04` and `05` are not, since published pages
link to or inline them. That's content cleanup with its own reviewers,
and external links to those GitHub paths may exist, so it wants a
maintainer's call separately.

---

AI assistance was used to research and draft this change. Opening as a
draft for my own review pass before requesting maintainer review.

Signed-off-by: Douglas Strodtman <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…ep (ray-project#65289)

## Why this change

The trailing catch-all in `.buildkite/test.rules.txt` routes any
remaining `.py` or `.ipynb` under `doc/` to `core_doc`. For a few
directories that starts Ray Core's docs example step for files the step
cannot run, because no bazel target covers them:

- `doc/BUILD.bazel` names `source/templates/` exactly once, and it's a
doctest *exclusion*.
- Nothing covers `doc/source/cluster/doc_code/`,
`doc/source/ray-contribute/doc_code/`, or `doc/source/_templates/`.

So the step spins up, runs Core's own targets, and never touches the
file that changed. Cost without signal.

This is a follow-on to ray-project#64775, which introduced the per-library
`<lib>_doc` tags and left this population on the catch-all deliberately,
pending a check of what was actually there.

## What it does

Splits the population by what the documentation build actually reads.

**Routed to `doc` (build and validation only).** Sources a rendered page
pulls in with `literalinclude`. Nothing executes them, but Sphinx reads
them, so a rename or delete breaks the including page and the build is
the only premerge check that can catch it. Same reasoning ray-project#64775 applied
to `highly_parallel.ipynb`.

- `doc/source/cluster/doc_code/` — included by four
`cluster/vms/user-guides/community/` pages
- `doc/source/ray-contribute/doc_code/` — included 3x by
`writing-code-snippets.md`
- `doc/source/templates/05_dreambooth_finetuning/` — included ~12x by
`train/examples/pytorch/dreambooth_finetuning.rst`

**Skipped.** `exclude_patterns` in `doc/source/conf.py` drops
`templates/*` from the build outright, so Sphinx never reads any of it.
`01`–`03` have no reference anywhere in the repo; `04` is cited only as
a GitHub URL from `train/deepspeed.rst`,
`train/huggingface-accelerate.rst`, and the Train examples gallery, none
of which a build step resolves. `_templates/template.ipynb` is
boilerplate contributors copy, linked as a GitHub URL from
`ray-contribute/docs.md`.

- `doc/source/templates/` (01 through 04)
- `doc/source/_templates/`

Images and prose under the `doc`-routed directories are unaffected: the
leading prose-and-image skip still matches them first, as everywhere
else in the tree. The dreambooth page's `.. image::` targets therefore
stay skipped, consistent with every other doc image. Widening that is a
separate decision and belongs in that rule.

## Blast radius

Dry-ran `ci/pipeline/determine_tests_to_run.py` over **all 10,255
tracked files**, before and after:

- **33 paths change routing. All are under `doc/`. Zero outside.**
- 14 move `core_doc` → `doc` (the `literalinclude` sources)
- 11 move `core_doc` → nothing (templates 01–04, `_templates`)
- 8 move nothing → `doc` (non-`.py` include inputs such as
`slurm-basic.sh`, `ray-skein.yaml`, `dreambooth_run.sh`, which the
catch-all's `.py`/`.ipynb` patterns never reached)

Net: 25 files stop starting a docs example step that couldn't run them;
8 gain the documentation build, which is the cheap step and the one that
can catch a broken include.

These are directory rules, matching how `doc/external/` is handled. That
means four non-included assets under `05` (its Dockerfile, two compute
configs, `requirements.txt`) start the build too. Deliberate trade —
enumerating individual include targets would rot the moment someone adds
a `literalinclude`.

## Tests

Added 8 cases to `.buildkite/test.rules.test.txt`, including two
regression guards: that the leading prose-and-image skip still wins
*inside* a `doc`-routed directory, and that `doc/test_myst_doc.py` stays
on `core_doc` so the catch-all keeps working for its real purpose.

```
$ python ci/pipeline/determine_tests_to_run.py   # replayed over every fixture case
fixture cases: 124   evaluated: 124   mismatches: 0
```

All 124 cases pass, the 116 pre-existing ones included. `pre-commit run
--files .buildkite/test.rules.txt .buildkite/test.rules.test.txt`
passes.

The authoritative tag computation is the external `rayci` `test-rules`
step, not this in-repo parser, so premerge on this PR is the real
confirmation.

## Not a duplicate

No open PR touches `.buildkite/test.rules.txt` (`gh pr list --search
"test.rules.txt in:title,body"` returns four unrelated PRs). This
continues ray-project#64775, which is merged.

## Follow-up, deliberately not in this PR

`doc/source/templates/README.md` documents a contribution workflow that
can't be followed: it points at `templates.yaml`, `testing/validate.py`,
`testing/release/`, and `//doc:workspace_templates`, none of which
exist. Templates `01`–`03` look like orphaned 2.6-era artifacts and are
probably deletable, but `04` and `05` are not, since published pages
link to or inline them. That's content cleanup with its own reviewers,
and external links to those GitHub paths may exist, so it wants a
maintainer's call separately.

---

AI assistance was used to research and draft this change. Opening as a
draft for my own review pass before requesting maintainer review.

Signed-off-by: Douglas Strodtman <[email protected]>
Signed-off-by: 400Ping <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…ep (ray-project#65289)

## Why this change

The trailing catch-all in `.buildkite/test.rules.txt` routes any
remaining `.py` or `.ipynb` under `doc/` to `core_doc`. For a few
directories that starts Ray Core's docs example step for files the step
cannot run, because no bazel target covers them:

- `doc/BUILD.bazel` names `source/templates/` exactly once, and it's a
doctest *exclusion*.
- Nothing covers `doc/source/cluster/doc_code/`,
`doc/source/ray-contribute/doc_code/`, or `doc/source/_templates/`.

So the step spins up, runs Core's own targets, and never touches the
file that changed. Cost without signal.

This is a follow-on to ray-project#64775, which introduced the per-library
`<lib>_doc` tags and left this population on the catch-all deliberately,
pending a check of what was actually there.

## What it does

Splits the population by what the documentation build actually reads.

**Routed to `doc` (build and validation only).** Sources a rendered page
pulls in with `literalinclude`. Nothing executes them, but Sphinx reads
them, so a rename or delete breaks the including page and the build is
the only premerge check that can catch it. Same reasoning ray-project#64775 applied
to `highly_parallel.ipynb`.

- `doc/source/cluster/doc_code/` — included by four
`cluster/vms/user-guides/community/` pages
- `doc/source/ray-contribute/doc_code/` — included 3x by
`writing-code-snippets.md`
- `doc/source/templates/05_dreambooth_finetuning/` — included ~12x by
`train/examples/pytorch/dreambooth_finetuning.rst`

**Skipped.** `exclude_patterns` in `doc/source/conf.py` drops
`templates/*` from the build outright, so Sphinx never reads any of it.
`01`–`03` have no reference anywhere in the repo; `04` is cited only as
a GitHub URL from `train/deepspeed.rst`,
`train/huggingface-accelerate.rst`, and the Train examples gallery, none
of which a build step resolves. `_templates/template.ipynb` is
boilerplate contributors copy, linked as a GitHub URL from
`ray-contribute/docs.md`.

- `doc/source/templates/` (01 through 04)
- `doc/source/_templates/`

Images and prose under the `doc`-routed directories are unaffected: the
leading prose-and-image skip still matches them first, as everywhere
else in the tree. The dreambooth page's `.. image::` targets therefore
stay skipped, consistent with every other doc image. Widening that is a
separate decision and belongs in that rule.

## Blast radius

Dry-ran `ci/pipeline/determine_tests_to_run.py` over **all 10,255
tracked files**, before and after:

- **33 paths change routing. All are under `doc/`. Zero outside.**
- 14 move `core_doc` → `doc` (the `literalinclude` sources)
- 11 move `core_doc` → nothing (templates 01–04, `_templates`)
- 8 move nothing → `doc` (non-`.py` include inputs such as
`slurm-basic.sh`, `ray-skein.yaml`, `dreambooth_run.sh`, which the
catch-all's `.py`/`.ipynb` patterns never reached)

Net: 25 files stop starting a docs example step that couldn't run them;
8 gain the documentation build, which is the cheap step and the one that
can catch a broken include.

These are directory rules, matching how `doc/external/` is handled. That
means four non-included assets under `05` (its Dockerfile, two compute
configs, `requirements.txt`) start the build too. Deliberate trade —
enumerating individual include targets would rot the moment someone adds
a `literalinclude`.

## Tests

Added 8 cases to `.buildkite/test.rules.test.txt`, including two
regression guards: that the leading prose-and-image skip still wins
*inside* a `doc`-routed directory, and that `doc/test_myst_doc.py` stays
on `core_doc` so the catch-all keeps working for its real purpose.

```
$ python ci/pipeline/determine_tests_to_run.py   # replayed over every fixture case
fixture cases: 124   evaluated: 124   mismatches: 0
```

All 124 cases pass, the 116 pre-existing ones included. `pre-commit run
--files .buildkite/test.rules.txt .buildkite/test.rules.test.txt`
passes.

The authoritative tag computation is the external `rayci` `test-rules`
step, not this in-repo parser, so premerge on this PR is the real
confirmation.

## Not a duplicate

No open PR touches `.buildkite/test.rules.txt` (`gh pr list --search
"test.rules.txt in:title,body"` returns four unrelated PRs). This
continues ray-project#64775, which is merged.

## Follow-up, deliberately not in this PR

`doc/source/templates/README.md` documents a contribution workflow that
can't be followed: it points at `templates.yaml`, `testing/validate.py`,
`testing/release/`, and `//doc:workspace_templates`, none of which
exist. Templates `01`–`03` look like orphaned 2.6-era artifacts and are
probably deletable, but `04` and `05` are not, since published pages
link to or inline them. That's content cleanup with its own reviewers,
and external links to those GitHub paths may exist, so it wants a
maintainer's call separately.

---

AI assistance was used to research and draft this change. Opening as a
draft for my own review pass before requesting maintainer review.

Signed-off-by: Douglas Strodtman <[email protected]>
edoakes pushed a commit that referenced this pull request Oct 15, 2026
## Why are these changes needed?

`doc/source/templates/` is the Ray 2.6-era "Ray Starter Templates"
directory. The harness that made it a templates mechanism is gone.
`exclude_patterns` in `doc/source/conf.py` drops `templates/*` from the
Sphinx build, and nothing in it backs a bazel test target. What was left
on master:

- `01_batch_inference`, `02_many_model_training`,
`03_serving_stable_diffusion`, `configs/`, `testing/`, and `README.md`
had no references outside the directory. The README documents a
contribution workflow whose scripts (`testing/validate.py`,
`testing/release/`) no longer exist.
- `04_finetuning_llms_with_deepspeed` was referenced only by a doctest
exclusion in `doc/BUILD.bazel`. #66893 repointed its last doc links to
the `deepspeed_finetune` example.
- `05_dreambooth_finetuning` backed
`train/examples/pytorch/dreambooth-finetuning.md`, which #66893
unpublished because the example doesn't run on current libraries. It
also backed two release tests, `air_example_dreambooth_finetuning` and
`air_example_dreambooth_finetuning_lora`, through symlinks in
`release/air_examples/dreambooth/`. Both tests are `frequency: manual`
and were jailed after failing (#49847, #49846). Its `requirements.txt`
pins a July-2023 stack (`torch==2.0.1`, `diffusers==0.19.3`,
`transformers==4.30.2`).

The DreamBooth example is being rebuilt on current diffusers as a new
example, so this PR deletes the old sources rather than moving them. The
rebuilt example lands outside `templates/`.

## What this PR changes

- Deletes `doc/source/templates/` (69 files).
- Deletes the unpublished
`doc/source/train/examples/pytorch/dreambooth-finetuning.md` and its
`exclude_patterns` entry. The temporary redirects in
`doc/redirects/current.yaml` from both old DreamBooth URLs to
`/train/examples.html` stay as they are, to be repointed when the
rebuilt example ships.
- Deletes `release/air_examples/dreambooth/` and the two jailed release
tests in `release/release_tests.yaml` (the whole `AIR examples` group,
which held only these two).
- Removes the dead `templates/*` patterns from `exclude_patterns` and
`llms_txt_exclude` in `conf.py`, and the `04` doctest exclusion from
`doc/BUILD.bazel`.
- `.buildkite/test.rules.txt`: drops
`doc/source/templates/05_dreambooth_finetuning/` from the
literalinclude-sources rule and `doc/source/templates/` from the skip
rule that #65289 added. `_templates/` keeps its skip rule. The comments
are updated to match.
- `.buildkite/test.rules.test.txt`: drops the `templates/` cases. The
assertion that the prose-and-image skip still wins inside a `doc`-routed
directory moves from `05` to `cluster/doc_code/`, so that coverage isn't
lost.
- `.github/CODEOWNERS`: drops `templates` from the catch-all comment's
directory list.

## Questions for reviewers

- **Release tests (ml team):** this removes
`air_example_dreambooth_finetuning` and
`air_example_dreambooth_finetuning_lora`. They're manual-only and
jailed, and their sources go away with this directory. If you'd rather
keep the test definitions as a placeholder for the rebuilt example, say
so and I'll restore them.
- **External links:** these templates were promoted publicly around Ray
2.6, so blog posts or course material might link to
`github.com/ray-project/ray/tree/master/doc/source/templates/...`. This
PR is a clean delete. If maintainers would prefer a tombstone
`README.md` pointing at the Train examples gallery, I can add one.

## Related PRs

Once this merges, the following open Dependabot PRs target manifests
that no longer exist and can be closed: #65851, #65850, #64851, #64850,
#64002, #64001, #62417, #62418, #56096, #54423, #55301.

## Duplicate check

Searched open PRs for `doc/source/templates` and `dreambooth`. The only
matches are the Dependabot bumps listed above, #67006 (my own
in-tree-links sweep, which deliberately leaves this directory alone),
and #66880 (touches `release_tests.yaml` but not the DreamBooth
entries).

## Testing

- `rayci test-rules` (built from `ray-project/rayci`) against the
updated `.buildkite/test.rules.txt` and `test.rules.test.txt`: 177/177
cases pass. Flipping one new case to a wrong expectation makes it fail,
confirming the case is live.
- `git grep` for `doc/source/templates`, each template directory name,
and `air_example_dreambooth` returns no matches outside `_templates/`.
- `conf.py` parses, and `release/release_tests.yaml` loads with
`yaml.safe_load`.
- `pre-commit` passes on the changed files, including buildifier on
`doc/BUILD.bazel` and the master-link resolution check.
- The docs build runs on this PR's Read the Docs preview.

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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core devprod docs An issue or change related to documentation 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