chore(storage): Remove gRPC backwards compatibility shims by Pulkit0110 · Pull Request #15146 · googleapis/google-cloud-cpp · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

chore(storage): Remove gRPC backwards compatibility shims #15146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: prepare-for-v3.0.0
Choose a base branch
from

Conversation

Pulkit0110
Copy link
Member

@Pulkit0110 Pulkit0110 commented May 16, 2025

Since gRPC is now GA, removing the backwards compatibility shims for gRPC.

  • storage_experimental namespace is still present in grpc_plugin.h as it has the members related to gRPC metrics like EnableGrpcMetricsOption and GrpcMetricsPeriodOption. I'm not sure whether this is completely implemented.

  • Simplify MakeGrpcClient(): drop the UseRest() branch and ENV-var fallback so it unconditionally returns a gRPC-backed Client. Previously MakeGrpcClient() could return JSON client by comparing the ENV variable. Now it is removed so that we've a clear separation of gRPC and JSON clients.

  • Refactored unit tests as per the new behavior.


This change is Reviewable

@Pulkit0110 Pulkit0110 changed the title Remove grpc shims chore(storage): Remove gRPC backwards compatibility shims May 16, 2025
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label May 16, 2025
Copy link

codecov bot commented May 16, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.93%. Comparing base (67bbff6) to head (102cd0c).
Report is 37 commits behind head on prepare-for-v3.0.0.

Additional details and impacted files
@@                  Coverage Diff                   @@
##           prepare-for-v3.0.0   #15146      +/-   ##
======================================================
- Coverage               92.93%   92.93%   -0.01%     
======================================================
  Files                    2392     2392              
  Lines                  215083   215022      -61     
======================================================
- Hits                   199887   199822      -65     
- Misses                  15196    15200       +4     

☔ 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.

@ddelgrosso1 ddelgrosso1 changed the base branch from main to prepare-for-v3.0.0 June 17, 2025 15:30
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.

1 participant

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.