Skip to content

[docs] Map library-owned doc directories to their owning teams - #65704

Merged
dstrodtman merged 1 commit into
masterfrom
djs-260824-doc-codeowners-teams
Sep 4, 2026
Merged

dstrodtman merged 1 commit into
masterfrom
djs-260824-doc-codeowners-teams

Conversation

@dstrodtman

@dstrodtman dstrodtman commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Documentation directories that belong to a specific library used to fall through to the /doc/ catch-all rule in CODEOWNERS. That rule's owners are the docs teams plus ray-ci, so a library maintainer approving a doc change to their own feature did not satisfy the doc-path code-owner requirement. Those PRs stayed blocked on a separate docs-team approval even after the owning library had signed off.

This maps each library-owned content directory to its owning team, following the pattern the already-mapped directories use (@ray-project/ray-<team> @ray-project/ray-docs), so either the library or the docs team can unblock:

Directory Owner added Grounded in
doc/source/ray-observability/ ray-core observability (logging, metrics, dashboard) is core; no dedicated team, and the code falls to /python/ray/ → ray-core
doc/source/ray-more-libs/ ray-core integration libs (dask, modin, joblib, multiprocessing, raydp) → /python/ray/ → ray-core
doc/source/ray-air/ ray-train matches existing /python/ray/air/ @ray-project/ray-train
doc/source/llm/ ray-llm matches existing /python/ray/llm/ @ray-project/ray-llm and the serve/llm doc rule

(An earlier revision also mapped doc/source/workflows/, but that tree has no tracked files on master — Ray Workflows is deprecated — so a rule there would match nothing. Dropped after bot review flagged it.)

ray-docs stays as co-owner on every mapped path, so nothing that the docs team could review before it can review now; the change only lets the owning library self-unblock. Because CODEOWNERS is last-match-wins and these rules are more specific than /doc/, they take effect without touching any other rule.

What intentionally stays on the catch-all

The remaining /doc/ content is genuinely cross-project and correctly keeps the docs/CI owners: ray-overview, ray-references, ray-governance, ray-security, ray-contribute, apis, templates, and the build infrastructure (_ext, _static, _templates, _includes, _intersphinx, images). A comment on the catch-all rule now records that split so the boundary doesn't drift.

Not a duplicate

No open PR or rule touches these directories in CODEOWNERS; they were simply never given a specific rule. This continues the pattern established by the existing per-library doc rules (data, serve, train, tune, rllib, ray-core, cluster).

Verification

  • Enumerated every doc/source/* content directory and confirmed each is now either mapped to a library team or intentionally on the catch-all, and that each mapped directory has tracked content on master (via git ls-tree).
  • Confirmed each newly assigned team already owns the corresponding source tree in this same file, so no new team reference is introduced (GitHub validates that owner teams have repo access).
  • Confirmed last-match-wins ordering: each new rule is more specific than, and appears after, the /doc/ catch-all.

CODEOWNERS has no build/unit test; the checks above are the relevant verification.

AI assistance

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

@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 add specific code ownership rules for several documentation directories, including ray-observability, workflows, ray-more-libs, ray-air, and llm. It also adds explanatory comments clarifying the catch-all /doc/ ownership. There are no review comments, and I have no feedback to provide.

@dstrodtman dstrodtman added the go add ONLY when ready to merge, run all tests label Aug 24, 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 using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 884f152. Configure here.

Comment thread .github/CODEOWNERS Resolved
Documentation directories that belong to a library previously fell through
to the `/doc/` catch-all, whose non-docs owner is ray-ci and whose owners are
the docs teams. A core (or other library) maintainer approving such a PR did
not satisfy the doc-path code-owner requirement, so a change to library-owned
docs needed a separate docs-team review to merge even when the owning library
had already approved.

Map each library-owned content directory to its owning team, following the
existing `@ray-project/ray-<team> @ray-project/ray-docs` pattern so either the
library or the docs team can unblock:

- ray-observability, ray-more-libs -> ray-core
- ray-air -> ray-train (matches /python/ray/air/ ownership)
- llm -> ray-llm (matches /python/ray/llm/ and the existing serve/llm rule)

Each team already owns the corresponding code, so this routes doc review to
the people who own the feature. The `/doc/` catch-all now covers only
cross-project meta content (ray-overview, ray-references, ray-governance,
ray-security, ray-contribute, apis, templates) and the doc build
infrastructure, which is documented in a comment on the catch-all rule.

Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman
dstrodtman force-pushed the djs-260824-doc-codeowners-teams branch from 884f152 to 441a49f Compare August 24, 2026 18:14
@ray-gardener ray-gardener Bot added docs An issue or change related to documentation core Issues that should be addressed in Ray Core labels Aug 24, 2026

@ronny-anyscale ronny-anyscale 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.

🤙

@dstrodtman
dstrodtman merged commit a9db09a into master Sep 4, 2026
6 checks passed
@dstrodtman
dstrodtman deleted the djs-260824-doc-codeowners-teams branch September 4, 2026 19:56
dstrodtman added a commit that referenced this pull request Sep 23, 2026
#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 #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](https://claude.com/claude-code)

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…roject#65704)

## Summary

Documentation directories that belong to a specific library used to fall
through to the `/doc/` catch-all rule in CODEOWNERS. That rule's owners
are the docs teams plus `ray-ci`, so a library maintainer approving a
doc change to their own feature did **not** satisfy the doc-path
code-owner requirement. Those PRs stayed blocked on a separate docs-team
approval even after the owning library had signed off.

This maps each library-owned content directory to its owning team,
following the pattern the already-mapped directories use
(`@ray-project/ray-<team> @ray-project/ray-docs`), so either the library
or the docs team can unblock:

| Directory | Owner added | Grounded in |
|---|---|---|
| `doc/source/ray-observability/` | `ray-core` | observability (logging,
metrics, dashboard) is core; no dedicated team, and the code falls to
`/python/ray/` → `ray-core` |
| `doc/source/ray-more-libs/` | `ray-core` | integration libs (dask,
modin, joblib, multiprocessing, raydp) → `/python/ray/` → `ray-core` |
| `doc/source/ray-air/` | `ray-train` | matches existing
`/python/ray/air/ @ray-project/ray-train` |
| `doc/source/llm/` | `ray-llm` | matches existing `/python/ray/llm/
@ray-project/ray-llm` and the `serve/llm` doc rule |

(An earlier revision also mapped `doc/source/workflows/`, but that tree
has no tracked files on `master` — Ray Workflows is deprecated — so a
rule there would match nothing. Dropped after bot review flagged it.)

`ray-docs` stays as co-owner on every mapped path, so nothing that the
docs team could review before it can review now; the change only lets
the owning library self-unblock. Because CODEOWNERS is last-match-wins
and these rules are more specific than `/doc/`, they take effect without
touching any other rule.

### What intentionally stays on the catch-all

The remaining `/doc/` content is genuinely cross-project and correctly
keeps the docs/CI owners: `ray-overview`, `ray-references`,
`ray-governance`, `ray-security`, `ray-contribute`, `apis`, `templates`,
and the build infrastructure (`_ext`, `_static`, `_templates`,
`_includes`, `_intersphinx`, `images`). A comment on the catch-all rule
now records that split so the boundary doesn't drift.

### Not a duplicate

No open PR or rule touches these directories in CODEOWNERS; they were
simply never given a specific rule. This continues the pattern
established by the existing per-library doc rules (`data`, `serve`,
`train`, `tune`, `rllib`, `ray-core`, `cluster`).

### Verification

- Enumerated every `doc/source/*` content directory and confirmed each
is now either mapped to a library team or intentionally on the
catch-all, and that each mapped directory has tracked content on
`master` (via `git ls-tree`).
- Confirmed each newly assigned team already owns the corresponding
source tree in this same file, so no new team reference is introduced
(GitHub validates that owner teams have repo access).
- Confirmed last-match-wins ordering: each new rule is more specific
than, and appears after, the `/doc/` catch-all.

CODEOWNERS has no build/unit test; the checks above are the relevant
verification.

### AI assistance

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

Signed-off-by: Douglas Strodtman <[email protected]>
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

core Issues that should be addressed in Ray Core 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