buildkit/util
Aaron Lehmann d3b96f4e31 Add retry on image push 5xx errors
Some registries can be flaky and return intermittent 5xx errors. This
change allows those errors to be retried, similarly to network-level
errors.

Note that this needs the upstream containerd fix
https://github.com/containerd/containerd/pull/5276 to work reliably.

This was tested with a registry that was modified to return 504 on every
other manifest PUT. Without the change, exports to the registry fail
every other attempt.  With the change and the related containerd change,
exports to the registry always succeed.

Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
2021-03-26 18:13:45 -07:00
..
apicaps caps: add contains method 2021-03-21 22:53:27 -07:00
appcontext Update containerd version 2017-07-26 11:07:45 -07:00
appdefaults Set sensible defaults for Windows installations 2020-01-30 00:34:44 +11:00
archutil add support for mips64el and mips64 2021-02-02 10:54:17 +08:00
compression handle foreign mediatypes on push 2020-12-05 23:16:44 -08:00
cond util: add stateful cond package 2018-01-31 18:44:09 -08:00
contentutil Add retry on image push 5xx errors 2021-03-26 18:13:45 -07:00
entitlements security/entitlements.WithInsecureSpec() remove redundant loop 2021-03-14 13:09:09 +01:00
flightcontrol flightcontrol: fix possible invalid cancellation 2020-12-11 00:57:12 -08:00
grpcerrors stack: remove helper functions from error stack traces 2020-10-18 23:36:38 -07:00
imageutil Add retry on image push 5xx errors 2021-03-26 18:13:45 -07:00
leaseutil leaseutil: mark temporary leases with timestamps 2019-10-16 10:35:50 -07:00
network Rename nativeID to nsPath. Simplify. 2020-11-02 11:39:17 -08:00
profiler profiler: add noshutdown hooks 2017-08-09 18:25:26 -07:00
progress Add retry on image push 5xx errors 2021-03-26 18:13:45 -07:00
pull progress: refactor logger handler to better reuse 2020-11-15 13:33:58 -08:00
push push: avoid overwriting tags on push 2021-03-12 13:45:01 -08:00
resolver Add retry on image push 5xx errors 2021-03-26 18:13:45 -07:00
rootless/specconv Add errors-on-non-Linux ToRootless implementation 2020-07-28 18:07:20 +10:00
sshutil Move prefix check to isGitTransport 2021-01-04 11:09:56 -08:00
stack stack: remove helper functions from error stack traces 2020-10-18 23:36:38 -07:00
system exec: use platform specific default path 2020-10-23 15:30:23 -07:00
testutil Enable to run integration tests with stargz snapshotter 2020-09-03 16:52:21 +09:00
throttle lint: enable golint 2020-07-19 09:28:24 -07:00
tracing resolver: update to new registryhosts based config 2020-03-05 19:56:43 -08:00
winlayers vendor: update containerd to v1.3.0-rc.2 2019-09-20 14:59:57 -07:00