Open
Description
Base image builder regularly errors on this transient issue:
failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: rpc error: code = Unknown desc = ocurrent/opam-staging@sha256:90f036ba79b70d23d08aad99dcaaf9594bc953c9b9a16dd0aa7cee4894939512: failed to do request: Head "https://registry-1.docker.io/v2/ocurrent/opam-staging/manifests/sha256:90f036ba79b70d23d08aad99dcaaf9594bc953c9b9a16dd0aa7cee4894939512": dial tcp: lookup registry-1.docker.io: Temporary failure in name resolution
docker-build failed with exit-code 1
2023-03-02 15:27.29: Job failed: Failed: Build failed
It would be useful to immediately retry on known flakey errors.
Prerequisite
- General approach to retrying failed jobs (see Retry on failed docker push ocluster#246 -- and also Retry on known flakey errors #211 (comment), we need to put the former somewhere we can share between the two).
Known flakey errors
Flakey errors on docker-build
:
-
dial tcp: lookup registry-1.docker.io: Temporary failure in name resolution
@ Retry on known flakey errors #211 (comment) -
failed to solve with frontend dockerfile.v0: failed to solve with frontend gateway.v0: frontend grpc server closed unexpectedly
@ Retry on known flakey errors #211 (comment) -
Source download failed for (.*): Curl failed
@ Retry on known flakey errors #211 (comment)
Flakey errors on docker-push
:
-
error parsing HTTP 400 response body: invalid character '<' looking for beginning of value: "<html><body><h1>400 Bad request</h1>\nYour browser sent an invalid request.\n</body></html>\n\n"
@ Retry on known flakey errors #211 (comment)
Activity