Repository navigation
Conversation
Signed-off-by: entlein <einentlein@gmail.com>
|
Warning Review limit reached
Next review available in: 15 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (37)
📝 WalkthroughWalkthroughRule expressions in ChangesApplication-profile helper namespace migration
Estimated code review effort: 1 (Trivial) | ~5 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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. 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 `@rules-crd.yaml`:
- Line 149: Update the R0005 and R0040 source rule definitions under pkg/rules
to use the cp.* expression references, then regenerate rules-crd.yaml with
gen.sh (or apply the equivalent synchronized CRD changes if it is
authoritative). Ensure the generated expressions match the updated source
definitions.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
Signed-off-by: entlein <einentlein@gmail.com>
|
@matthyx : I think, this one should be merged now that node-agent has the cp as default. It changes zero logic. WDYT? |
matthyx
left a comment
There was a problem hiding this comment.
The test check is failing hard — every rule package touched by this migration fails to compile at runtime with undeclared reference to 'cp':
ERROR: <input>:1:2: undeclared reference to 'cp' (in container '')
!cp.was_executed(event.containerId, ...)
.^
ERROR: <input>:1:17: undeclared reference to 'was_executed' (in container '')
18 of 18 touched rule test packages fail for the same reason (r0001, r0002, r0003, r0004, r0005, r0006, r0007, r0008, r0009, r0010, r0011, r0040, r1001, r1003, r1004, r1006, r1009, r1010, r1012). Full run: https://github.com/kubescape/rulelibrary/actions/runs/30835904504/job/95965102027
Root cause: go.mod still pins github.com/kubescape/node-agent v0.3.147, and that version's CEL engine doesn't register a cp (container profile) function library — only ap/nn are declared. The ap.*/nn.* → cp.* rename in this PR is correct as a rename, but it's not actually true yet that "node-agent has the cp as default" for the version this repo currently depends on.
Requesting changes: please bump the node-agent dependency to a version that registers the cp CEL namespace (or confirm which release adds it) before merging — otherwise every rule that was renamed here is silently disabled at runtime, not just failing in CI.
|
Following up on the CI failure: worth flagging a rollout-sequencing concern before this merges, separate from the compile error itself. Some downstream consumers of The good news is
No urgency to force this through before that's sorted out. |
Linking to kubescape/node-agent#862
Simple substitution should do the trick.
Summary by CodeRabbit