Skip to content

ci: deflake downloads using curl#5468

Merged
coryan merged 1 commit intogoogleapis:mainfrom
coryan:ci-retry-curl-downloads
Apr 18, 2026
Merged

ci: deflake downloads using curl#5468
coryan merged 1 commit intogoogleapis:mainfrom
coryan:ci-retry-curl-downloads

Conversation

@coryan
Copy link
Copy Markdown
Contributor

@coryan coryan commented Apr 18, 2026

Downloads via curl can and do fail due to transient errors. With this change we instruct curl to retry failures at least 5 times. This has no effect on successful downloads. It avoids temporary errors by trying again. It does slow down failures when the error is not temporary, but that seems like the lesser evil.

Fixes #5458

Downloads via `curl` can and do fail due to transient errors. With this
change we instruct `curl` to retry failures at least 5 times. This has
no effect on successful downloads. It avoids temporary errors by trying
again. It does slow down failures when the error is not temporary, but
that seems like the lesser evil.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request enhances the reliability of network requests by adding retry parameters (--retry 5 --retry-delay 15) to curl commands in GitHub Actions, Dockerfiles, and infrastructure test scripts. These changes help mitigate transient network issues during dependency installation and API calls. I have no feedback to provide.

@coryan coryan marked this pull request as ready for review April 18, 2026 20:36
@coryan coryan requested a review from a team as a code owner April 18, 2026 20:36
@coryan coryan merged commit 0673a9e into googleapis:main Apr 18, 2026
19 of 20 checks passed
@coryan coryan deleted the ci-retry-curl-downloads branch April 18, 2026 21:07
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.

ci: all curl downloads should retry

2 participants