Skip to content

Conversation

@blakeli0
Copy link
Contributor

@blakeli0 blakeli0 commented Dec 9, 2025

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

@product-auto-label product-auto-label bot added the size: xl Pull request size is extra large. label Dec 9, 2025
@blakeli0 blakeli0 changed the title Add showcase tests tests: Add java-showcase-3.21.0 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 java-showcase-3.21.0 module to validate the compatibility between protobuf-java runtime v4.33.0 and protobuf 3.21.0 generated code. It includes a new 'Wicked' service proto for testing non-HTTP/JSON eligible RPCs, alongside a comprehensive set of auto-generated Java client libraries and their underlying stub implementations for various showcase services. The module also comes with its own Maven build configuration, integrating several development and testing tools.

Highlights

  • New Showcase Module: A new module, java-showcase-3.21.0, has been introduced, serving as a copy of the GAPIC Showcase project configured with protobuf 3.21.0 generated code.
  • Compatibility Testing: The primary purpose of this new module is to test the compatibility between protobuf-java runtime v4.33.0 and generated code from protobuf 3.21.0.
  • New Proto Definition: A new wicked.proto file has been added, defining a 'Wicked' service with unary, client-streaming, and bidirectional-streaming RPCs, specifically designed to test methods that are not eligible for HTTP/JSON transcoding.
  • Auto-Generated Client Libraries: Numerous auto-generated Java client and settings files, along with their gRPC and HTTP/JSON stub implementations, have been added for various showcase services (Compliance, Echo, Identity, Messaging, SequenceService, Testing).
  • Build Configuration: A pom.xml file has been added, configuring build plugins (JaCoCo, Spotify Fmt, Maven Download Plugin) and dependencies for Google API client libraries, testing frameworks, and logging.
  • API Metadata: A gapic_metadata.json file has been included, mapping proto services and RPCs to their corresponding Java library clients and methods, with an API version of v1_20240408 for the Echo service.
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.21.0 module to test compatibility with an older version of protobuf generated code. The changes consist of adding a complete, self-contained module, which appears to be a copy of an existing one with version modifications. The changes are mostly auto-generated code. I've found a minor formatting issue in the README.md file.

@@ -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, and the file is missing a final newline. It's good practice to remove trailing whitespace and ensure files end with a newline for consistency and to avoid issues with some tools.

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.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 9, 2025

@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 marked this pull request as ready for review December 9, 2025 21:39
@blakeli0 blakeli0 merged commit 233448b 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:42
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