fix(quality-gates): fail coderabbit on non-zero exit - #767
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (3)
WalkthroughThis PR implements exit code validation for CodeRabbit CLI invocations in both the workflow executor and quality-gates automation layer. It adds comprehensive test coverage for the executor's WSL probe behavior and error paths, plus validation that non-zero exits trigger failures instead of silent pass results. ChangesNon-zero exit handling and test coverage
Sequence DiagramsequenceDiagram
participant Test
participant Executor as WorkflowExecutor
participant SpawnSync as spawnSync (WSL probe)
participant Exec as exec (CodeRabbit)
Test->>Executor: runCodeRabbitAnalysis with installation_mode='wsl'
Executor->>SpawnSync: probe WSL availability
SpawnSync-->>Executor: error ENOENT or status≠0
Executor-->>Test: return success:false + WSL guidance
Test->>Executor: runCodeRabbitAnalysis with installation_mode='native'
Executor->>Exec: run CodeRabbit CLI
Exec-->>Executor: { exitCode: 137, stdout, stderr }
Executor-->>Test: return success:false + exit code in error
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
📊 Coverage ReportCoverage report not available
Generated by PR Automation (Story 6.1) |
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 @.aiox-core/core/orchestration/workflow-executor.js:
- Line 832: The concatenation of stdout and stderr passed to
parseCodeRabbitOutput can merge the last line of stdout with the first line of
stderr; change the call in workflow-executor.js that builds the input for
parseCodeRabbitOutput (the expression currently using `${stdout || ''}${stderr
|| ''}`) to insert a newline separator (e.g., `${stdout || ''}\n${stderr ||
''}`) so stream boundaries are preserved before calling
this.parseCodeRabbitOutput.
🪄 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: Pro
Run ID: 9835c869-0e91-4692-aa53-d8646c96ede6
📒 Files selected for processing (5)
.aiox-core/core/orchestration/workflow-executor.js.aiox-core/core/quality-gates/layer2-pr-automation.js.aiox-core/install-manifest.yamltests/core/orchestration/workflow-executor-coderabbit.test.jstests/unit/quality-gates/layer2-pr-automation.test.js
f84375b to
15269ec
Compare
15269ec to
b9e242d
Compare
Summary
Validation
Fixes #763
Fixes #764
Summary by CodeRabbit
Bug Fixes
Tests