Skip to content

ci(labeler): map cert-manager, external-secrets and metrics-server scopes - #3362

Merged
myasnikovdaniil merged 1 commit into
mainfrom
ci/labeler-missing-scopes
Jul 20, 2026
Merged

myasnikovdaniil merged 1 commit into
mainfrom
ci/labeler-missing-scopes

Conversation

@lexfrei

@lexfrei Aleksei Sviridkin (lexfrei) commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does

PRs titled with the cert-manager, external-secrets or metrics-server scopes landed on area/uncategorized because the labeler's scope map had no entry for them — all three surfaced at once in the current port-collision series (#3359, #3360, #3361). metrics-server feeds the monitoring pipeline, so it maps to area/monitoring; cert-manager and external-secrets are platform services, so they map to area/platform.

Release note

NONE

Summary by CodeRabbit

  • Chores
    • Improved pull request labeling automation.
    • Pull requests involving metrics, certificate management, and external secrets are now categorized more accurately with the appropriate area labels.

…opes

PRs scoped to these three components fell through to
area/uncategorized because the scope map had no entry for them.
metrics-server serves the monitoring pipeline; cert-manager and
external-secrets are platform services.

Assisted-By: Claude <[email protected]>
Signed-off-by: Aleksei Sviridkin <[email protected]>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported.

@github-actions github-actions Bot added size/XS This PR changes 0-9 lines, ignoring generated files area/uncategorized PR auto-labeler could not map title scope to a known area/*; please review labels Jul 20, 2026
@dosubot dosubot Bot added the area/ci Issues or PRs related to CI workflows, GitHub Actions, automation label Jul 20, 2026
@coderabbitai

coderabbitai Bot commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 3f557786-d89f-474f-a72a-77da20da7350

📥 Commits

Reviewing files that changed from the base of the PR and between 7e206e2 and 0f4a271.

📒 Files selected for processing (1)
  • .github/workflows/pr-labeler.yaml

📝 Walkthrough

Walkthrough

The PR labeling workflow adds mappings for metrics-server, cert-manager, and external-secrets scopes to corresponding area labels.

Changes

PR label mappings

Layer / File(s) Summary
Add scope-to-area mappings
.github/workflows/pr-labeler.yaml
Maps metrics-server to area/monitoring, and cert-manager plus external-secrets to area/platform.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

Suggested reviewers: androndo

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: updating the CI labeler scope map for cert-manager, external-secrets, and metrics-server.
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 ci/labeler-missing-scopes

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.

@myasnikovdaniil myasnikovdaniil left a comment

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.

LGTM — trivial and correct, and the silent-no-op failure modes this class of change is prone to were all checked.

Business context: the three scopes in the current port-10250 series were missing from the labeler map, dropping their PRs into area/uncategorized.

Verified

  • Both target labels exist: .github/labels.yml:193 (area/monitoring) and :201 (area/platform).
  • The lookup is exact-string and case-sensitive — a plain object index at .github/workflows/pr-labeler.yaml:197, with the scope captured verbatim by the regex at :163 and multi-scope titles split at :192-195. So the keys have to match the conventional-commit scopes exactly, and they do:
PR Title scope Key added Match
#3359 cert-manager cert-manager exact
#3360 external-secrets external-secrets exact
#3361 metrics-server metrics-server exact
  • No duplicate keys — extracted all 73 keys from the map and checked: none repeated, so nothing is silently overridden by a later entry.
  • actionlint passes.

Follow-ups (both optional)

1. area/platform is a loose fit for two of the three. labels.yml:203 describes it as "platform infrastructure (bundle, flux, talos, installer)", whereas cert-manager and external-secrets are packages/system/* components. Per AGENTS.md the alternative to shoehorning is proposing a new area/*, which may be more than this PR wants to take on — reviewer's call. metrics-server → area/monitoring is a clean fit either way.

2. Cosmetic irony worth a smile: this PR's own title scope, ci(labeler), matches neither typeToKind nor scopeToArea, so it self-labels area/uncategorized — precisely the thing it fixes.

Note

E2E Tests is currently red on this PR. Given the change is three lines in a labeler map and touches no runtime path, that is almost certainly unrelated to the diff — worth a re-run rather than an investigation.

Pre-existing, not introduced here

pr-labeler.yaml:197 uses a bare scopeToArea[s] lookup that reaches Object.prototype, so a scope literally named constructor or toString would yield a truthy non-string and crash l.startsWith('area/') at :210. Practically unreachable, and Object.hasOwn would close it — mentioning only for completeness, not as something this PR should carry.

@myasnikovdaniil
myasnikovdaniil merged commit a152065 into main Jul 20, 2026
25 of 26 checks passed
@myasnikovdaniil
myasnikovdaniil deleted the ci/labeler-missing-scopes branch July 20, 2026 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci Issues or PRs related to CI workflows, GitHub Actions, automation area/uncategorized PR auto-labeler could not map title scope to a known area/*; please review size/XS This PR changes 0-9 lines, ignoring generated files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants