Skip to content

[docs] Add ray-docs-reviewers fallback to library doc CODEOWNERS rules - #66429

Merged
dstrodtman merged 1 commit into
masterfrom
djs-260923-docs-reviewers-fallback
Sep 23, 2026
Merged

dstrodtman merged 1 commit into
masterfrom
djs-260923-docs-reviewers-fallback

Conversation

@dstrodtman

Copy link
Copy Markdown
Contributor

Description

The /doc/ catch-all lists @ray-project/ray-docs-reviewers as a silent fallback (notifications disabled), so docs leads can unblock a docs-required review when no one else is available. The per-library doc rules added in #65704 and earlier didn't carry it over.

CODEOWNERS is last-match-wins: the more specific library rule replaces the catch-all's owners instead of adding to them. So every file under a library doc directory lost the fallback. That covers all four LLM doc rules (llm/, serve/llm/, data/working-with-llms.rst, data/doc_code/working-with-llms/) and the other 11 library doc rules (cluster/, cluster/kubernetes/, ray-core/, ray-observability/, ray-more-libs/, data/, rllib/, tune/, train/, ray-air/, serve/).

This PR adds @ray-project/ray-docs-reviewers to each of those 15 rules and records the invariant in the catch-all comment: every rule that lists ray-docs must also list ray-ci or ray-docs-reviewers.

The fallback is ray-docs-reviewers rather than ray-ci because the team has notifications disabled, so library doc PRs don't page anyone new. Library teams and ray-docs keep exactly the ownership they had.

Related issues

Follows up on #65704, which introduced the per-library doc rules.

Additional information

Verification

  • After the change, grep finds no CODEOWNERS rule that lists @ray-project/ray-docs without ray-ci or ray-docs-reviewers.
  • gh api repos/ray-project/ray/codeowners/errors?ref=<this branch> reports no new errors. The only two errors (unknown owner @jackfrancis on the Azure autoscaler lines) exist identically on master.
  • ray-docs-reviewers already appears on /doc/ and /.readthedocs.yaml, so this introduces no new team reference.

Not a duplicate: The only other open PR touching CODEOWNERS is #65951, which edits the .buildkite rules and doesn't overlap these lines.

AI assistance: AI assistance (Claude Code) was used to draft this change. I reviewed every line and stand behind it.

🤖 Generated with Claude Code

CODEOWNERS is last-match-wins, so each library doc rule replaced the
/doc/ catch-all's owners and dropped the ray-docs-reviewers fallback.
Add it to every rule that lists ray-docs, and record the invariant in
the catch-all comment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>

@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 .github/CODEOWNERS file to include @ray-project/ray-docs-reviewers as a fallback approver for various documentation paths, ensuring that documentation-required reviews always have a valid reviewer. It also adds clarifying comments regarding the 'last-match-wins' behavior of the CODEOWNERS file to prevent configuration errors. I have no further feedback to provide.

@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Sep 23, 2026
@dstrodtman
dstrodtman enabled auto-merge (squash) September 23, 2026 18:41

@x01-emre x01-emre left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Approved!

@dstrodtman
dstrodtman merged commit 73fbc03 into master Sep 23, 2026
7 checks passed
@dstrodtman
dstrodtman deleted the djs-260923-docs-reviewers-fallback branch September 23, 2026 18:56
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
ray-project#66429)

## Description

The `/doc/` catch-all lists `@ray-project/ray-docs-reviewers` as a
silent fallback (notifications disabled), so docs leads can unblock a
docs-required review when no one else is available. The per-library doc
rules added in ray-project#65704 and earlier didn't carry it over.

CODEOWNERS is last-match-wins: the more specific library rule replaces
the catch-all's owners instead of adding to them. So every file under a
library doc directory lost the fallback. That covers all four LLM doc
rules (`llm/`, `serve/llm/`, `data/working-with-llms.rst`,
`data/doc_code/working-with-llms/`) and the other 11 library doc rules
(`cluster/`, `cluster/kubernetes/`, `ray-core/`, `ray-observability/`,
`ray-more-libs/`, `data/`, `rllib/`, `tune/`, `train/`, `ray-air/`,
`serve/`).

This PR adds `@ray-project/ray-docs-reviewers` to each of those 15 rules
and records the invariant in the catch-all comment: every rule that
lists `ray-docs` must also list `ray-ci` or `ray-docs-reviewers`.

The fallback is `ray-docs-reviewers` rather than `ray-ci` because the
team has notifications disabled, so library doc PRs don't page anyone
new. Library teams and `ray-docs` keep exactly the ownership they had.

## Related issues

Follows up on ray-project#65704, which introduced the per-library doc rules.

## Additional information

**Verification**

- After the change, `grep` finds no CODEOWNERS rule that lists
`@ray-project/ray-docs` without `ray-ci` or `ray-docs-reviewers`.
- `gh api repos/ray-project/ray/codeowners/errors?ref=<this branch>`
reports no new errors. The only two errors (unknown owner `@jackfrancis`
on the Azure autoscaler lines) exist identically on `master`.
- `ray-docs-reviewers` already appears on `/doc/` and
`/.readthedocs.yaml`, so this introduces no new team reference.

**Not a duplicate:** The only other open PR touching CODEOWNERS is
ray-project#65951, which edits the `.buildkite` rules and doesn't overlap these
lines.

**AI assistance:** AI assistance (Claude Code) was used to draft this
change. I reviewed every line and stand behind it.

🤖 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

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