Skip to content

Conversation

@blakeli0
Copy link
Contributor

@blakeli0 blakeli0 commented Jan 22, 2026

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

The gen code contains makeExtensionsImmutable
method
which proves that it is generated with a protoc version prior to 3.21.7.

Add a new
step
in CI to test this module.

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

The [gen code contains makeExtensionsImmutable
method](https://github.com/googleapis/sdk-platform-java/blob/c80004ad3fdafbf43aa9adf4e8069ac3b4fefaa4/java-showcase-3.21.0/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/AttemptSequenceRequest.java#L90)
which proves that it is generated with a protoc version prior to 3.21.7.

Add [a new
step](https://github.com/googleapis/sdk-platform-java/blob/c80004ad3fdafbf43aa9adf4e8069ac3b4fefaa4/.github/workflows/ci.yaml#L313-L319)
in CI to test this module.
@product-auto-label product-auto-label bot added the size: xl Pull request size is extra large. label Jan 22, 2026
@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 Java showcase module specifically designed to validate the compatibility of an older protobuf generated code (version 3.21.0) with a newer protobuf runtime (version 4.33.0). This is crucial for maintaining stability and ensuring that updates to the protobuf runtime do not break existing generated codebases. The changes include the addition of various client and stub implementations for several services, along with necessary build configurations and documentation, all aimed at facilitating this compatibility testing.

Highlights

  • New Module Addition: A new module, java-showcase-3.21.0, has been introduced to the repository.
  • Protobuf Compatibility Testing: The primary purpose of this new module is to test compatibility between protobuf runtime v4.33.0 and generated code from protobuf version 3.21.0.
  • Legacy Protoc Version Indication: The generated code in this module includes the makeExtensionsImmutable method, which indicates it was generated with a protoc version prior to 3.21.7.
  • CI Integration: A new step has been added to the continuous integration (CI) workflow to ensure this module is properly tested.
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.

@blakeli0 blakeli0 changed the title tests: Add java-showcase-3.21.0 (#4011) tests: Add java-showcase-3.21.0 Jan 22, 2026
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 module java-showcase-3.21.0 to test compatibility with protobuf gen code v3.21.0. The changes consist of adding a copy of the java-showcase module with the specified protobuf version.

My review has found some critical issues in the pom.xml file where several dependency and plugin versions are specified that do not exist in public Maven repositories. This will cause the build to fail and needs to be addressed. I've also pointed out some minor formatting issues, such as missing newlines at the end of files and trailing whitespace.

Comment on lines +19 to +53
<properties>
<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>
</properties>

<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.13</version>
<executions>
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
<configuration>
<formats>
<format>XML</format>
<format>HTML</format>
</formats>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.spotify.fmt</groupId>
<artifactId>fmt-maven-plugin</artifactId>
<version>2.25</version>
<configuration>
<filesNamePattern>(IT.*\.java)|(.*Test.java)|(TestClientInitializer.java)</filesNamePattern>
</configuration>
Copy link
Contributor

Choose a reason for hiding this comment

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

critical

Several dependency and plugin versions in this pom.xml do not seem to exist in public Maven repositories and will likely cause the build to fail. Please verify and correct them. Specifically:

  • <slf4j2-logback.version> is 1.5.21 (line 23), but this version does not exist for ch.qos.logback. The latest is 1.5.6.
  • jacoco-maven-plugin version is 0.8.13 (line 31), but the latest is 0.8.12.
  • fmt-maven-plugin version is 2.25 (line 50), but the latest is 2.23.
  • org.slf4j:slf4j-api version is 2.0.16 (line 243), but the latest is 2.0.13.

Please update these to valid, existing versions.

@@ -0,0 +1,2 @@
This is a copy of [GAPIC Showcase](https://github.com/googleapis/gapic-showcase) with protobuf 3.21.0 gen code.
This is intended to test the compatibility between protobuf-java runtime v4.33.0 and gen code 3.21.0. 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

This line has trailing whitespace. It's a good practice to remove it. Also, the file is missing a final newline.

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

# name = "showcase_proto_extended",
# srcs = [],
# deps = []
#) 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

This file is missing a final newline. It's a good practice to end files with a newline character.


message EvilResponse {
string malicious_plan = 1;
} 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

This file is missing a final newline. It's a good practice to end files with a newline character.

</profile>
</profiles>

</project>
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

This file is missing a final newline. It's a good practice to end files with a newline character.

}
}
}
} 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

This file is missing a final newline. It's a good practice to end files with a newline character.

@blakeli0 blakeli0 requested a review from JoeWang1127 January 22, 2026 23:18
@sonarqubecloud
Copy link

@sonarqubecloud
Copy link

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

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