Repository navigation
fix(ci): avoid SIGPIPE race in setup-env dev-shell PATH summary - #848
Merged
Merged
Conversation
The provisioning step ends with `grep '^/nix/store' | head -50` under the runner's `bash -e -o pipefail` shell. Once the dev-shell PATH tops 50 nix-store entries, head exiting early can SIGPIPE grep (exit 2) and fail the step -- a scheduling race that killed the arm64 build-and-test leg of the second 0.4.0 candidate run while every other leg of the same line has run green for weeks. Replace head with `sed -n '1,50p'`, which consumes the whole stream and prints the same first 50 lines. Refs: #847
This was referenced Jul 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Forward-fix for the second 0.4.0 candidate failure (#847, diagnosis posted there). Again no tag consumed — publish was skipped.
The
setup-envprovisioning step ends withprintf … | grep '^/nix/store' | head -50under the runner'sbash -e -o pipefailshell. With the dev-shell PATH now exceeding 50 nix-store entries,headexiting early can SIGPIPEgrep(exit 2) and fail the step — the log showsgrep: write error: Broken pipeat the exact failure timestamp on the arm64 build-and-test leg. It's a scheduling race: the same line has run green across every workflow for weeks and passed on five other legs today.Fix:
sed -n '1,50p'instead ofhead -50— consumes the whole stream (no early pipe close), prints the same first 50 lines.Positive signal from the failed run: the #842/#843 fixes are validated —
Vulnix CVE Gatepassed on this run (previously the step died on vulnix's exit 2), and amd64 was only cancelled by fail-fast.Verification
grep: write error: Broken pipe+Process completed with exit code 2at 18:42:21, inside the test-image action's setup-env sub-step).just precommit(full suite, all files): green, exit 0.## [0.4.0] - TBDsection.Refs: #847