Skip to content

OWNERS: sync master to release-8.1#69500

Open
ti-chi-bot wants to merge 1 commit into
release-8.1from
bot/sync-owners-to-release-8.1
Open

OWNERS: sync master to release-8.1#69500
ti-chi-bot wants to merge 1 commit into
release-8.1from
bot/sync-owners-to-release-8.1

Conversation

@ti-chi-bot

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

Copy link
Copy Markdown
Member

What problem does this PR solve?

Sync OWNERS* files from master to release-8.1.

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
    • Updated ownership rules across multiple areas to better route review and approval responsibilities.
    • Added finer-grained approval paths for specific files and directories, including separate handling for critical changes.
    • Expanded and refreshed reviewer/approver group mappings for several components.
    • Updated labels and ownership coverage for some areas to reflect the new review structure.

skip-checks: true
Signed-off-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
@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 27, 2026
@ti-chi-bot

ti-chi-bot Bot commented Jun 27, 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 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:
Once this PR has been reviewed and has the lgtm label, please assign benjamin2037, hawkingrei, likidu for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

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

@ti-chi-bot ti-chi-bot Bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed approved labels Jun 27, 2026
@coderabbitai

coderabbitai Bot commented Jun 27, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

This PR rewrites repository ownership metadata: the root OWNERS and alias lists are restructured, executor and several package OWNERS files are added or updated, and some paths now use regex-based ownership filters.

Changes

Ownership governance updates

Layer / File(s) Summary
Root routing and alias refresh
OWNERS, OWNERS_ALIASES
Root OWNERS now routes go.mod and all other files through filters, and OWNERS_ALIASES refreshes the documented alias groups and membership lists.
Executor subtree ownership
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
Executor directories add no_parent_owners rules, with analyze files routed to stats approvers and the executor subdirectories routed to executor approvers.
Package approver switches
pkg/dumpformat/OWNERS, pkg/dxf/OWNERS, pkg/lightning/config/OWNERS, pkg/ingestor/OWNERS, pkg/metrics/OWNERS, pkg/statistics/OWNERS, pkg/util/naming/OWNERS
Package OWNERS files switch approver groups for dumpformat, dxf, lightning, ingestor, metrics, statistics, and util/naming, and statistics also updates labels.
Regex-based ownership rules
pkg/meta/metadef/OWNERS, pkg/session/OWNERS, pkg/sessionctx/vardef/OWNERS
Session, metadef, and vardef OWNERS files replace single-match rules with filename filters that route specific paths to critical, meta, or DDL approver groups.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • pingcap/tidb#69073: Updates the repo’s OWNERS and OWNERS_ALIASES membership lists and sync guidance in the same governance files.
  • pingcap/tidb#69074: Changes Kubernetes-style OWNERS membership/routing metadata, which overlaps with the ownership rule updates here.
  • pingcap/tidb#68891: Updates package ownership groups for pkg/dumpformat and pkg/dxf, matching two of the directory-level owner switches in this PR.

Suggested reviewers

  • windtalker
  • wshwsh12
  • GMHDBJD

Poem

I hopped through OWNERS by starlight bright,
Swapped little rule-cards in the night.
🐰 A carrot for aliases, crisp and neat,
Then thump-thump—governance landed on its feet.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers the problem and change, but it misses required template items like Issue Number, checklist, side effects, documentation, and release note. Add the required Issue Number line, checklist, side effects, documentation, and release-note sections, or note the allowed auto-generated exception if applicable.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the OWNERS sync from master to release-8.1 and matches the files changed.
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.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch bot/sync-owners-to-release-8.1

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.

@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: 3

🤖 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 4-9: The OWNERS fallback matcher still captures go.mod changes
because the broad pattern overlaps with the go.mod rule. Update the OWNERS
matchers so the fallback entry explicitly excludes go.mod, using the existing
go.mod and wildcard patterns as the reference points, so changes to dependency
files remain owned only by sig-critical-approvers-dep.

In `@pkg/executor/OWNERS`:
- Around line 2-7: Restore ownership coverage in the OWNERS file by adding a
broader filter or additional rules so files under pkg/executor beyond
analyze*.go still inherit approvers despite no_parent_owners: true. Update the
OWNERS configuration to cover the remaining pkg/executor files and
subdirectories such as internal, lockstats, metrics, test, and testdata, using
the existing OWNERS entries and filter structure as the place to make the
change.

In `@pkg/meta/metadef/OWNERS`:
- Around line 5-10: The catch-all ".*" owner rule in OWNERS overlaps with the
existing "(OWNERS|system_tables_def\\.go)$" rule, so those restricted paths end
up getting sig-approvers-meta as well. Update the OWNERS patterns to explicitly
exclude OWNERS and system_tables_def.go from the catch-all, or split the rule
set so the restricted paths remain covered only by
sig-critical-approvers-tidb-server; use the existing rule keys in OWNERS to
place the exclusion cleanly.
🪄 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: f3b38fc0-0410-46f7-9b5e-69596a66ddf2

📥 Commits

Reviewing files that changed from the base of the PR and between 986af29 and 64c5f23.

📒 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
Comment on lines +4 to +9
go\.mod$:
approvers:
- sig-critical-approvers-dep
.*:
approvers:
- sig-community-approvers

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify that the current OWNERS filters overlap for go.mod.
python3 - <<'PY'
import re

patterns = [r"go\.mod$", r".*"]
for path in ["go.mod", "pkg/example/go.mod", "README.md"]:
    print(path, "=>", [p for p in patterns if re.search(p, path)])
PY

Repository: pingcap/tidb

Length of output: 242


Exclude go.mod from the fallback matcher.
go\.mod$ also matches pkg/example/go.mod, and .* matches the same paths, so Prow will still accumulate sig-community-approvers for go.mod changes. Make the fallback pattern explicitly exclude go.mod so dependency-owned files stay gated to sig-critical-approvers-dep.

🤖 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 4 - 9, The OWNERS fallback matcher still captures go.mod
changes because the broad pattern overlaps with the go.mod rule. Update the
OWNERS matchers so the fallback entry explicitly excludes go.mod, using the
existing go.mod and wildcard patterns as the reference points, so changes to
dependency files remain owned only by sig-critical-approvers-dep.

Comment thread pkg/executor/OWNERS
Comment on lines +2 to +7
options:
no_parent_owners: true
filters:
"analyze.*\\.go$":
approvers:
- sig-approvers-stats

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Direct files under pkg/executor not matched by analyze.*\\.go$:"
find pkg/executor -maxdepth 1 -type f | sort | grep -Ev '/(OWNERS|analyze.*\.go)$' || true

echo
echo "Immediate child directories without their own OWNERS file:"
find pkg/executor -mindepth 1 -maxdepth 1 -type d | sort | while read -r dir; do
  [ -f "$dir/OWNERS" ] || echo "$dir"
done

Repository: pingcap/tidb

Length of output: 4903


Restore ownership coverage for the rest of pkg/executor.

no_parent_owners: true cuts off inheritance, but the only filter here covers analyze*.go. Every other file under pkg/executor—plus child directories like internal, lockstats, metrics, test, and testdata that have no OWNERS file—loses approver coverage.

🤖 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/executor/OWNERS` around lines 2 - 7, Restore ownership coverage in the
OWNERS file by adding a broader filter or additional rules so files under
pkg/executor beyond analyze*.go still inherit approvers despite
no_parent_owners: true. Update the OWNERS configuration to cover the remaining
pkg/executor files and subdirectories such as internal, lockstats, metrics,
test, and testdata, using the existing OWNERS entries and filter structure as
the place to make the change.

Comment thread pkg/meta/metadef/OWNERS
Comment on lines +5 to +10
"(OWNERS|system_tables_def\\.go)$":
approvers:
- sig-critical-approvers-tidb-server
".*":
approvers:
- sig-approvers-meta

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🌐 Web query:

In Kubernetes/Prow OWNERS files, when multiple filters entries match the same path, are approvers merged from all matches or does one filter take precedence?

💡 Result:

In Kubernetes/Prow OWNERS files, when multiple filters entries match the same path, the approvers (and reviewers) are merged from all matching filters [1][2]. The Prow repoowners package evaluates filters by applying the configuration defined in each matching regex key [1]. Internally, when determining the set of approvers or reviewers for a file, Prow gathers the owners defined across all filters that match the file's path [1][2]. This additive behavior means that if multiple filter regexes match a single file, the effective set of approvers is the union of the approvers defined in each of those matching filter blocks [1]. It is important to note that when using filters, you should not define approvers or reviewers at the top level of the OWNERS file, as they must be defined within the filters blocks [3][4]. While some tools or specific implementations may have historically ignored or handled mixed configurations differently, standard Prow logic treats the filters as an additive configuration mechanism for identifying relevant owners [1][2].

Citations:


Exclude OWNERS and system_tables_def.go from the catch-all rule
".*" also matches those paths, so sig-approvers-meta is added alongside sig-critical-approvers-tidb-server. If those files should stay restricted, split the catch-all or add an explicit exclusion.

🤖 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/meta/metadef/OWNERS` around lines 5 - 10, The catch-all ".*" owner rule
in OWNERS overlaps with the existing "(OWNERS|system_tables_def\\.go)$" rule, so
those restricted paths end up getting sig-approvers-meta as well. Update the
OWNERS patterns to explicitly exclude OWNERS and system_tables_def.go from the
catch-all, or split the rule set so the restricted paths remain covered only by
sig-critical-approvers-tidb-server; use the existing rule keys in OWNERS to
place the exclusion cleanly.

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/XXL Denotes a PR that changes 1000+ 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