Skip to content

Return SilentError if completed run failed#3982

Merged
mislav merged 2 commits intocli:trunkfrom
despreston:des/err-return
Jul 12, 2021
Merged

Return SilentError if completed run failed#3982
mislav merged 2 commits intocli:trunkfrom
despreston:des/err-return

Conversation

@despreston
Copy link
Contributor

If gh run watch ${ID} --exit-status is run and "ID" is the ID of a
completed job that failed, return a SilentError. This ensures that the
program returns a non-zero code.

Fixes #3962

despreston and others added 2 commits July 9, 2021 11:54
If `gh run watch ${ID} --exit-status` is run and "ID" is the ID of a
completed job that failed, return a SilentError. This ensures that the
program returns a non-zero code.

Fixes cli#3962
Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix! No worries about the confusion around the test. I've added one and fixed error handling in assertions.

@mislav mislav enabled auto-merge July 12, 2021 15:00
@mislav mislav merged commit cd3df4c into cli:trunk Jul 12, 2021
@despreston despreston deleted the des/err-return branch July 12, 2021 15:12
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.

gh run watch --exit-status does not exit with failure status code for already failed jobs

2 participants