Skip to content

Retry DNS-dependent builder dials. - #5148

Draft
NullHypothesis wants to merge 3 commits into
masterfrom
fix-dns-race
Draft

Retry DNS-dependent builder dials.#5148
NullHypothesis wants to merge 3 commits into
masterfrom
fix-dns-race

Conversation

@NullHypothesis

@NullHypothesis NullHypothesis commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

The remote builder's compatibility check already retries with backoff on connection failure, since a freshly created .fly.dev hostname can take a moment to become resolvable. But every dial made afterward, for the rest of the build, used a single tls.Dial to the same hostname.

Extract dialBuilderWithDNSRetry with the same backoff parameters as the existing check, and use it in both dialers.

The remote builder's compatibility check already retries with backoff
on connection failure, since a freshly created .fly.dev hostname can
take a moment to become resolvable. But every dial made afterward, for
the rest of the build, used a single `tls.Dial` to the same hostname.

Extract `dialBuilderWithDNSRetry` with the same backoff parameters as
the existing check, and use it in both dialers.
@NullHypothesis NullHypothesis changed the title Fix DNS race in tests. Retry DNS-dependent builder dials. Sep 1, 2026
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