Skip to content

[CI] Map docs-infra files to the doc tag - #63132

Merged
richardliaw merged 5 commits into
ray-project:masterfrom
dstrodtman:doc-877-test-rules
May 5, 2026
Merged

richardliaw merged 5 commits into
ray-project:masterfrom
dstrodtman:doc-877-test-rules

Conversation

@dstrodtman

@dstrodtman dstrodtman commented May 5, 2026 •

Copy link
Copy Markdown
Contributor

Why

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 dependencies for the docs build.
  • python/deplocks/docs/*.lock — compiled dependency locks for the docs build.
  • ci/raydepsets/configs/docs.depsets.yaml — raydepsets configuration 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-877 in 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.

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]>
Comment thread .buildkite/test.rules.txt Resolved

@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.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]>
@dstrodtman dstrodtman changed the title [CI] Map docs-infra files to the doc tag [CI] Map missing doc paths to the doc tag May 5, 2026
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]>
@dstrodtman dstrodtman changed the title [CI] Map missing doc paths to the doc tag [CI] Map docs-infra files to the doc tag May 5, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

Reviewed by Cursor Bugbot for commit 971dc6d. Configure here.

Comment thread .buildkite/test.rules.txt Outdated
doc/*.rst
doc/requirements-doc.txt
python/deplocks/docs/*.lock
ci/raydepsets/configs/docs.depsets.yaml

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 971dc6d. Configure here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label May 5, 2026
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]>
@richardliaw
richardliaw merged commit 5871fd6 into ray-project:master May 5, 2026
3 checks passed
Lucas61000 pushed a commit to Lucas61000/ray that referenced this pull request May 15, 2026
dstrodtman added a commit to dstrodtman/ray that referenced this pull request May 18, 2026
## 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]>
elliot-barn pushed a commit that referenced this pull request May 26, 2026
## 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]>
alexandrplashchinsky pushed a commit to alexandrplashchinsky/ray-alex that referenced this pull request May 29, 2026
limarkdcunha pushed a commit to limarkdcunha/ray that referenced this pull request Jun 30, 2026
## 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]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
## 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants