Skip to content

fix(builder): add timeouts to mirror pull client and probe real maninfest path#2598

Merged
yangkaa merged 1 commit into
goodrain:mainfrom
yangkaa:fix/mirror-pull-timeouts
Jun 12, 2026
Merged

fix(builder): add timeouts to mirror pull client and probe real maninfest path#2598
yangkaa merged 1 commit into
goodrain:mainfrom
yangkaa:fix/mirror-pull-timeouts

Conversation

@yangkaa

@yangkaa yangkaa commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

A mirror that passed the /v2/ liveness probe (docker.xuanyuan.me) accepted connections but never answered manifest requests for some images, and the mirror RegistryHost client had no timeouts while the containerd pull path has no outer context deadline -- builds hung indefinitely. Add dial/TLS/ response-header timeouts so a stalling mirror costs at most ~30s before the resolver falls through to the next host. Probe a real manifest path (200 or 401 alive) so ping-only frontends are exercised end to end.

…est path

A mirror that passed the /v2/ liveness probe (docker.xuanyuan.me) accepted
connections but never answered manifest requests for some images, and the
mirror RegistryHost client had no timeouts while the containerd pull path
has no outer context deadline -- builds hung indefinitely. Add dial/TLS/
response-header timeouts so a stalling mirror costs at most ~30s before the
resolver falls through to the next host. Probe a real manifest path (200 or
401 alive) so ping-only frontends are exercised end to end.
@yangkaa yangkaa merged commit a0240da into goodrain:main Jun 12, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant