NO-JIRA: Add CodeRabbit config to exclude autogenerated files - #7905
Conversation
Adds a .coderabbit.yaml configuration file that excludes all autogenerated files from CodeRabbit code reviews. This includes vendor directories, generated deepcopy/CRD/client/mock/protobuf files, generated API docs, and other mechanically produced code that is not suitable for automated review. Modeled after openshift/api's .coderabbit.yaml configuration. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
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: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughA new 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@enxebre: This pull request explicitly references no jira issue. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: enxebre 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.coderabbit.yaml:
- Around line 14-54: The path_filters entry "!client/**" excludes the client
package from sparse-checkout which breaks tooling and linting for files
importing client packages; remove or modify the "!client/**" filter in the
path_filters section so CodeRabbit and golangci-lint can fetch client/**, or
alternatively refactor the callers in test/integration/, hypershift-operator/,
control-plane-operator/, and control-plane-pki-operator/ to stop importing
client packages (clientsets, informers, apply configurations) so the exclusion
is safe; update the .coderabbit.yaml tools.golangci-lint settings only after
ensuring the client/** dependency is either included or eliminated.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Pro
Run ID: 8477d4b2-c12d-4604-8f5a-4f681dd06ed1
📒 Files selected for processing (1)
.coderabbit.yaml
|
missing exclusion for test textures under /testdata |
| language: en-US | ||
| reviews: | ||
| profile: chill | ||
| high_level_summary: false |
There was a problem hiding this comment.
Do we not find value in this?
| profile: chill | ||
| high_level_summary: false | ||
| review_status: true | ||
| commit_status: true |
There was a problem hiding this comment.
This and line 8 default to true already.
| commit_status: true | ||
| collapse_walkthrough: true | ||
| changed_files_summary: false | ||
| sequence_diagrams: false |
There was a problem hiding this comment.
Do we not find value in this?
|
|
||
| # Generated stringer files | ||
| - "!**/*_string.go" | ||
| tools: |
| knowledge_base: | ||
| code_guidelines: | ||
| enabled: true | ||
| filePatterns: |
There was a problem hiding this comment.
Do we not want to include the hypershift sme files here too?
|
/area ci-tooling |
- Enable high_level_summary and sequence_diagrams - Remove review_status and commit_status (already default to true) - Add gitleaks tool - Include .claude/agents/*.md and .cursor/rules/*.mdc in knowledge_base code guidelines filePatterns Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
/label tide/merge-method-squash |
Test fixture files under testdata/ are not meaningful to review as they are static test inputs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
/lgtm |
|
@bryan-cox: The DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
Scheduling tests matching the |
|
@enxebre: The following test failed, say
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. |
Summary
.coderabbit.yamlconfiguration file modeled after openshift/api's configvendor/andapi/vendor/directorieszz_generated*files (deepcopy, CRD manifests, swagger docs, etc.)client/directory (generated clientsets, informers, listers)cmd/install/assets/**/*.yaml(generated CRD install assets)karpenter-operator/controllers/karpenter/assets/*.yaml(generated Karpenter CRDs)*_mock.gofiles (mockgen generated)*.pb.go/*.pb.gw.go/generated.proto(protobuf generated)docs/content/reference/api.mdandaggregated-docs.md(generated API docs)cmd/infra/aws/delegating_client.go(generated delegating client)*_string.gofiles (stringer generated)Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit