Skip to content

Conversation

@blakeli0
Copy link
Contributor

@blakeli0 blakeli0 commented Dec 9, 2025

Add a new module java-showcase-3.25.8. This is a copy of the java-showcase module with a different version (3.25.8) of protobuf gen code. This is intended to test the compatibility between protobuf runtime v4.33.0 and gen code 3.25.8.

Add a new step in CI to test this module.

@product-auto-label product-auto-label bot added the size: xl Pull request size is extra large. label Dec 9, 2025
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @blakeli0, 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 introduces a new version of the Java GAPIC Showcase, specifically java-showcase-3.25.8. This new project is a direct copy of the existing showcase but is built with protobuf 3.25.8 generated code. The core intent is to rigorously test the compatibility of the protobuf-java runtime version 4.33.0 with code generated by an older protobuf version, ensuring seamless integration and functionality across different library versions. This involves adding a comprehensive set of client libraries, stub implementations, and build configurations.

Highlights

  • New Showcase Version: A new java-showcase-3.25.8 directory has been added, containing a copy of the GAPIC Showcase generated with protobuf 3.25.8 code.
  • Compatibility Testing: The primary purpose of this new showcase is to test compatibility between protobuf-java runtime v4.33.0 and the generated code from protobuf 3.25.8.
  • Generated Client Libraries: Numerous new Java client and stub classes, along with their settings and callable factories, have been introduced for various services (Compliance, Echo, Identity, Messaging, SequenceService, Testing) within the showcase.
  • Metadata and Configuration: A new gapic_metadata.json file maps proto services/RPCs to their corresponding Java library clients, and a pom.xml file configures the Maven build with necessary dependencies and plugins.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/ci.yaml
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.

Copy link
Contributor

@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 adds a new test module java-showcase-3.25.8, which appears to be a copy of gapic-showcase generated with protobuf 3.25.8 to test compatibility. The changes consist of adding a large number of generated Java files, a pom.xml, and a README.md.

My review has identified a critical issue in the pom.xml with an invalid dependency version that will likely cause the build to fail. I've also found a minor style issue in the README.md that could be improved for better quality and consistency. Please see my detailed comments.

<gapic-showcase.version>0.36.2</gapic-showcase.version>
<!-- This is the last version supporting slf4j 1.x, do not upgrade -->
<slf4j1-logback.version>1.2.13</slf4j1-logback.version>
<slf4j2-logback.version>1.5.21</slf4j2-logback.version>
Copy link
Contributor

Choose a reason for hiding this comment

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

critical

The version 1.5.21 for slf4j2-logback.version does not appear to be a valid version for logback-classic or logback-core. This will likely cause a build failure when resolving dependencies. Please verify the correct version. For example, the latest version in the 1.4.x series is 1.4.14, and the latest stable version is 1.5.6.

@@ -0,0 +1,2 @@
This is a copy of [GAPIC Showcase](https://github.com/googleapis/gapic-showcase) with protobuf 3.25.8 gen code.
This is intended to test the compatibility between protobuf-java runtime v4.33.0 and gen code 3.25.8. No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

There is trailing whitespace at the end of this line. It should be removed to maintain code style consistency.

Suggested change
This is intended to test the compatibility between protobuf-java runtime v4.33.0 and gen code 3.25.8.
This is intended to test the compatibility between protobuf-java runtime v4.33.0 and gen code 3.25.8.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 9, 2025

@blakeli0 blakeli0 marked this pull request as ready for review December 9, 2025 21:04
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 9, 2025

Quality Gate Passed Quality Gate passed for 'java_showcase_integration_tests'

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

@blakeli0 blakeli0 merged commit 32cb47a into protobuf-4.x-rc Dec 9, 2025
55 of 56 checks passed
@blakeli0 blakeli0 deleted the add-showcase-tests branch December 9, 2025 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: xl Pull request size is extra large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants