Skip to content

fix(storage): respect locational endpoints#3445

Merged
dbolduc merged 2 commits intogoogleapis:mainfrom
dbolduc:fix-gaxi-grpc-locational-host-try-2
Oct 6, 2025
Merged

fix(storage): respect locational endpoints#3445
dbolduc merged 2 commits intogoogleapis:mainfrom
dbolduc:fix-gaxi-grpc-locational-host-try-2

Conversation

@dbolduc
Copy link
Copy Markdown
Member

@dbolduc dbolduc commented Oct 1, 2025

Fixes #3375

Use locational endpoints as the :authority field in gRPC requests, instead of the default. An analog to #3402, but for gRPC.

I couldn't reproduce this with GCS. I think it was forgiving of trying to access locational resources from a global endpoint. And I did not want to restrict global endpoint usage in our test project.

I tested locally with aiplatform, and saw the same behavior we see over HTTP. dbolduc@381b5fe

@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Oct 1, 2025
@dbolduc dbolduc force-pushed the fix-gaxi-grpc-locational-host-try-2 branch from 72e1562 to 90c350f Compare October 1, 2025 18:16
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 1, 2025

Codecov Report

❌ Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 95.75%. Comparing base (fd534d4) to head (251499a).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/gax-internal/src/host.rs 87.50% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3445   +/-   ##
=======================================
  Coverage   95.75%   95.75%           
=======================================
  Files         117      117           
  Lines        4662     4665    +3     
=======================================
+ Hits         4464     4467    +3     
  Misses        198      198           

☔ 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 previously approved these changes Oct 3, 2025
@dbolduc dbolduc marked this pull request as ready for review October 4, 2025 17:30
@dbolduc dbolduc requested a review from a team October 4, 2025 17:30
@dbolduc dbolduc force-pushed the fix-gaxi-grpc-locational-host-try-2 branch from 90c350f to 251499a Compare October 4, 2025 17:34
@dbolduc dbolduc merged commit 4321ca8 into googleapis:main Oct 6, 2025
25 checks passed
@dbolduc dbolduc deleted the fix-gaxi-grpc-locational-host-try-2 branch October 6, 2025 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default Host header does not work for regional endpoints

2 participants