Skip to content

script: add --retry 5 to curl - #5397

Open
kolyshkin wants to merge 1 commit into
opencontainers:mainfrom
kolyshkin:curl-retry
Open

script: add --retry 5 to curl#5397
kolyshkin wants to merge 1 commit into
opencontainers:mainfrom
kolyshkin:curl-retry

Conversation

@kolyshkin

@kolyshkin kolyshkin commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Sometimes github fails with 503 or other transient error code.

In other similar places (.github/workflows/validate.yml, tests/integration/*.sh)
we already use curl --retry 5, so let's add it here to avoid flakes.

Inspired by failures in https://github.com/opencontainers/runc/actions/runs/31610763532/job/94193379709?pr=5396

@kolyshkin kolyshkin added easy-to-review area/ci backport/1.5-todo A PR in main branch which needs to be backported to release-1.5 labels Aug 12, 2026
@kolyshkin

Copy link
Copy Markdown
Contributor Author

Oh well, today even --retry 5 does not help.

+ curl -fsSL --retry 5 --remote-name-all https://github.com/cyphar/libpathrs/releases/download/v0.2.5/libpathrs-0.2.5.tar.xz https://github.com/cyphar/libpathrs/releases/download/v0.2.5/libpathrs-0.2.5.tar.xz.asc
curl: (22) The requested URL returned error: 503
curl: (22) The requested URL returned error: 503
curl: (22) The requested URL returned error: 503
curl: (22) The requested URL returned error: 503
curl: (22) The requested URL returned error: 503
curl: (22) The requested URL returned error: 503
curl: (22) The requested URL returned error: 503
curl: (22) The requested URL returned error: 503
curl: (22) The requested URL returned error: 503
curl: (22) The requested URL returned error: 503
curl: (22) The requested URL returned error: 503
curl: (22) The requested URL returned error: 503

Sometimes github fails with 503 or other transient error code. In other
similar places (.github/workflows/validate.yml, tests/integration/*.sh)
we already use curl --retry 5, so let's add it here to avoid flakes.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ci backport/1.5-todo A PR in main branch which needs to be backported to release-1.5 easy-to-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant