OCM-24551 | ci: align CodeRabbit review coverage for the CLI#3246
Conversation
Tune the CLI repo's CodeRabbit config around ROSA-specific file types and workflows so review automation follows local standards instead of provider-specific defaults.
|
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)
📝 WalkthroughWalkthroughThis PR updates CodeRabbit's review configuration in 🚥 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 |
|
@amandahla please review this when you can, low priority |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: amandahla, olucasfreitas 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 |
|
@olucasfreitas: 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. |
PR Summary
Align the ROSA CLI repository's CodeRabbit configuration with CLI-specific review surfaces instead of Terraform-provider defaults by extending path instructions for shell, Docker, Tekton, command-structure YAML, and CloudFormation paths, and by explicitly enabling only the review tools that fit this repo.
Detailed Description of the Issue
The Jira points to the Terraform provider's
.coderabbit.yamlas reference material, but the ROSA CLI repository has different code and configuration surfaces. The CLI already had a strong CodeRabbit baseline for Go code and docs, but it lacked targeted review guidance for important non-Go paths like shell scripts, Dockerfiles, Tekton pipelines, command structure YAML, and CloudFormation templates. This change keeps the provider as precedent while tailoring the final configuration to ROSA CLI standards, existing contributor workflow, and current CI/security reality.Related Issues and PRs
Type of Change
Previous Behavior
The repo-specific CodeRabbit configuration focused on Go, AWS-sensitive code, tests, docs, and GitHub metadata, and only explicitly enabled
golangci-lintandgitleaks. It did not provide targeted review instructions for shell scripts, Dockerfiles, Tekton YAML, command-structure YAML, or CloudFormation templates, and it did not make local tool choices explicit for several inherited scanner options.Behavior After This Change
CodeRabbit review guidance now explicitly covers the ROSA CLI repo's high-signal non-Go surfaces:
**/*.shfor hook and helper scripts**/Dockerfile*for build/runtime image changes.tekton/**/*.{yml,yaml}for Konflux/Tekton workflowscmd/rosa/structure_test/**/*.{yml,yaml}for command/flag contract filescmd/create/network/templates/**/*.yamlfor CloudFormation/network templatesThe config also explicitly keeps the local tool set CLI-specific by enabling
hadolint,shellcheck, andyamllint, while leavingcheckov,trivy, andmarkdownlintdisabled.How to Test (Step-by-Step)
Preconditions
OCM-24551yamlimport support in the local environmentTest Steps
.coderabbit.yamland confirm the new path instructions and tool toggles are tailored to ROSA CLI paths rather than copied from the Terraform provider.Expected Results
.coderabbit.yamlparses successfully.make pre-push-checkspasses.Proof of the Fix
inheritance,knowledge_base,language,reviewsmake pre-push-checkspassed: format check, build, lint, changed-files coverage, and unit/integration testsBreaking Changes
Breaking Change Details / Migration Plan
N/A
Developer Verification Checklist
[JIRA-TICKET] | [TYPE]: <MESSAGE>.make install-hookshas been run in this clone.make testpasses.make lintpasses.make rosapasses.Summary by CodeRabbit