You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Retry transient failures when downloading a pre-built canister wasm #890
icp build downloads the wasm of a type: pre-built canister with a url in a single request (crates/icp-app/src/wasm.rs#L140), with no retry. When the connection drops while the body is being read, the build stops:
failed to read http response
Fetching the same URL with curl right afterwards works, and running the build again succeeds. Projects that pull several pre-built canisters (for example the ICP ledger and index wasms from GitHub releases) hit this often enough that we replaced pre-built with a type: script step that runs curl with --retry.
Proposal
Retry a failed pre-built download a few times with a short backoff. Cover connection errors, 5xx responses, and failures while reading the response body, not only failures to connect.
Activity