Skip to content

NETOBSERV-2488 Add coderabbit config#2596

Open
memodi wants to merge 2 commits intonetobserv:mainfrom
memodi:coderaabitconfig
Open

NETOBSERV-2488 Add coderabbit config#2596
memodi wants to merge 2 commits intonetobserv:mainfrom
memodi:coderaabitconfig

Conversation

@memodi
Copy link
Member

@memodi memodi commented Mar 25, 2026

Coderabbit config. Schema and description of config can be found here https://www.coderabbit.ai/integrations/schema.v2.json (easier to bring up in IDE)

Summary by CodeRabbit

  • Chores
    • Added configuration for automated code review and analysis.
    • Enabled a set of linters and scanners, disabled others, and configured path filters to ignore generated/vendor files.
    • Turned on automatic reviews for non-draft PRs (skips WIP), chat auto-replies, and “finishing touches” for docs and tests.
    • Configured knowledge-base web search for scoped learnings, issues, and PRs.

@openshift-ci
Copy link

openshift-ci bot commented Mar 25, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign jotak for approval. For more information see the Code Review Process.

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

@coderabbitai
Copy link

coderabbitai bot commented Mar 25, 2026

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: ec4ad6f9-e7cd-48f7-a18b-e40a07ba82bb

📥 Commits

Reviewing files that changed from the base of the PR and between 2996098 and 95fb5d0.

📒 Files selected for processing (1)
  • .coderabbit.yaml
✅ Files skipped from review due to trivial changes (1)
  • .coderabbit.yaml

📝 Walkthrough

Walkthrough

Adds a new .coderabbit.yaml configuring CodeRabbit review behavior: language/tone, automatic non-draft PR reviews (ignore titles containing “WIP”), tool enablement and path filters, review features (summaries, status, related issues/PRs), finishing-touch automation, chat auto-replies, and knowledge-base web search.

Changes

Cohort / File(s) Summary
CodeRabbit configuration
​.coderabbit.yaml
New configuration file added. Sets review language/tone, disables early access, enables automatic reviews for non-draft PRs while ignoring WIP titles, and enables review features (high-level summaries, collapsed walkthroughs, changed-files summaries, review status, related issues/PRs).
Tooling & filters
​.coderabbit.yaml
Enables specific linters/tools: shellcheck, yamllint, hadolint, gitleaks, actionlint, checkov; disables golangci-lint and many other language linters. Applies path filters to exclude !**/zz_generated.deepcopy.go and !vendor/.
Automation & KB
​.coderabbit.yaml
Enables “finishing touches” for docstrings and unit tests, chat auto-replies, and knowledge-base web search with automatic scoping for learnings, issues, and PRs.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description provides context and a reference link but is sparse. It lacks required template sections including detailed description, dependencies, and QE requirement selection. Complete the PR description template by filling in the Description section, Dependencies, and selecting one QE requirement option from the Checklist.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title 'NETOBSERV-2488 Add coderabbit config' clearly and accurately describes the main change—adding a CodeRabbit configuration file to the repository.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@memodi memodi requested review from jotak, jpinsonneau and stleerh March 25, 2026 19:47
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
.coderabbit.yaml (1)

33-33: Resolve or track the TODO before it goes stale.

Line 33 leaves exclusion scope open-ended. Prefer linking a follow-up issue (or adding the known patterns now) so this doesn’t get forgotten.

I can draft a concrete path_filters list for common generated/vendor paths if you want.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.coderabbit.yaml at line 33, The TODO comment "add more paths that we can
exclude" in .coderabbit.yaml should not be left open-ended: either populate the
path_filters list with common generated/vendor patterns (e.g., node_modules,
.venv, build/, dist/, vendor/, .cache/, .next/, target/) or add a linked
follow-up issue/placeholder (e.g., TODO with issue URL or issue-ID) to track
remaining exclusions; update the file to include the concrete patterns or the
issue reference and remove the vague TODO so the exclusion scope is explicit and
won't be forgotten.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.coderabbit.yaml:
- Line 33: The TODO comment "add more paths that we can exclude" in
.coderabbit.yaml should not be left open-ended: either populate the path_filters
list with common generated/vendor patterns (e.g., node_modules, .venv, build/,
dist/, vendor/, .cache/, .next/, target/) or add a linked follow-up
issue/placeholder (e.g., TODO with issue URL or issue-ID) to track remaining
exclusions; update the file to include the concrete patterns or the issue
reference and remove the vague TODO so the exclusion scope is explicit and won't
be forgotten.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e0ef1e0a-4e59-4271-a7c9-8ae08729fa37

📥 Commits

Reviewing files that changed from the base of the PR and between 12e06e5 and 2996098.

📒 Files selected for processing (1)
  • .coderabbit.yaml

@memodi memodi changed the title Add coderabbit config NETOBSERV-2488 Add coderabbit config Mar 25, 2026
@codecov
Copy link

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.41%. Comparing base (12e06e5) to head (95fb5d0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2596      +/-   ##
==========================================
+ Coverage   72.24%   72.41%   +0.17%     
==========================================
  Files         105      105              
  Lines       10851    10851              
==========================================
+ Hits         7839     7858      +19     
+ Misses       2531     2517      -14     
+ Partials      481      476       -5     
Flag Coverage Δ
unittests 72.41% <ø> (+0.17%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant