Skip to content

.github: fill CODEOWNERS gaps - #72877

Merged
batrick merged 4 commits into
ceph:mainfrom
dvanders:wip-codeowners-coverage
Oct 23, 2026
Merged

batrick merged 4 commits into
ceph:mainfrom
dvanders:wip-codeowners-coverage

Conversation

@dvanders

@dvanders dvanders commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #72875. Several paths that .github/labeler.yml already assigns to a component have no CODEOWNERS entry, so a PR touching only those paths gets the team's label but no review request from that team. The first commit adds the owner the labeler already implies, and nothing else:

team added
crimson qa/suites/crimson-rados
core the core mgr modules (balancer, crash, devicehealth, insights, localpool, osd_perf_query, osd_support, pg_autoscaler, progress) and the mgr python framework files next to /src/mgr; src/test/{librados,mon,mgr}; the kvstore, monstore, objectstore, crush, monmap and osdmap tools
rbd the immutable object cache: tool, tests, qa tasks, options, systemd units
rgw src/cls/timeindex, src/test/librgw_*, the rgw mgr module, qa/tasks/kafka_failover.py
smb qa/tasks/smb.py, qa/workunits/smb, paired with @ceph/orchestrators like the other smb entries

The second commit covers component code that neither file assigns but whose owner is not in doubt:

team added
orchestrators src/ceph-node-proxy, the ceph_secrets mgr module
orchestrators + cephfs the nfs mgr module, which manages both the NFS service and its CephFS exports
core src/osdc, src/crypto, src/compressor, src/extblkdev, src/test/objectstore, qa/objectstore, qa/objectstore_debug
crimson qa/objectstore_crimson, qa/suites/crimson-rados-experimental

The third commit asks the release manager to review the release files: PendingReleaseNotes, doc/releases (with doc-writers), qa/distros, qa/releases and src/ceph_release, and, together with @ceph/core, which maintains them, qa/suites/upgrade and qa/overrides/upgrade_ignorelist_health.yaml, the ignorelist the upgrade suites share.

The fourth commit, moved here from #72875, adds a CephFS section: the paths the labeler maps to cephfs, plus qa/cephfs (the overrides shared by every fs suite), the CephFS tests and tools, the mount.ceph helper and the stats module. It sits after core, so MDSMonitor.* and FSCommands.* ask both @ceph/core and @ceph/cephfs.

The first commit also drops three entries that match no file: qa/tasks/mgr/test_cephadm_orchestrator.py (removed in 2020), src/spawn (removed in 2024) and src/test/cls_otp (never added).

Each team, please check your own lines; if a path should go elsewhere or be left unowned, say so and I'll adjust.

Two calls I made that may deserve a second look:

  • mgr_module.py, mgr_util.py and the other mgr framework files go to @ceph/core, since core owns /src/mgr, although every mgr module depends on them.
  • The smb qa files are paired with orch, matching the existing smb lines, rather than owned by @ceph/smb alone.

Not in this PR

Some busy paths have no owner and no obvious one: src/common, src/include, src/auth, src/messages, the prometheus and telemetry mgr modules, and shared qa plumbing such as the rest of qa/overrides, qa/config and qa/clusters. Those need a decision from the teams rather than a mechanical change.

Two teams named in or relevant to CODEOWNERS lack write access to this repo, so GitHub silently skips them: @ceph/ceph-csi-maintainers (already listed for /doc/csi/, flagged by GitHub's CODEOWNERS check) and @ceph/nvmeof. Fixing that needs an org admin.

Testing

I resolved every tracked file against the new CODEOWNERS with git's wildmatch rules. Every file the labeler maps to crimson, core, rbd, rgw, smb, mon or mgr now has an owner, and no rule is left matching nothing. This PR gives an owner to 2,495 files (885 from the first three commits, 1,610 from the CephFS section); unowned files on main drop from 5,441 to 2,946 (of 14,985).

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)

Several paths that .github/labeler.yml maps to a component have no
CODEOWNERS entry, so a PR touching only those paths is labelled for a
team but never sent to it. Add the owner the labeler already implies:

- crimson: qa/suites/crimson-rados
- core: the core mgr modules (balancer, crash, devicehealth,
  insights, localpool, osd_perf_query, osd_support, pg_autoscaler,
  progress) and the mgr python framework files, which sit next to
  /src/mgr; src/test/librados, src/test/mon, src/test/mgr; and the
  kvstore, monstore, objectstore, crush, monmap and osdmap tools
- rbd: the immutable object cache (tool, tests, qa tasks, options,
  systemd units)
- rgw: src/cls/timeindex, the librgw_* tests, the rgw mgr module and
  the kafka_failover qa task
- smb: qa/tasks/smb.py and qa/workunits/smb, paired with
  @ceph/orchestrators like the other smb entries

Also drop three entries that no longer match any file:
qa/tasks/mgr/test_cephadm_orchestrator.py (removed in 2020),
src/spawn (removed in 2024) and src/test/cls_otp (never added).

Assisted-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Dan van der Ster <[email protected]>
Some component code has no CODEOWNERS entry although its owner is not
in doubt. Add:

- orchestrators: src/ceph-node-proxy and the ceph_secrets mgr module
- orchestrators and cephfs: the nfs mgr module, which manages both
  the NFS service and its CephFS exports
- core: src/osdc, src/crypto, src/compressor, src/extblkdev,
  src/test/objectstore, qa/objectstore and qa/objectstore_debug
- crimson: qa/objectstore_crimson and
  qa/suites/crimson-rados-experimental

Assisted-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Dan van der Ster <[email protected]>
The release notes, the release and distro definitions used by qa, and
the upgrade suites have no CODEOWNERS entry, although the release
manager curates all of them. Add @ceph/ceph-release-manager for
PendingReleaseNotes, doc/releases (with doc-writers), qa/distros,
qa/releases and src/ceph_release, and together with @ceph/core, which
maintains the upgrade suites, for qa/suites/upgrade and the
ignorelist shared by the upgrade suites.

Assisted-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Dan van der Ster <[email protected]>
CODEOWNERS has no entry for @ceph/cephfs, so changes to CephFS code, or
to qa/cephfs/ where the overrides shared by the fs suites live, are not
sent to the CephFS team, even though every fs suite (and
orch/cephadm/nfs, which links to fs/nfs) picks up qa/cephfs. ceph#70177 is
an example: a reasonable fix for the NFS suite that also reached all fs
suites, which only became apparent after it merged (see ceph#72636).

Add a CephFS section, covering the paths the labeler maps to cephfs plus
qa/cephfs, the CephFS tests and tools, the mount.ceph helper and the
stats module. It goes after the core section so that MDSMonitor and
FSCommands keep @ceph/core and add @ceph/cephfs.

Assisted-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Dan van der Ster <[email protected]>
dvanders added a commit to dvanders/ceph that referenced this pull request Oct 21, 2026
The labeler's cephfs rule misses qa/cephfs/, where the overrides shared
by the fs suites live, so a change there is not labelled cephfs, even
though every fs suite (and orch/cephadm/nfs, which links to fs/nfs)
picks it up. ceph#70177 is an example: a reasonable fix for the NFS suite
that also reached all fs suites, which only became apparent after it
merged (see ceph#72636).

Add qa/cephfs/** to the labeler's cephfs rule. The matching CODEOWNERS
entries are in ceph#72877.

Assisted-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: Dan van der Ster <[email protected]>
@batrick
batrick merged commit 9d6f50d into ceph:main Oct 23, 2026
17 checks passed
Comment thread .github/CODEOWNERS
/src/test/test_rgw* @ceph/rgw

# releases
/PendingReleaseNotes @ceph/ceph-release-manager

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.

I'd question this assignment. AFAIU individual release note drafts are owned by the respective components, there isn't an expectation of an approval from the release manager before e.g. an RBD PR containing a release note worthy change gets merged. (I said release note drafts because the wording in PendingReleaseNotes isn't final: it often gets massaged as part of an actual release PR (i.e. one against doc/releases) and sometimes doesn't get used at all -- for the last couple of stable releases Yuri went purely with an AI-summarized git log.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants