Repository navigation
ci: stop tee from masking exit codes in the monthly and weekly jobs - #91
Conversation
GitHub Actions' default shell is `bash -e {0}` — -e but no -o pipefail — so
a step ending in `| tee` reports tee's exit code, not the command's. The
benchmark, soak, and Gremlins jobs have all been reporting green regardless of
what they actually did.
`shell: bash` gets `-o pipefail`, so these three now fail when the work
fails. The upload steps already carry `if: always()`, so the output of a
newly-failing run still gets published. Same fix sockguard took in #241; the
fuzz jobs were already correct because they return ${PIPESTATUS[0]} by hand.
|
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 Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe benchmark, mutation-testing, and soak workflow steps now explicitly use Bash. Their 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 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 |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Last of the
| teepipefail bugs. sockguard took this fix in #241; portwing had the same thing in three jobs.GitHub Actions' default shell is
bash -e {0}—-ebut no-o pipefail— so a step that ends in| teereports tee's exit code, not the command's. tee basically always succeeds, so these three jobs have been green regardless of what actually happened:quality-bench-monthly.yml:63quality-soak-weekly.yml:124quality-mutation-monthly.yml:75shell: bashgets-o pipefail, so all three now fail when the work fails.The upload steps already carry
if: always(), so a newly-failing run still publishes its output — that was the CodeRabbit finding on sockguard #241 and it doesn't apply here. The mutation job stays advisory via its job-levelcontinue-on-error: true; this only makes the step's own status honest.The fuzz jobs (
ci.yml,quality-fuzz-nightly.yml,quality-fuzz-monthly.yml) were already correct — they wrap the pipe in a function andreturn "${PIPESTATUS[0]}"by hand, so they're untouched.Changelog
teemasking failures in benchmark, soak, and mutation-testing jobs.shell: bash, enablingpipefail.if: always()for upload steps.continue-on-error: true.Concerns