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

Improve GitHub Action failure reporting annotation #821

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

JackPGreen
Copy link
Collaborator

GitHub parses console output for special phrases to better format it's output. By doing this when we report errors, we can more clearly communicate errors:

Compare before:
image

Against after:
image

[GitHub parses console  output for special phrases](https://stackoverflow.com/a/71091060) to better format it's output. By doing this when we report errors, we can more clearly communicate errors:

Compare [before](https://github.com/JackPGreen/rel-scripts/actions/runs/11711717220):

Against [after](https://github.com/JackPGreen/rel-scripts/actions/runs/11711863956):
@JackPGreen JackPGreen self-assigned this Nov 6, 2024
@JackPGreen JackPGreen requested a review from a team as a code owner November 6, 2024 21:19
@JackPGreen JackPGreen enabled auto-merge (squash) November 6, 2024 21:19
@JackPGreen JackPGreen merged commit 2b55a2e into master Nov 11, 2024
8 checks passed
@JackPGreen JackPGreen deleted the improve-github-error-reporting branch November 11, 2024 11:25
JackPGreen added a commit that referenced this pull request Nov 15, 2024
The action [failed](https://github.com/hazelcast/hazelcast-docker/actions/runs/11831672090/attempts/1) but without providing enough information to understand _why_.

Changes:
- Log the `get_image` function response (JSON) in case of failure
- Improve failure annotation reporting (as per #821)
- Address all Shellcheck warnings in case related
   - [Declare and assign separately to avoid masking return values](https://www.shellcheck.net/wiki/SC2155)
   - [Prefer putting braces around variable references even when not strictly required](https://www.shellcheck.net/wiki/SC2250)
   - [Quote the rhs of = in [[ ]] to prevent glob matchingQuote the rhs of = in [[ ]] to prevent glob matching](https://www.shellcheck.net/wiki/SC2053)

_Partially addresses_ [DI-342](https://hazelcast.atlassian.net/browse/DI-342)

Post-merge actions:
- [ ] backport
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.

3 participants