Skip to content

OWNERS: sync master to release-8.1 - #69542

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

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

Conversation

@ti-chi-bot

@ti-chi-bot ti-chi-bot commented Jun 30, 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 the repository to better route reviews by file type and path.
    • Added more specific ownership coverage for several subdirectories, reducing ambiguous review assignment.
    • Refined team aliases and membership mappings to keep approvals and reviewers aligned with current ownership groups.
    • Adjusted a few path-specific review assignments so changes now reach the most relevant approvers faster.

@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 30, 2026
@ti-chi-bot

ti-chi-bot Bot commented Jun 30, 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. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. sig/planner SIG: Planner and removed approved labels Jun 30, 2026
@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The root OWNERS file switches from explicit approver/reviewer lists to a filters-based regex routing scheme. OWNERS_ALIASES is substantially expanded with new sig-critical-approvers-* and sig-community-* alias groups. Multiple package-level OWNERS files are added or corrected to assign proper approver aliases and disable parent owner inheritance.

Changes

OWNERS Routing and Alias Overhaul

Layer / File(s) Summary
Root OWNERS filter routing and OWNERS_ALIASES expansion
OWNERS, OWNERS_ALIASES
Root OWNERS replaces explicit lists with regex-path filters: go.mod$ routes to sig-critical-approvers-dep, all other paths route to sig-community-approvers/sig-community-reviewers. OWNERS_ALIASES header is updated; alias definitions are expanded with new sig-critical-approvers-tidb-lightning, sig-critical-approvers-dep, and others, plus large new sig-community-reviewers and sig-community-approvers membership lists.
New executor subdirectory OWNERS files
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
New OWNERS files added for executor subdirectories, all setting no_parent_owners: true. The parent pkg/executor/OWNERS adds a filter restricting analyze.*\.go$ to sig-approvers-stats; subdirectories assign sig-approvers-executor or sig-approvers-stats.
New and corrected package OWNERS files
pkg/ingestor/OWNERS, pkg/lightning/config/OWNERS, pkg/meta/metadef/OWNERS, pkg/metrics/OWNERS, pkg/sessionctx/vardef/OWNERS, pkg/util/naming/OWNERS
New OWNERS files added with no_parent_owners: true and appropriate approver aliases (sig-approvers-ddl, sig-critical-approvers-tidb-lightning, sig-approvers-metrics, sig-critical-approvers-tidb-server). pkg/meta/metadef and pkg/sessionctx/vardef use filter-based rules for critical files.
Corrected existing package OWNERS
pkg/dumpformat/OWNERS, pkg/dxf/OWNERS, pkg/session/OWNERS, pkg/statistics/OWNERS
Approver aliases corrected: pkg/dumpformat switches to sig-approvers-dumpling; pkg/dxf to sig-approvers-dxf; pkg/session splits routing between sig-critical-approvers-tidb-server and sig-approvers-ddl by filename pattern; pkg/statistics switches to sig-approvers-stats and adds component/statistics label.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • pingcap/tidb#67717: Modifies the same OWNERS/OWNERS_ALIASES configuration including sig-community-* sync documentation and approver/reviewer membership routing.
  • pingcap/tidb#68891: Modifies the same pkg/dumpformat/OWNERS, pkg/dxf/OWNERS, and overlapping OWNERS_ALIASES entries with approver alias swaps.
  • pingcap/tidb#69075: Modifies OWNERS_ALIASES sig-community-* alias memberships directly related to the community-sync rework in this PR.

Suggested labels

size/L, approved

Suggested reviewers

  • windtalker
  • wshwsh12

🐰 A filters map blooms where lists used to grow,
Aliases expand, the community flows,
Each package now knows just who holds the key,
No parent to borrow — own your directory!
The bunny hops on, ownership bright and free~ 🌸

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers the sync and change summary, but it omits the required issue line, checklist, and release note sections. Add the Issue Number line, complete the checklist, and include the release note block to match the repository template.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the OWNERS sync from master to release-8.1.
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: 2

🤖 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-10: The OWNERS fallback rule currently overlaps with the
go.mod-specific rule, so go.mod still picks up the generic approvers/reviewers
from the `.*` entry. Update the matching patterns in OWNERS so the fallback does
not apply to `go.mod`—for example by narrowing the generic rule or using a
negative lookahead—while keeping the `go\.mod$` entry mapped only to the dep
approvers.

In `@pkg/executor/OWNERS`:
- Around line 2-7: The OWNERS config for pkg/executor currently only assigns
approvers for files matching analyze.*\.go, so top-level package files like
adapter.go, admin.go, and BUILD.bazel end up with no fallback approver because
no_parent_owners is enabled. Update the OWNERS entries to add a catch-all local
rule or another fallback owner set that covers the remaining direct files in
pkg/executor/, while keeping the existing analyze.*\.go approver mapping intact.
🪄 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: d5aaa42c-fa07-4b02-b7ab-0c059ecf203a

📥 Commits

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

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🌐 Web query:

In Kubernetes/Prow OWNERS files, when multiple filtersregexes match the same path, areapproversandreviewers merged from all matching filters or does one rule take precedence?

💡 Result:

In Kubernetes/Prow OWNERS files, when multiple filters match a file path, the approvers and reviewers are merged from all matching filter configurations [1]. Prow evaluates these filters and aggregates the owners (approvers/reviewers) specified in every matching regex block for the given path [1]. Key points regarding the behavior of filters in Prow OWNERS files: 1. Aggregation (Merging): Prow's repository owners parser iterates through the defined filters for a file path. If a file matches multiple regex patterns defined in the filters map, the corresponding owners (approvers, reviewers, etc.) from each of those matching filters are combined into a collective set [1]. 2. Structural Requirement: When using the filters key in an OWNERS file, you must define all owner-related configurations (such as approvers, reviewers, and labels) inside the filters blocks [2][3]. Defining these keys at the top level of the OWNERS file alongside a filters block is generally invalid or deprecated, though some implementations or tooling may handle mixed configurations differently [2][4]. 3. File System Context: Filters are matched against paths relative to the directory containing the OWNERS file [2][3]. 4. Precedence: There is no strict "first-match-wins" precedence rule where only one filter applies; instead, the system is designed to allow additive ownership through the merging of all matching filter criteria [1]. It is important to note that while the Prow core logic supports this merging for various metadata, developers should verify if specific plugins (like the older versions of the approve plugin) fully support filters for all owner-related fields, as historical documentation has noted limitations in plugin-specific implementations [5][6]. Always prioritize the official Kubernetes community guidance on OWNERS files when configuring repository access [2][3].

Citations:


🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Inspect the OWNERS file and any nearby docs or configs that define ownership behavior.
git ls-files | rg '(^|/)OWNERS(\.yaml|\.yml)?$|owners'
printf '\n--- OWNERS files ---\n'
for f in $(git ls-files | rg '(^|/)OWNERS(\.yaml|\.yml)?$'); do
  echo "### $f"
  cat -n "$f"
  echo
done

printf '\n--- docs mentioning filters/OWNERS ---\n'
rg -n --hidden --glob '!**/.git/**' 'filters|OWNERS' .

Repository: pingcap/tidb

Length of output: 50368


Exclude go.mod from the fallback filter. go\.mod$ and .* both match go.mod, and matching OWNERS filters are additive, so go.mod will still inherit sig-community-approvers/sig-community-reviewers. Use a narrower fallback pattern or a negative lookahead if this file should route only to the dep approvers.

🤖 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 - 10, The OWNERS fallback rule currently overlaps with
the go.mod-specific rule, so go.mod still picks up the generic
approvers/reviewers from the `.*` entry. Update the matching patterns in OWNERS
so the fallback does not apply to `go.mod`—for example by narrowing the generic
rule or using a negative lookahead—while keeping the `go\.mod$` entry mapped
only to the dep approvers.

Comment thread pkg/executor/OWNERS Outdated
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.

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
printf 'Direct files in pkg/executor not matched by analyze filter:\n'
fd -t f . pkg/executor -d 1 \
  | sed 's#^\./##' \
  | grep -vE '^pkg/executor/OWNERS$' \
  | grep -vE '^pkg/executor/analyze.*\.go$' || true

printf '\nOWNERS files under pkg/executor:\n'
fd '^OWNERS$' pkg/executor | sed 's#^\./##'

Repository: pingcap/tidb

Length of output: 5033


Add a fallback owner for pkg/executor/

no_parent_owners: true leaves every direct file in pkg/executor/ without approvers unless it matches analyze.*\.go or has its own nested OWNERS file. That excludes files like adapter.go, admin.go, BUILD.bazel, and the rest of the top-level package files. Add a catch-all rule or another local OWNERS entry for the remaining files.

🤖 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, The OWNERS config for pkg/executor
currently only assigns approvers for files matching analyze.*\.go, so top-level
package files like adapter.go, admin.go, and BUILD.bazel end up with no fallback
approver because no_parent_owners is enabled. Update the OWNERS entries to add a
catch-all local rule or another fallback owner set that covers the remaining
direct files in pkg/executor/, while keeping the existing analyze.*\.go approver
mapping intact.

@ti-chi-bot ti-chi-bot closed this Aug 10, 2026
@ti-chi-bot
ti-chi-bot force-pushed the bot/sync-owners-to-release-8.1 branch from 6398479 to 986af29 Compare August 10, 2026 08:52
@ti-chi-bot

ti-chi-bot Bot commented Aug 10, 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

@ti-chi-bot ti-chi-bot Bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Aug 10, 2026
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