Skip to content

fix: honour the CLI exit code as the run verdict - #9

Merged
finalerock44 merged 1 commit into
mainfrom
fix/honour-cli-exit-code
Sep 15, 2026
Merged

finalerock44 merged 1 commit into
mainfrom
fix/honour-cli-exit-code

Conversation

@finalerock44

Copy link
Copy Markdown
Contributor

The status block overwrote EXIT_CODE unconditionally, so a PASSED rollup cleared the CLI's own exit 2 ("the run failed, or was cancelled") and the step went green. CANCELLED also matched neither branch.

Now the CLI's code is kept in CLI_EXIT_CODE and the status block may only add failures: PASSED clears the step only if the CLI agreed, CANCELLED fails it, and a non-zero CLI code always fails it.

The status block overwrote EXIT_CODE unconditionally, so a PASSED rollup
cleared the CLI's own exit 2 ("the run failed, or was cancelled") and the
step went green. CANCELLED also matched neither branch.

Now the CLI's code is kept in CLI_EXIT_CODE and the status block may only
add failures: PASSED clears the step only if the CLI agreed, CANCELLED
fails it, and a non-zero CLI code always fails it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@finalerock44 finalerock44 self-assigned this Sep 15, 2026
@finalerock44
finalerock44 merged commit 6adeaaf into main Sep 15, 2026
4 checks passed
@finalerock44
finalerock44 deleted the fix/honour-cli-exit-code branch September 15, 2026 13:04
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