ci: generalize code growth guardrails#4318
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdds a GitHub Actions workflow job that queries PR file diffs and enforces three guard rules: net-neutral changes for ChangesCodebase Growth Guardrails
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested labels
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)
Comment |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
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 @.github/workflows/codebase-growth-guardrails.yaml:
- Around line 85-87: The current gh api jq filter that builds rows uses
select(.filename | startswith("test/e2e/")) and thus blocks all changes under
test/e2e/; update that filter (and the related guard logic handling rows later
around the block at lines 106-119) to only select the E2E coverage paths you
intend to guard (for example paths under test/e2e/.../coverage or a specific
coverage directory pattern) rather than every file under test/e2e/, and ensure
the later checks that reject PR additions apply to those narrowed coverage paths
only (leave runtime/metadata paths like test/e2e/runtime/* excluded).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: ecb27f17-0dae-4634-8d4d-dfa87536f8a0
📒 Files selected for processing (1)
.github/workflows/codebase-growth-guardrails.yaml
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
…dget Compact the discord plugins.entries enablement added in this PR into a single inline statement so net Python additions are ≤0 under the generalized code growth guardrails (#4318). Behavior is unchanged; the existing test/generate-openclaw-config.test.ts coverage still asserts the discord plugin entry is registered when channels.discord is set. Signed-off-by: Shawn Xie <shaxie@nvidia.com>
Summary
test/e2e/suite and points new E2E coverage totests/e2e-scenario/Validation
ruby -e 'require "yaml"; YAML.load_file(".github/workflows/codebase-growth-guardrails.yaml"); puts "yaml ok"'git diff --checkSummary by CodeRabbit