Skip to content

impl(v3): remove backward compatibility cmake proto libs#15931

Merged
scotthart merged 3 commits into
googleapis:prepare-for-v3.0.0from
scotthart:v3_remove_backward_compat_proto_libs
Feb 4, 2026
Merged

impl(v3): remove backward compatibility cmake proto libs#15931
scotthart merged 3 commits into
googleapis:prepare-for-v3.0.0from
scotthart:v3_remove_backward_compat_proto_libs

Conversation

@scotthart

@scotthart scotthart commented Feb 4, 2026

Copy link
Copy Markdown
Member

The iam protos were not included in this PR. They will be handled separately.

And fix quickstart.sh script.


This change is Reviewable

@scotthart scotthart requested a review from a team February 4, 2026 01:06
@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello @scotthart, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on refining the project's CMake build system by removing outdated backward-compatible proto library aliases, which simplifies dependencies and reduces technical debt. It also includes a minor but important fix to the quickstart.sh script for more efficient error handling. To ensure a smooth transition for users, the official v3 migration guide has been updated to clearly document these changes and provide necessary guidance.

Highlights

  • CMake Backward Compatibility Removal: Deprecated and removed CMake logic for backward-compatible proto interface libraries, streamlining the build system. This change specifically excludes IAM protos, which will be addressed in a separate effort.
  • Quickstart Script Fix: The quickstart.sh script's cleanup function was updated to conditionally search for core dump files only when the script exits with a non-zero status, preventing unnecessary searches on successful runs.
  • Migration Guide Update: The v3 migration guide has been updated with a new section detailing the removed backward-compatible proto interface libraries and providing guidance on how to update CMakeLists.txt files to use the preferred proto library names.
Changelog
  • ci/cloudbuild/builds/lib/quickstart.sh
    • Modified the cleanup function to only execute the find . -name '*core*' command if the script's exit status is not zero, improving efficiency.
  • ci/verify_current_targets/CMakeLists.txt
    • Reduced the list of libraries checked for backward compatibility, now focusing solely on IAM-related protos as other backward-compatible proto libraries have been removed.
    • Updated the backwards_compat_proto_libraries list to reflect the removal of several deprecated proto library entries, retaining only IAM-specific ones.
  • cmake/GoogleCloudCppLibrary.cmake
    • Removed the foreach loop and associated logic responsible for creating and managing backward-compatible proto interface libraries, aligning with the deprecation strategy.
  • doc/v3-migration-guide.md
    • Added a new collapsible section under 'CMake' to document the removal of backward-compatible proto interface libraries.
    • Included a table mapping decommissioned proto libraries to their preferred modern equivalents, assisting users in updating their CMakeLists.txt files.
Activity
  • The author, scotthart, initiated this pull request to address the removal of backward compatibility for CMake proto libraries and fix a script issue.
  • The PR description clarifies that IAM protos are being handled separately and notes the inclusion of a fix for quickstart.sh.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@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 removes backward compatibility for several CMake proto libraries. The changes to the tests and the quickstart.sh script are good. However, there is a critical issue in cmake/GoogleCloudCppLibrary.cmake: the removal of the backward-compatibility logic will break the iam library, which is meant to be handled separately. I've recommended reverting that part of the change. Additionally, the migration guide in doc/v3-migration-guide.md is missing some of the decommissioned libraries in its summary table, which I've pointed out for correction.

Comment thread cmake/GoogleCloudCppLibrary.cmake
Comment thread doc/v3-migration-guide.md Outdated
@codecov

codecov Bot commented Feb 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.80%. Comparing base (e1d9216) to head (6eec408).
⚠️ Report is 2 commits behind head on prepare-for-v3.0.0.

Additional details and impacted files
@@                  Coverage Diff                   @@
##           prepare-for-v3.0.0   #15931      +/-   ##
======================================================
+ Coverage               92.79%   92.80%   +0.01%     
======================================================
  Files                    2332     2332              
  Lines                  214386   214386              
======================================================
+ Hits                   198946   198968      +22     
+ Misses                  15440    15418      -22     

☔ 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 c071c6e into googleapis:prepare-for-v3.0.0 Feb 4, 2026
56 of 64 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