Skip to content

chainctl curl download sometimes fails. #12

@alon-zeltser-cyera

Description

@alon-zeltser-cyera

Hello.

We encounter an issue where the action fails in the chainctl curl download due to a timeout.

Run chainguard-dev/setup-chainctl@main
Run cd $(mktemp -d)
Downloading chainctl from https://dl.enforce.dev/chainctl/latest/chainctl_linux_x86_64
Error: Process completed with exit code 28.

It is not repeatable/reproducible just a flaky timeout issue.
But when it happens our entire job/pipeline fails, and we try to eliminate such incidents that can be avoided by a simple retry.

Can you please consider adding a retry to the curl to avoid "flakiness"
e.g

curl -o ./${out} -fsL "${url}"

this can be as simple as

curl -o ./${out} -fsL --retry 5 "${url}"

or more complicated with configurable values etc...

I can provide a PR if it helps.

Thanks

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions