Repository navigation
[CI] Map docs-infra files to the doc tag - #63132
Conversation
Three docs-infra paths don't currently match any rule in .buildkite/test.rules.txt and fall through to broader tag sets, triggering test runs that aren't relevant to docs-only changes: doc/requirements-doc.txt python/deplocks/docs/*.lock ci/raydepsets/configs/docs.depsets.yaml Adds them to the existing doc rule block so changes scoped to docs infrastructure (deps, deplocks, raydepsets config) only invoke the `doc` test set going forward. Targeted addition: three new patterns, no changes to existing rules or other tag mappings. Reversible by removing the three lines. Tracked in DOC-877. Driver: REEf request to right-size CI for docs-infra-only changes. Unblocks the in-flight sitemap and llms.txt PRs (ray-project#63115, ray-project#63130) which both touch the docs deplock and were hitting unnecessary test runs. Signed-off-by: Douglas Strodtman <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request updates the .buildkite/test.rules.txt file to include several documentation-related paths, specifically adding doc/requirements-doc.txt, python/deplocks/docs/*.lock, and ci/raydepsets/configs/docs.depsets.yaml. There are no review comments to address, and I have no further feedback to provide.
Ray's docs include 234 markdown files (myst-parser content) but the existing doc rule in test.rules.txt only enumerates *.rst, *.ipynb, *.py, and BUILD files. So changes to markdown content currently fall through to broader tag sets and trigger irrelevant test runs. `doc/*.md` follows the same fnmatch behavior as `doc/*.rst` and `doc/*.py` — matches nested files under `doc/source/...` per the file header comment. Bundled with the docs-infra mapping in this same PR. Signed-off-by: Douglas Strodtman <[email protected]>
doc tagdoc tag
The previous commit added doc/*.md to the doc rule's pattern list, which would have FORCED markdown PRs to emit the doc tag and trigger the per-library doc-test fan-out (rllib, ml, core, data, serve, tune). That's the opposite of the intended behavior. Per Apr 30 2026 measurements (and the docs team's CI plan in their internal strategy work): Current behavior: *.md/*.mdx files under doc/ fall through to the doc/ skip rule and emit no tags. Markdown-only PRs land at ~15 min premerge. RST-only PRs match doc/*.rst, emit the doc tag, and run ~50 min because the doc tag fans out across each Ray library's pipeline. The ~15-min markdown fast path is intentional and load-bearing for the docs migration strategy: every page migrated from RST to MyST collapses ~50 min CI to ~15 min. Adding doc/*.md to this rule would have erased that. Reverting back to three added lines, all docs-infra: doc/requirements-doc.txt python/deplocks/docs/*.lock ci/raydepsets/configs/docs.depsets.yaml The infra additions are still correct — those paths currently fall through to the * wildcard (running every tag) so mapping them to doc reduces the test surface from "everything" to just "doc tests". Signed-off-by: Douglas Strodtman <[email protected]>
doc tagdoc tag
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
There are 2 total unresolved issues (including 1 from previous review).
Reviewed by Cursor Bugbot for commit 971dc6d. Configure here.
| doc/*.rst | ||
| doc/requirements-doc.txt | ||
| python/deplocks/docs/*.lock | ||
| ci/raydepsets/configs/docs.depsets.yaml |
There was a problem hiding this comment.
Missing doc/*.md pattern from intended four additions
Medium Severity
The PR description explicitly lists four patterns to add, including doc/*.md for 234 myst-parser markdown source files. However, only three patterns were actually added — the doc/*.md line is missing. Without it, changes to .md files under doc/ will continue to fall through to broader tag sets and trigger irrelevant test runs, which was one of the two problems this PR intended to fix.
Reviewed by Cursor Bugbot for commit 971dc6d. Configure here.
There was a problem hiding this comment.
Note: docs team thinks .md skip is likely a feature rather than a bug.
Sphinx build and RtD deploy tests should be sufficient for content-only changes. I undid the changes that added *.md files here.
Move docs requirements up so it triggers as-intended Signed-off-by: Andrew Pollack-Gray <[email protected]>
Add new documentation and dependency files to the build pipeline. Signed-off-by: Andrew Pollack-Gray <[email protected]>
## Why Ray's per-library `.claude/CLAUDE.md` convention is in place for `data`, `serve`, `train`, `tune`, `rllib`, and `src/ray`. `doc/` is missing this file. Agents working on docs have no in-repo signal about how Ray's CI is configured for documentation changes or how to scope PRs to land cleanly. ## What Adds `doc/.claude/CLAUDE.md` with concise pointers to: - How `.buildkite/test.rules.txt` maps file patterns to tag sets, and which patterns the `doc` tag covers (post-ray-project#63132 shape). - Scope discipline for docs-only PRs: take the lightest path; don't bundle in non-doc changes. - When to revise test rules vs. work around them (precedent: ray-project#63132). - Existing skills (`/lint`, `/fetch-buildkite-logs`, `/rebuild`). Under 50 lines per the existing per-library convention. ## Context Tracked under `DOC-879` in anyscale/docs Jira (private). Captures the test-rule discipline that emerged during the docs-infra mapping work in ray-project#63132. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]> Signed-off-by: Douglas Strodtman <[email protected]>
## Why Ray's per-library `.claude/CLAUDE.md` convention is in place for `data`, `serve`, `train`, `tune`, `rllib`, and `src/ray`. `doc/` is missing this file. Agents working on docs (Claude Code sessions, OSS contributors using AI assistants) have no in-repo signal about how Ray's CI is configured for documentation changes or how to scope PRs to land cleanly. ## What Adds `doc/.claude/CLAUDE.md` with concise pointers to: - How `.buildkite/test.rules.txt` maps file patterns to tag sets, and which patterns the `doc` tag covers (post-#63132 shape). - Scope discipline for docs-only PRs: take the lightest path; don't bundle in non-doc changes. - When to revise test rules vs. work around them (precedent: #63132). - Existing skills (`/lint`, `/fetch-buildkite-logs`, `/rebuild`). Under 50 lines per the existing per-library convention. Wording can iterate. ## Verification - `find ray/doc -path '*/.claude/CLAUDE.md'` returns the new file. - File loads when a Claude Code session is rooted at `doc/` (a session under `doc/source/` will pick this up alongside the top-level `.claude/CLAUDE.md`). ## Context Tracked under `DOC-879` in anyscale/docs Jira (private). Captures the test-rule discipline that emerged during the docs-infra mapping work in #63132. --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
Signed-off-by: Alexandr Plashchinsky <[email protected]>
## Why Ray's per-library `.claude/CLAUDE.md` convention is in place for `data`, `serve`, `train`, `tune`, `rllib`, and `src/ray`. `doc/` is missing this file. Agents working on docs (Claude Code sessions, OSS contributors using AI assistants) have no in-repo signal about how Ray's CI is configured for documentation changes or how to scope PRs to land cleanly. ## What Adds `doc/.claude/CLAUDE.md` with concise pointers to: - How `.buildkite/test.rules.txt` maps file patterns to tag sets, and which patterns the `doc` tag covers (post-ray-project#63132 shape). - Scope discipline for docs-only PRs: take the lightest path; don't bundle in non-doc changes. - When to revise test rules vs. work around them (precedent: ray-project#63132). - Existing skills (`/lint`, `/fetch-buildkite-logs`, `/rebuild`). Under 50 lines per the existing per-library convention. Wording can iterate. ## Verification - `find ray/doc -path '*/.claude/CLAUDE.md'` returns the new file. - File loads when a Claude Code session is rooted at `doc/` (a session under `doc/source/` will pick this up alongside the top-level `.claude/CLAUDE.md`). ## Context Tracked under `DOC-879` in anyscale/docs Jira (private). Captures the test-rule discipline that emerged during the docs-infra mapping work in ray-project#63132. --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
## Why Ray's per-library `.claude/CLAUDE.md` convention is in place for `data`, `serve`, `train`, `tune`, `rllib`, and `src/ray`. `doc/` is missing this file. Agents working on docs (Claude Code sessions, OSS contributors using AI assistants) have no in-repo signal about how Ray's CI is configured for documentation changes or how to scope PRs to land cleanly. ## What Adds `doc/.claude/CLAUDE.md` with concise pointers to: - How `.buildkite/test.rules.txt` maps file patterns to tag sets, and which patterns the `doc` tag covers (post-ray-project#63132 shape). - Scope discipline for docs-only PRs: take the lightest path; don't bundle in non-doc changes. - When to revise test rules vs. work around them (precedent: ray-project#63132). - Existing skills (`/lint`, `/fetch-buildkite-logs`, `/rebuild`). Under 50 lines per the existing per-library convention. Wording can iterate. ## Verification - `find ray/doc -path '*/.claude/CLAUDE.md'` returns the new file. - File loads when a Claude Code session is rooted at `doc/` (a session under `doc/source/` will pick this up alongside the top-level `.claude/CLAUDE.md`). ## Context Tracked under `DOC-879` in anyscale/docs Jira (private). Captures the test-rule discipline that emerged during the docs-infra mapping work in ray-project#63132. --------- Signed-off-by: Douglas Strodtman <[email protected]> Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]> Signed-off-by: 400Ping <[email protected]>


Why
Three docs-infra paths don't currently match any rule in
.buildkite/test.rules.txtand fall through to broader tag sets, triggering test runs that aren't relevant to docs-only changes:doc/requirements-doc.txt— Python dependencies for the docs build.python/deplocks/docs/*.lock— compiled dependency locks for the docs build.ci/raydepsets/configs/docs.depsets.yaml—raydepsetsconfiguration for the docs deplocks.Recent docs-infra PRs (#63115 sitemap fix, #63130 llms.txt) touch these files and pull in test runs that don't need to fire. REEf flagged this and asked for the rule update; once this lands, those PRs benefit on their next CI run.
What
Adds the three patterns to the existing doc rule block (lines 179-188 of
test.rules.txt). Three new lines, no changes to existing rules or other tag mappings.Test plan
Context
Tracked under
DOC-877in the anyscale/docs Jira (private). Unblocks the in-flight sitemap fix (#63115) and llms.txt PR (#63130) which both touch the docs deplock and hit broader test sets without this change. Part of a docs CI right-sizing effort.