Skip to content

fix(gax-internal): no TLS config for http and IPv6#3926

Merged
coryan merged 2 commits intogoogleapis:mainfrom
coryan:fix-gax-internal-no-tls-for-http
Nov 27, 2025
Merged

fix(gax-internal): no TLS config for http and IPv6#3926
coryan merged 2 commits intogoogleapis:mainfrom
coryan:fix-gax-internal-no-tls-for-http

Conversation

@coryan
Copy link
Copy Markdown
Collaborator

@coryan coryan commented Nov 27, 2025

When running storage tests the httptest module may pick an IPv6 address. The storage client tries to create an (unused) grpc::Client for the test endpoint, and fails because tonic rejects http://[::]:* addresses with TLS.

This may be explained by hyperium/tonic#279. The suggested fix is to use a different TLS implementation. Whether that is true or not, we need this case to work to keep the complexity of our tests low, and disabling TLS when using a http endpoint seems sensible anyway.

Fixes #3927

When running storage tests the `httptest` module may pick an IPv6 address. The
storage client tries to create an (unused) grpc::Client for the test endpoint,
and fails because tonic rejects `http://[::]:*` addresses with TLS.

I suspect a bug in tonic, because IPv4 addresses seem to work. Regardless, we
need this case to work to keep the complexity of our tests low.
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.16%. Comparing base (81b22e6) to head (ad950f1).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3926      +/-   ##
==========================================
+ Coverage   95.14%   95.16%   +0.02%     
==========================================
  Files         162      162              
  Lines        6116     6121       +5     
==========================================
+ Hits         5819     5825       +6     
+ Misses        297      296       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@coryan coryan marked this pull request as ready for review November 27, 2025 16:32
@coryan coryan requested a review from a team November 27, 2025 16:32
@coryan coryan merged commit ea541f1 into googleapis:main Nov 27, 2025
29 checks passed
@coryan coryan deleted the fix-gax-internal-no-tls-for-http branch November 27, 2025 17:17
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.

grpc::Client::new() fails when testing with IPv6 local servers

2 participants