Skip to content

ci: stop tee from masking exit codes in the monthly and weekly jobs - #91

Merged
scttbnsn merged 1 commit into
dev/v0.9from
ci/pipefail-tee-guards
Aug 12, 2026
Merged

scttbnsn merged 1 commit into
dev/v0.9from
ci/pipefail-tee-guards

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Last of the | tee pipefail bugs. sockguard took this fix in #241; portwing had the same thing in three jobs.

GitHub Actions' default shell is bash -e {0} — -e but no -o pipefail — so a step that ends in | tee reports 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:63
  • quality-soak-weekly.yml:124
  • quality-mutation-monthly.yml:75

shell: bash gets -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-level continue-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 and return "${PIPESTATUS[0]}" by hand, so they're untouched.

Changelog

  • 🐛 Fixed tee masking failures in benchmark, soak, and mutation-testing jobs.
  • 🔧 Changed affected steps to use shell: bash, enabling pipefail.
  • 🔧 Preserved if: always() for upload steps.
  • 🔧 Preserved advisory behavior for mutation testing with job-level continue-on-error: true.
  • 🔧 Left existing fuzz jobs unchanged.

Concerns

  • Validate the modified workflow files with a GitHub Actions workflow linter.
  • Confirm mutation-testing failures remain advisory while benchmark and soak failures fail their jobs.

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.
@vercel

vercel Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
getportwing Ready Ready Preview Aug 12, 2026 5:04am

@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 3293e19b-64a1-4813-b6ae-c9390dc6a289

📥 Commits

Reviewing files that changed from the base of the PR and between c21dbb2 and f787bc4.

📒 Files selected for processing (3)
  • .github/workflows/quality-bench-monthly.yml
  • .github/workflows/quality-mutation-monthly.yml
  • .github/workflows/quality-soak-weekly.yml

📝 Walkthrough

Walkthrough

The benchmark, mutation-testing, and soak workflow steps now explicitly use Bash. Their tee pipelines preserve failures through pipefail instead of allowing the default shell to mask command errors. The mutation-testing step remains advisory through continue-on-error.

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/pipefail-tee-guards

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@scttbnsn

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@scttbnsn
scttbnsn merged commit b073389 into dev/v0.9 Aug 12, 2026
22 of 23 checks passed
@scttbnsn
scttbnsn deleted the ci/pipefail-tee-guards branch August 12, 2026 05:09

This branch was successfully deployed

1 active deployment
Preview — f787bc49 Deployed Aug 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant