Skip to content

Conversation

@blakeli0
Copy link
Contributor

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.x 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 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 dedicated module for testing protobuf compatibility within the Java SDK platform. By isolating a specific protobuf generated code version and integrating its testing into the CI pipeline, the change aims to enhance the robustness and reliability of the SDK against various protobuf runtime environments.

Highlights

  • New Module Addition: A new module, java-showcase-3.25.8, has been added to the repository.
  • Protobuf Compatibility Testing: This new module is a copy of the existing java-showcase but utilizes a different version of protobuf generated code (3.25.8). Its primary purpose is to test compatibility between protobuf runtime v4.33.x and gen code 3.25.8.
  • CI Integration: A new step has been integrated into the Continuous Integration (CI) pipeline to specifically test this java-showcase-3.25.8 module, ensuring ongoing compatibility validation.
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 java-showcase-3.25.8 module, which is a copy of an existing module, to test compatibility with a specific version of protobuf generated code. The changes are extensive, consisting entirely of new, generated files. The code is largely correct for its purpose, but I have identified a potential issue in the generated REST stub for the Compliance service. The issue relates to how query parameters are constructed when fields from a nested message are also used in the URL path, which could lead to malformed requests. This appears to be a bug in the code generator.

serializer.putQueryParam(fields, "fInt32", request.getFInt32());
serializer.putQueryParam(fields, "fInt64", request.getFInt64());
serializer.putQueryParam(fields, "info", request.getInfo());
if (request.hasIntendedBindingUri()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

high

The info object is being serialized as a query parameter, but some of its fields are already part of the URL path template for this method (/v1beta1/repeat/{info.fString}/{info.fInt32}/{info.fDouble}/{info.fBool}/{info.fKingdom}:simplepath). This is redundant and can lead to incorrect request formatting. The generator should ideally only serialize the fields of the info object that are not already in the path as individual query parameters. Serializing the entire info object is incorrect. This same issue is present for the repeatDataPathResource and repeatDataPathTrailingResource methods in this file.

@sonarqubecloud
Copy link

@blakeli0 blakeli0 requested a review from JoeWang1127 January 22, 2026 23:18
@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

@blakeli0 blakeli0 closed this Jan 23, 2026
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