fix(ci): avoid SIGPIPE in bump-platform-submodule first-line extraction#423
Conversation
`printf '%s\n' "$COMMIT_SUBJECT" | head -n 1` races under `set -o pipefail`: on a long commit body, `head` closes the pipe after the first line, `printf` dies with SIGPIPE on the next write, and the pipeline propagates the non-zero exit. The merge of #397 (squash body several KB) triggered it and blocked the platform-submodule bump (run 27208748580). Replace the pipe with pure bash parameter expansion — no subprocess, no pipe, nothing for pipefail to fail on. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe PR fixes a broken-pipe failure in the bump-platform-submodule workflow by replacing a ChangesBump Workflow Broken Pipe Fix
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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
Bump failproofai/oss gitlink and pushstep in.github/workflows/bump-platform-submodule.ymlfailed on the merge of feat(audit+auth): /audit dashboard, email-OTP auth (CLI + dashboard), SES-backed re-audit reminders, unified pixel-craft design system #397 withprintf: write error: Broken pipe(run 27208748580), blocking the platform-submodule bump.SUBJECT_LINE=$(printf '%s\n' "${COMMIT_SUBJECT:-Manual trigger}" | head -n 1)races underset -o pipefail.head -n 1reads the first line and closes the pipe;printfthen dies with SIGPIPE on the next write of the multi-KB squash-merge body;pipefailpropagates the non-zero exit andset -eaborts.pipefailto fail on.Test plan
yaml.safe_loadparses the updated workflow.main, so the next merge into main will exercise the fix.🤖 Generated with Claude Code
Summary by CodeRabbit