Skip to content

Ensure shellcheck failure exit code is reflected in GH job result#11113

Merged
traefiker merged 2 commits intotraefik:v2.11from
jnoordsij:fix-shellcheck
Oct 8, 2024
Merged

Ensure shellcheck failure exit code is reflected in GH job result#11113
traefiker merged 2 commits intotraefik:v2.11from
jnoordsij:fix-shellcheck

Conversation

@jnoordsij
Copy link
Collaborator

What does this PR do?

In the previous implementation, the script would exit with code 0 as long as the last shellcheck command succeeds. This PR ensures that if any of the individual checks fail, so does the script as a whole.

Motivation

When trying to debug the failed job at https://github.com/traefik/traefik/actions/runs/10962448670/job/30441708688?pr=11111,
I compared to https://github.com/traefik/traefik/actions/runs/10955418669/job/30419255534 to check for differences. Although still not finding why the job on my PR is failing, I noticed shellcheck reporting errors in the latter job, which were not causing the job to fail.

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

Copy link
Member

@kevinpollet kevinpollet left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@traefiker traefiker merged commit ab35b32 into traefik:v2.11 Oct 8, 2024
@jnoordsij jnoordsij deleted the fix-shellcheck branch October 8, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants