Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply some reliability/failure UX best practices #154

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Oct 6, 2023

  • Enable Bash pipefail mode by setting an explicit GitHub Actions shell
  • Pass --exit-status to all jq invocations, so it actually exits non-zero on empty input

See:
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
https://jqlang.github.io/jq/manual/#invoking-jq

GUS-W-14249448.

@edmorley edmorley self-assigned this Oct 6, 2023
- Enable Bash `pipefail` mode by setting an explicit GitHub Actions shell
- Pass `--exit-status` to all `jq` invocations, so it actually exits non-zero
  on empty input

See:
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell
https://jqlang.github.io/jq/manual/#invoking-jq
@edmorley edmorley force-pushed the edmorley/reliability-best-practices branch from 6c0f64f to 9e6fc89 Compare October 6, 2023 12:09
@edmorley edmorley marked this pull request as ready for review October 6, 2023 12:10
@edmorley edmorley requested a review from a team as a code owner October 6, 2023 12:10
@edmorley edmorley enabled auto-merge (squash) October 6, 2023 12:11
@edmorley edmorley added the enhancement New feature or request label Oct 6, 2023
@edmorley edmorley merged commit 2b6cc61 into main Oct 6, 2023
2 checks passed
@edmorley edmorley deleted the edmorley/reliability-best-practices branch October 6, 2023 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants