Skip to content

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

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

dcd cloud exits 2 when the run itself failed (a failed test, or a cancelled one), but only exit 1 was treated as an error — so the separate dcd status call was the only gate, and any status other than PASSED/FAILED (CANCELLED included) hit neither branch and passed the step. A cancelled run therefore reported green.

Now: exit 2 fails the step, CANCELLED fails the step, and a non-terminal status alongside a clean exit warns instead of silently passing.

`dcd cloud` exits 2 when the run itself failed (a failed test, or a
cancelled one), but only exit 1 was treated as an error — so the separate
`dcd status` call was the only gate, and any status other than
PASSED/FAILED (CANCELLED included) hit neither branch and passed the step.
A cancelled run therefore reported green.

Now: exit 2 fails the step, CANCELLED fails the step, and a non-terminal
status alongside a clean exit warns instead of silently passing.

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