cloud/amazon: fix TestPutS3Endpoint flake from IPv6 Happy Eyeballs#167653
Open
cockroach-teamcity wants to merge 1 commit intocockroachdb:masterfrom
Open
cloud/amazon: fix TestPutS3Endpoint flake from IPv6 Happy Eyeballs#167653cockroach-teamcity wants to merge 1 commit intocockroachdb:masterfrom
cockroach-teamcity wants to merge 1 commit intocockroachdb:masterfrom
Conversation
Contributor
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
Member
Author
The use-path-style and skip-tls-verify subtests of TestPutS3Endpoint replaced 127.0.0.1 with localhost in the httptest server URL. Because httptest.NewServer only binds to IPv4, Happy Eyeballs (RFC 6555) could resolve localhost to ::1 first and connect to an unrelated process on the same port, receiving HTTP/2 framing instead of the expected HTTP/1.x response. Fix the flake by using srv.URL directly (with 127.0.0.1) for the success-path calls that actually need to reach the mock server. The localhost substitution is only kept for the failure-path calls that validate DNS resolution errors (e.g. "lookup bucket.localhost: no such host"). Also add maxRetries=1 to the use-path-style subtest to match skip-tls-verify and fail fast if the issue recurs. Resolves: cockroachdb#167179 Epic: none Release note: None Generated by Claude Code Auto-Solver Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
|
[autosolve-response] I've addressed the review comments and pushed updates. Changes made: Please review the updated code. |
3333786 to
d7cbb0b
Compare
|
Detected infrastructure failure (matched: self-hosted runner lost communication with the server). Automatically rerunning failed jobs. (run link) |
Contributor
|
[autosolve-ci-fix] CI failures were detected but appear to be flaky tests or pre-existing issues, not caused by this PR. Analysis: A human may want to re-run CI or investigate the flaky tests. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The use-path-style and skip-tls-verify subtests of TestPutS3Endpoint
replaced 127.0.0.1 with localhost in the httptest server URL. Because
httptest.NewServer only binds to IPv4, Happy Eyeballs (RFC 6555) could
resolve localhost to ::1 first and connect to an unrelated process on
the same port, receiving HTTP/2 framing instead of the expected
HTTP/1.x response.
Fix the flake by using srv.URL directly (with 127.0.0.1) for the
success-path calls that actually need to reach the mock server. The
localhost substitution is only kept for the failure-path calls that
validate DNS resolution errors (e.g. "lookup bucket.localhost: no such
host"). Also add maxRetries=1 to the use-path-style subtest to match
skip-tls-verify and fail fast if the issue recurs.
Resolves: #167179
Epic: none
Release note: None
Generated by Claude Code Auto-Solver
Co-Authored-By: Claude noreply@anthropic.com
This PR was auto-generated by issue-autosolve using Claude Code.
Please review carefully before approving.