Skip to content

chore: disable RAB for release#16096

Merged
scotthart merged 1 commit into
googleapis:mainfrom
scotthart:rab_disable_for_release
May 14, 2026
Merged

chore: disable RAB for release#16096
scotthart merged 1 commit into
googleapis:mainfrom
scotthart:rab_disable_for_release

Conversation

@scotthart
Copy link
Copy Markdown
Member

Feature is not GA yet, but we need to cut a release. It will be re-enabled for testing and development post-release.

@scotthart scotthart requested a review from a team as a code owner May 14, 2026 15:29
Copy link
Copy Markdown

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

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 comments out the GOOGLE_CLOUD_CPP_TESTING_ENABLE_RAB macro definition in google/cloud/BUILD.bazel. The reviewer suggests removing these lines entirely rather than leaving commented-out code in the codebase. Additionally, the reviewer points out that cxxopts is not a standard Bazel attribute for cc_library and should likely be replaced with copts if the macro is intended to be functional.

Comment thread google/cloud/BUILD.bazel
hdrs = google_cloud_cpp_rest_internal_hdrs,
# TODO(#16079): Remove macro definition when GA.
cxxopts = ["-DGOOGLE_CLOUD_CPP_TESTING_ENABLE_RAB"],
# cxxopts = ["-DGOOGLE_CLOUD_CPP_TESTING_ENABLE_RAB"],
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

Avoid leaving commented-out code in the codebase as it increases technical debt and clutter. If the intention is to disable the feature for the release, the line should be removed entirely.

Furthermore, cxxopts is not a standard attribute for the cc_library rule (the standard attribute is copts), which suggests this macro definition may have been ineffective even before being commented out.

The existing TODO at line 240 already suggests removing the macro definition, so deleting the line is consistent with that goal.

Comment thread google/cloud/BUILD.bazel
srcs = [test],
# TODO(#16079): Remove macro definition when GA.
cxxopts = ["-DGOOGLE_CLOUD_CPP_TESTING_ENABLE_RAB"],
# cxxopts = ["-DGOOGLE_CLOUD_CPP_TESTING_ENABLE_RAB"],
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

Avoid leaving commented-out code in the codebase. It is better to remove the line entirely.

As noted elsewhere, cxxopts should likely be copts if this macro is intended to be used in the future. The existing TODO at line 278 also supports removing the definition.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.68%. Comparing base (cc2ed18) to head (797e0c4).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #16096      +/-   ##
==========================================
- Coverage   92.70%   92.68%   -0.02%     
==========================================
  Files        2353     2353              
  Lines      218354   218328      -26     
==========================================
- Hits       202428   202361      -67     
- Misses      15926    15967      +41     

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

@scotthart scotthart merged commit 75ce2e8 into googleapis:main May 14, 2026
53 of 59 checks passed
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.

2 participants