Repository navigation
fix: sel tail fails a build that did not finish - #157
Merged
Merged
Conversation
A build whose summary carries status "incomplete" or "cancelled" now
exits 1, including when no test failed and when a test was flaky. Until
now such a build exited 0 (or 2 with a flaky test), so a pipeline gated
on `sel tail` read an unfinished build as a pass.
The pretty summary line names the state ("build did not finish:
incomplete") and its dot is no longer green. The ndjson stream is
unchanged: the summary line is passed through byte for byte.
Every other case keeps its exit code and output: no status (old
servers), an unknown status, "success", and "failed" (including
"failed" with 0 failed tests). A 1011 close with reason
summary_unavailable sends no summary and stays on the existing
retryable network_error path (exit 4).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0186m4FrY9RHAiNN1uxztLCp
Exit 1 now also means a build that did not finish (status incomplete or cancelled), since 42ac7c8. The help text and the README exit-code table still said "real test failures" only. Both now say what exit 1 covers, in the same lowercase style as the other rows. A test pins the help line. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0186m4FrY9RHAiNN1uxztLCp
natevick
marked this pull request as ready for review
November 22, 2026 20:51
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.
sel tailnow exits 1 on a build that didn't finish, sosel tail && deploycan't deploy an incomplete or cancelled build.Needs the server change in selectiveci/selective, which adds
statusto the summary. Deploy the server first. Against an older server this CLI behaves as v0.4.0 does. No Linear ticket, because the workspace is at its free issue limit.What changed
statusofincompleteorcancelledexits 1, including when tests were flaky.status, an unknown one,success, andfailed.build did not finish: <status>. JSON output passes the line through unchanged.sel tail --helpand the README's exit-1 row now cover an unfinished build.Checks
e4de3f1: incomplete and cancelled exit 1, success 0, failed 1, retry-passed 2, and several runs with one incomplete exit 1.flakywin fails tests by assertion.go veton all three platforms,go test -race, and golangci-lint 1.64.8 pass.Not established
status: "failed", failed: 0and still exits 0.🤖 Generated with Claude Code
https://claude.ai/code/session_0186m4FrY9RHAiNN1uxztLCp