Skip to content

chore(codeowners): disable wildcard ownership rule - #3168

Draft
purp wants to merge 2 commits into
NVIDIA:mainfrom
purp:chore/codeowners-review-noise/purp
Draft

chore(codeowners): disable wildcard ownership rule#3168
purp wants to merge 2 commits into
NVIDIA:mainfrom
purp:chore/codeowners-review-noise/purp

Conversation

@purp

@purp purp commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

Disables the * rule in .github/CODEOWNERS, which matched every pull request and requested review from the 11-member @NVIDIA/openshell-codeowners team plus three named individuals regardless of what the change touched. The rule is commented rather than deleted so the prior ownership set stays visible. Reviewers opt in until area/topic-based routing lands.

With the wildcard gone, a handful of paths still need explicit owners: the files that decide who can approve anything. This PR adds them.

Related Issue

No issue required. This does not touch OpenShell platform code — it is maintenance of the project's own review machinery, and is non-breaking as merged.

Depends on the core-approval required status check landing and being registered on ruleset 13332227 first. Merging this before that leaves a window with neither gate enforcing.

Changes

  • Comment out the * @NVIDIA/openshell-codeowners @mrunalp @sjenning @derekwaynecarr wildcard rule and document why it is disabled.
  • Retain ownership of .github/VOUCHED.td so manual edits to the vouch list still require maintainer review.
  • Add explicit owners for the approval machinery — MAINTAINERS.md, .github/CODEOWNERS, .github/workflows/core-approval.yml, .github/zizmor.yml, and tasks/scripts/core_approval.py. A change to any of these silently redefines who can approve, so each keeps an owner after the wildcard is disabled. All entries are path-anchored (/MAINTAINERS.md, not MAINTAINERS.md) so a bare filename cannot match a nested path. Scoped to these five paths on purpose: owning all of .github/ would reintroduce the fan-out this PR removes.

Testing

  • mise run pre-commit passes
  • Unit tests added/updated — not applicable, no code change
  • E2E tests added/updated (if applicable) — not applicable

Verified require_code_owner_review is set in both the legacy branch protection on main and the main ruleset (id 13332227). Both stay enabled. With no owner matching most paths the requirement is vacuously satisfied, so PRs continue to merge on the existing single-approval rule; .github/VOUCHED.td and the approval machinery remain gated.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable) — not applicable

Interim step. Area/topic auto-labeling with per-area maintainer rosters is planned over the next week or so and will replace this with targeted routing.

@purp
purp requested review from a team, derekwaynecarr, mrunalp and sjenning as code owners September 3, 2026 18:57
The `*` rule matched every pull request and requested review from the
11-member openshell-codeowners team plus three named individuals,
notifying all of them regardless of what the change touched. Comment the
rule out rather than delete it so the prior ownership set stays visible
while reviewers opt in manually.

Ownership of `.github/VOUCHED.td` is retained so manual edits to the
vouch list still require maintainer review.

Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
@purp
purp force-pushed the chore/codeowners-review-noise/purp branch from b88642e to 4aca565 Compare September 3, 2026 19:01
@purp purp changed the title chore(codeowners): remove wildcard ownership rule chore(codeowners): disable wildcard ownership rule Sep 3, 2026
johntmyers
johntmyers previously approved these changes Sep 3, 2026
@purp
purp marked this pull request as draft September 3, 2026 19:32
@copy-pr-bot

copy-pr-bot Bot commented Sep 3, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@purp

purp commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator Author

Looking at this further, it overly broadens who can approve PRs landing (from 14 to 56 ppl) so I'm moving this to draft while I see if there are any more straightforward noise reduction choices available.

Comment thread .github/CODEOWNERS
@@ -1,5 +1,9 @@
# Broad ownership — core team reviews everything
* @NVIDIA/openshell-codeowners @mrunalp @sjenning @derekwaynecarr
# Broad ownership — disabled. This rule matched every pull request and

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.

Prefer to delete the lines rather than comment them out.

@johntmyers
johntmyers self-requested a review September 3, 2026 22:21
Signed-off-by: Jim Meyer <jimeyer@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants