Conversation
…red definitions Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
📝 WalkthroughWalkthroughThe pull request introduces a Make target Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 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)
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. Review rate limit: 0/1 reviews remaining, refill in 60 minutes.Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
.github/workflows/test.yml (1)
55-56: ⚡ Quick winAdd a drift check after CRD generation
After Line 56, consider failing the job if
rules-crd.yamlchanges, so stale generated artifacts don’t slip through PRs.Suggested CI tweak
- - name: Generate Rules CRD - run: make generate-rules-crd + - name: Generate Rules CRD + run: | + make generate-rules-crd + git diff --exit-code -- rules-crd.yaml🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/test.yml around lines 55 - 56, Add a new CI step after the "Generate Rules CRD" step that runs the same generator (or compares the generated file) and fails the job if rules-crd.yaml was modified: create a step named something like "Check rules-crd drift" that runs a git diff check (e.g., git diff --quiet -- rules-crd.yaml || (echo "rules-crd.yaml is out of date" && git --no-pager diff -- rules-crd.yaml && exit 1)) so the workflow will error when the generated rules-crd.yaml changes; reference the existing generate-rules-crd invocation to place this check immediately after it.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In @.github/workflows/test.yml:
- Around line 55-56: Add a new CI step after the "Generate Rules CRD" step that
runs the same generator (or compares the generated file) and fails the job if
rules-crd.yaml was modified: create a step named something like "Check rules-crd
drift" that runs a git diff check (e.g., git diff --quiet -- rules-crd.yaml ||
(echo "rules-crd.yaml is out of date" && git --no-pager diff -- rules-crd.yaml
&& exit 1)) so the workflow will error when the generated rules-crd.yaml
changes; reference the existing generate-rules-crd invocation to place this
check immediately after it.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: ebbd56fa-c9a5-42b0-8b97-2a3617a87891
📒 Files selected for processing (5)
.github/workflows/test.ymlMakefileREADME.mdpkg/rules/r1006-unshare-syscall/unshare-syscall.yamlrules-crd.yaml
…red definitions
Summary by CodeRabbit
Chores
Updates
Documentation