Repository navigation
test(ci): avoid self-hosted guard SIGPIPE - #13630
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 1 remains after this review. 📝 WalkthroughWalkthroughThe CI self-hosted guard now consumes complete permissions input and uses here-strings for admission and observer checks. These changes prevent upstream ChangesCI guard pipeline handling
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The CI guard preserves its validation behavior while avoiding pipefail-related failures, so it is ready to merge. 🚥 Pre-merge checks | ✅ 23 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (23 passed)
Full details: Description checkExplanation The description explains the root cause and implementation, but it omits the required Testing section and Checklist. It also does not state whether a demo video is unnecessary or provide review-status confirmations.
✨ Finishing Touches 💡 1📝 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 |
Summary
Fix the preflight guard crash exposed by larger workflow job blocks.
tests/test_ci_self_hosted_guard.shruns underpipefail. Its permissions parser exitedawkimmediately after the first permissions stanza, which can close the pipe while the upstreamprintfis still writing a largeadmission_block. That turns an otherwise successful guard into exit 1 with:Keep consuming the block after capturing the permissions stanza instead of exiting early. The parsed permission set is unchanged.
Observed on #13614 preflight job 106639077119.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Fixes preflight guard crashes in
tests/test_ci_self_hosted_guard.shcaused bySIGPIPEfromprintfunderpipefail.awkearly; it keeps consuming the block after capturing the permissions, so largeadmission_blocks no longer break the guard withprintf: write error: Broken pipe. The parsed permission set is unchanged.printf-to-greppipelines were replaced withgrephere-strings to eliminate the rest of theSIGPIPErisk.Written for commit 43b258b. Summary will update on new commits.
Summary by CodeRabbit