Skip to content

chore(storage): reduce deprecation warnings from tests - #16405

Merged
scotthart merged 2 commits into
googleapis:mainfrom
scotthart:storage_reduce_dep_warnings
Sep 1, 2026
Merged

chore(storage): reduce deprecation warnings from tests#16405
scotthart merged 2 commits into
googleapis:mainfrom
scotthart:storage_reduce_dep_warnings

Conversation

@scotthart

Copy link
Copy Markdown
Member

Part of the work for #16404

@scotthart
scotthart requested review from a team as code owners August 31, 2026 23:51
@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label Aug 31, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds file-wide deprecation warning suppressions to several test files in the Google Cloud Storage internal library. The reviewer recommends keeping the deprecation warning suppression localized in object_requests_test.cc rather than applying it file-wide, to avoid masking accidental uses of deprecated APIs in other tests.

Comment on lines +15 to +16
// TODO(#16404): Remove deprecation disable include.
#include "google/cloud/internal/disable_deprecation_warnings.inc"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Disabling deprecation warnings for the entire file can mask accidental uses of deprecated APIs in other tests within this file. Since the suppression was previously localized specifically to the InsertObjectBackwardsCompat test, it is highly recommended to keep it localized there using disable_deprecation_warnings.inc and diagnostics_pop.inc to maintain warning coverage for the rest of the file.

@codecov

codecov Bot commented Sep 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.26%. Comparing base (f69f92f) to head (e6cf5c1).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16405      +/-   ##
==========================================
+ Coverage   92.24%   92.26%   +0.01%     
==========================================
  Files        2246     2246              
  Lines      212136   212136              
==========================================
+ Hits       195692   195732      +40     
+ Misses      16444    16404      -40     

☔ View full report in Codecov by Harness.
📢 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.

@scotthart
scotthart merged commit 961a209 into googleapis:main Sep 1, 2026
66 of 67 checks passed
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.

2 participants