Skip to content

OWNERS: sync master to release-8.5 - #69082

Closed
ti-chi-bot wants to merge 0 commit into
release-8.5from
bot/sync-owners-to-release-8.5
Closed

ti-chi-bot wants to merge 0 commit into
release-8.5from
bot/sync-owners-to-release-8.5

Conversation

@ti-chi-bot

@ti-chi-bot ti-chi-bot commented Jun 10, 2026

Copy link
Copy Markdown
Member

What problem does this PR solve?

Sync OWNERS* files from master to release-8.5.

What changed and how does it work?

This PR was auto-generated by Prow and only updates OWNERS and OWNERS_ALIASES files.

/release-note-none
skip-issue-check
lgtm
approved
cherry-pick-approved

Summary by CodeRabbit

  • Chores
    • Reorganized code ownership configuration from static approval lists to filter-based assignments for better flexibility and scalability.
    • Updated team approvers and reviewers across multiple components including executor, statistics, metadata, session, and data ingestion.
    • Added or restructured package-level ownership configurations to establish new code review workflows and governance policies.

@ti-chi-bot ti-chi-bot added approved cherry-pick-approved Cherry pick PR approved by release team. lgtm skip-issue-check Indicates that a PR no need to check linked issue. labels Jun 10, 2026
@ti-chi-bot

ti-chi-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ti-chi-bot ti-chi-bot Bot added do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. sig/planner SIG: Planner size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed approved labels Jun 10, 2026
@coderabbitai

coderabbitai Bot commented Jun 10, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR restructures the TiDB repository's approval governance by converting the root OWNERS file from static membership lists to filter-based path routing, extensively updating OWNERS_ALIASES with new team aliases and reorganized rosters, and establishing granular OWNERS configurations across 22 pkg/ subdirectories to enable specialized team approvals for executor, statistics, session, lightning, and domain-specific code paths.

Changes

Ownership governance restructure

Layer / File(s) Summary
Root governance filters and foundational alias updates
OWNERS, OWNERS_ALIASES (lines 4–24)
Root OWNERS switches to filter-based routing: go.mod routes to sig-critical-approvers-dep, all other paths to sig-community-approvers and sig-community-reviewers. OWNERS_ALIASES introduces sig-approvers-stats and sig-critical-approvers-dep, updates critical server and parser approver teams.
Core approver team roster updates
OWNERS_ALIASES (lines 43–172)
Executor, expression, lightning, domain, ddl, dxf, dumpling, infoschema, meta, owner, parser, resource-manager, table, lock, binlog, and planner approver teams are updated with reorganized membership; new members include fzzf678, bb7133, djshow832, xhebox, tiancaiamao, YangKeao, joechenrh, OliverS929.
Community approvers and reviewers roster expansion
OWNERS_ALIASES (lines 172–339)
Significantly expands sig-community-reviewers and sig-community-approvers alias membership by adding many contributor usernames, broadening community-level approval authority.
Executor package granular OWNERS assignments
pkg/executor/OWNERS, pkg/executor/aggfuncs/OWNERS, pkg/executor/aggregate/OWNERS, pkg/executor/join/OWNERS, pkg/executor/mppcoordmanager/OWNERS, pkg/executor/sortexec/OWNERS, pkg/executor/unionexec/OWNERS, pkg/executor/test/analyzetest/OWNERS
Creates individual OWNERS files across executor subdirectories with no_parent_owners: true and sig-approvers-executor routing; analyzetest directory routes to sig-approvers-stats for analyze-focused files.
Domain-specific and critical ownership filters
pkg/session/OWNERS, pkg/sessionctx/vardef/OWNERS, pkg/meta/metadef/OWNERS, pkg/ingestor/OWNERS, pkg/util/naming/OWNERS, pkg/lightning/config/OWNERS, pkg/dxf/OWNERS, pkg/dumpformat/OWNERS
Establishes fine-grained OWNERS files: session filters upgrade_def.go and bootstrap.go to distinct approver teams; sessionctx/vardef routes sysvar/tidb_vars to sig-critical-approvers-tidb-server; meta/metadef splits critical definitions from general code; ingestor, util/naming to sig-approvers-ddl; lightning/config to sig-critical-approvers-tidb-lightning; dxf/dumpformat updated to their respective approver teams.
Metrics and statistics approver reassignment
pkg/metrics/OWNERS, pkg/statistics/OWNERS
Statistics ownership transitions from planner to sig-approvers-stats with new component/statistics label; metrics OWNERS added with sig-approvers-metrics.

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • pingcap/tidb#68891: Updates OWNERS for dxf and dumpling with corresponding sig-approvers-dxf and sig-approvers-dumpling team assignments.
  • pingcap/tidb#68706: Modifies OWNERS_ALIASES membership for sig-community-* and sig-approvers-* teams related to this governance restructure.
  • pingcap/tidb#69073: Updates root-level OWNERS approvers/reviewers configuration connected to this PR's filter-based restructure.

Suggested labels

size/L, release-note-none, approved

Suggested reviewers

  • windtalker
  • wshwsh12

Poem

A rabbit hops through OWNERS trees, 🐰
Where filters route approvals with ease,
Teams restructured, rosters grow,
Granular paths let expertise flow! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is incomplete; it lacks required sections like 'What problem does this PR solve?' detail, issue number link, testing checklist, and release notes. Add detailed problem statement with issue number reference, complete the testing checklist (or select 'No need to test'), and fill in the release notes section properly.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: syncing OWNERS files from master to release-8.5 branch.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bot/sync-owners-to-release-8.5

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🧹 Nitpick comments (1)
pkg/metrics/OWNERS (1)

2-5: ⚡ Quick win

Consider adding labels for consistency with other OWNERS files.

Other OWNERS files in the repository include a labels section (e.g., pkg/planner/OWNERS has sig/planner, pkg/statistics/OWNERS has both sig/planner and component/statistics). Adding labels like sig/metrics or component/metrics would improve PR routing and maintain consistency with the governance structure.

📝 Suggested addition
 approvers:
   - sig-approvers-metrics
+labels:
+  - component/metrics
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@pkg/metrics/OWNERS` around lines 2 - 5, Add a labels section to this OWNERS
file to match repository conventions: include at least "sig/metrics" and
optionally "component/metrics" under a new labels key so PR routing and
governance are consistent; update the block that currently contains "options:"
and "approvers:" (referencing the existing options and approvers entries) to add
the labels list.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@OWNERS`:
- Around line 3-11: The fallback filter '.*' is overlapping with the 'go\.mod$'
filter causing approvers/reviewers to be unioned; update the fallback key (the
one currently '.*') to a negative-lookahead regex that excludes 'go\.mod$' (for
example use a pattern like '^(?!go\.mod$).*') so files matching 'go\.mod$' only
get the 'go\.mod$' approvers and reviewers and not the fallback ones.

---

Nitpick comments:
In `@pkg/metrics/OWNERS`:
- Around line 2-5: Add a labels section to this OWNERS file to match repository
conventions: include at least "sig/metrics" and optionally "component/metrics"
under a new labels key so PR routing and governance are consistent; update the
block that currently contains "options:" and "approvers:" (referencing the
existing options and approvers entries) to add the labels list.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 93c730d4-5751-4cd5-a276-8d8a8a894a0c

📥 Commits

Reviewing files that changed from the base of the PR and between df94eb7 and d9c9e98.

📒 Files selected for processing (21)
  • OWNERS
  • OWNERS_ALIASES
  • pkg/dumpformat/OWNERS
  • pkg/dxf/OWNERS
  • pkg/executor/OWNERS
  • pkg/executor/aggfuncs/OWNERS
  • pkg/executor/aggregate/OWNERS
  • pkg/executor/join/OWNERS
  • pkg/executor/mppcoordmanager/OWNERS
  • pkg/executor/sortexec/OWNERS
  • pkg/executor/test/analyzetest/OWNERS
  • pkg/executor/unionexec/OWNERS
  • pkg/ingestor/OWNERS
  • pkg/lightning/config/OWNERS
  • pkg/meta/metadef/OWNERS
  • pkg/metrics/OWNERS
  • pkg/objstore/OWNERS
  • pkg/session/OWNERS
  • pkg/sessionctx/vardef/OWNERS
  • pkg/statistics/OWNERS
  • pkg/util/naming/OWNERS

Comment thread OWNERS Outdated
Comment on lines +3 to +11
filters:
go\.mod$:
approvers:
- sig-critical-approvers-dep
.*:
approvers:
- sig-community-approvers
reviewers:
- sig-community-reviewers

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

In Kubernetes/Prow OWNERS files, when a path matches both a specific filter like go.mod$and a fallback filter like.*, are approversandreviewers merged from both filters or does one filter override the other?

💡 Result:

If a single OWNERS file has both a specific filter (e.g. go\.mod$) and a fallback filter (e.g. .*) whose regexes both match the same relative path, Prow merges the approvers and reviewers from all matching filters rather than having one override the other. In Kubernetes’ OWNERS filters format, each regex key maps to a “simple OWNERS configuration,” and path regexes are matched against paths relative to the OWNERS file where they are declared [1]. The Prow implementation represents approvers/reviewers as “layered” sets over the applicable OWNERS configuration, and the core question of whether entries from multiple layers accumulate is handled by set operations (union) when building the final approver candidates: OWNERS file–scoped approvers are unioned together [2]. Additionally, the repoowners logic computes approvers/reviewers “for the requested file” using layered entries across matching OWNERS content (including parent dirs), rather than choosing a single matching rule [3]. So, for your example where both go\.mod$ and .* match the same path under the same OWNERS file, the resulting approver/reviewer sets are the union of both filters’ approvers/reviewers entries (with deduplication because they’re sets) [3][2].

Citations:


Fix filter overlap: go.mod also matches fallback .*, so approvers/reviewers get unioned
In Prow Kubernetes OWNERS filters, entries from all matching regex keys accumulate (union) rather than one overriding the other. With go.mod, both go\.mod$ and .* match, so sig-community-approvers/sig-community-reviewers are added in addition to sig-critical-approvers-dep (OWNERS lines 3-11). Adjust the fallback .* to exclude go\.mod to preserve the dependency-critical approval boundary.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@OWNERS` around lines 3 - 11, The fallback filter '.*' is overlapping with the
'go\.mod$' filter causing approvers/reviewers to be unioned; update the fallback
key (the one currently '.*') to a negative-lookahead regex that excludes
'go\.mod$' (for example use a pattern like '^(?!go\.mod$).*') so files matching
'go\.mod$' only get the 'go\.mod$' approvers and reviewers and not the fallback
ones.

@ti-chi-bot ti-chi-bot closed this Jun 27, 2026
@ti-chi-bot
ti-chi-bot force-pushed the bot/sync-owners-to-release-8.5 branch from d9c9e98 to df2282c Compare June 27, 2026 12:43
@ti-chi-bot ti-chi-bot Bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jun 27, 2026
@ti-chi-bot

ti-chi-bot Bot commented Jun 27, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

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

Labels

cherry-pick-approved Cherry pick PR approved by release team. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. lgtm sig/planner SIG: Planner size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. skip-issue-check Indicates that a PR no need to check linked issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant