Repository navigation
A closed pipe reader does not turn a CLI failure into success (#1211) - #1214
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Collaborator
|
Thanks for the contribution! |
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.
Fixes #1211.
cli_sayno longer turns a closed output reader intoprocess.exit(0). It ignores EPIPE and lets the command finish with its actual result. In particular,--checkupcontinues past its first progress header and can still discover a failing later import. Errors other than EPIPE are still rethrown.Adds nine exit-status regressions to the existing compiled-CLI checks in
gates/ping.ts: failed run, failed--check-only, the unsafe--verdictgate, invalid option, a failing second--checkupimport, successful run/check/help/checkup. The reader exits before Bend starts, with the writer FD kept open, so the first-write race is excluded. Documents pipeline exit-status behavior in the guide; no caps changed.Verification on Linux x86-64, Bun 1.3.13:
bun build bend2/main.ts --compile --outfile bin/bend.--checkup's first header still reaches the later type error and returns 1.--check-onlypiped intotruereturns 1 withpipefail.The full installer/hub
gates/ping.tsrun is unavailable here because the siblingbend-lang.comrepository is absent. The unsafe verdict gate was exercised; no real Lean kernel mismatch check or macOS run is claimed.Repository gate:
bun gates/repo.ts— PASS 49/49.