Skip to content

Harden curl usage - add retries and error logging#1484

Merged
JackPGreen merged 1 commit into
hazelcast:masterfrom
JackPGreen:harden-curl
Jul 8, 2026
Merged

Harden curl usage - add retries and error logging#1484
JackPGreen merged 1 commit into
hazelcast:masterfrom
JackPGreen:harden-curl

Conversation

@JackPGreen

Copy link
Copy Markdown
Contributor

The change in hazelcast/hazelcast-docker#1284 ensured failure was reported and the execution was halted, but the error message wasn't clear:

Error: Process completed with exit code 22.

By adding the --show-error option we can ensure the human readable error is printed to stderr, e.g.:

curl: (56) The requested URL returned error: 404

In addition, the root cause of the failure is probably an intermittent blip on the GitHub side (related discussion) - so adding a simple retry-on-failure seems sensible.

The change in hazelcast/hazelcast-docker#1284 ensured failure was reported and the execution was halted, but the error message [wasn't clear](https://github.com/hazelcast/hazelcast-docker/actions/runs/28910263431/job/85765974279#step:6:31):
> Error: Process completed with exit code 22.

By adding the [`--show-error` option](https://curl.se/docs/manpage.html#--show-error) we can ensure the human readable error is printed to stderr, e.g.:
> curl: (56) The requested URL returned error: 404


In addition, the root cause of the failure is _probably_ an intermittent blip on the GitHub side ([related discussion](https://github.com/orgs/community/discussions/53538)) - so adding a simple retry-on-failure seems sensible.
@JackPGreen JackPGreen requested review from ldziedziul and nishaatr July 8, 2026 07:07
@JackPGreen JackPGreen requested a review from ihsandemir as a code owner July 8, 2026 07:07
@JackPGreen JackPGreen enabled auto-merge (squash) July 8, 2026 07:07
@JackPGreen JackPGreen disabled auto-merge July 8, 2026 08:55
@JackPGreen JackPGreen merged commit 9644034 into hazelcast:master Jul 8, 2026
16 of 31 checks passed
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.

2 participants