Detect duplicate labels in label-sync validation#79376
Detect duplicate labels in label-sync validation#79376openshift-merge-bot[bot] merged 2 commits into
Conversation
The presubmit label validation only checked description lengths, so a repo/org label duplicating a default label passed CI but broke the periodic-label-sync job at runtime. Add checks for labels duplicated across default, org, and repo scopes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Walkthrough
ChangesLabel duplicate detection validation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 12✅ Passed checks (12 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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 `@hack/validate-labels.py`:
- Line 55: Remove the redundant f-string prefix from the print statement that
outputs "Label validation errors:"—replace print(f"Label validation errors:")
with a normal string literal print("Label validation errors:") and scan nearby
print statements for any other unnecessary f-prefixes to avoid Ruff F541.
🪄 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 YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 0d93603a-9949-4599-9b52-594971049f05
📒 Files selected for processing (1)
hack/validate-labels.py
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
[REHEARSALNOTIFIER] Note: If this PR includes changes to step registry files ( Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
@petr-muller: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions 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. I understand the commands that are listed here. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: petr-muller, Prucek The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Summary
periodic-label-syncjob started failing because a repo-specific label (ViaQ/vector: tide/merge-method-squash) duplicated a default label, whichlabel_synctreats as invalid configcheck-labelsvalidation (hack/validate-labels.py) only checked description lengths, so the duplicate passed CITest plan
periodic-label-syncfailure (ViaQ/vectorredefiningtide/merge-method-squashfrom default)🤖 Generated with Claude Code
Label validation added to prevent periodic label-sync failures
What changed:
Why it matters:
Scope / impact:
Tests: