Repository navigation
Conversation
Contributor
|
Warning Gemini encountered an error creating the review. You can try again by commenting |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Draft PR to test upgrading Protobuf to
37.0-rc1(4.37.0-RC1Java runtime/BOM/protoc Maven artifacts and37.0-rc1protocinlibrarian.yaml) across the monorepo.Summary of Changes
sdk-platform-java/gapic-generator-java-pom-parent/pom.xml: Bump<protobuf.version>from4.33.6to4.37.0-RC1.sdk-platform-java/dependencies.txt: Bump upper-boundprotobufcompatibility test version from4.36.2to4.37.0-RC1.google-auth-library-java/pom.xml: Bump<project.protobuf.version>from4.33.6to4.37.0-RC1.grpc-gcp-java/pom.xml: Bump<protobuf.version>from4.33.6to4.37.0-RC1.librarian.yaml&java-*/: Bumptools.protoc.versionfrom33.6to37.0-rc1and regenerate all client libraries vialibrarian generate --all.Issues Found During Local Verification
Breaking cross-version
protocgencode change (InternalDescriptors) in37.0-rc1protocolbuffers/protobuf@ea0cc34313cbmoved JavaFileDescriptorinitialization into<OuterClass>.InternalDescriptors.descriptorand changedSharedCodeGenerator::GenerateDescriptorsto reference<DependencyOuterClass>.InternalDescriptors.descriptorinstead of<DependencyOuterClass>.getDescriptor()..protowithprotoc 37.0-rc1that imports a.protowhose Java classes come from a pre-37.0JAR fails with:sdk-platform-javastandalone (gapic-generator-javacompilingservice_config.protoviaprotobuf-maven-plugin) fails against publishedproto-google-common-protos:2.79.0unlessjava-common-protosis regenerated with37.0-rc1and installed first (in root CI,.kokoro/common.shbuilds in-repojava-common-protosin the same reactor).protoc 37.0while depending on an existingproto-google-common-protos(or any other third-party proto JAR generated withprotoc <= 36.2) will hit a Java compilation failure. (Note: the reverse direction—protoc <= 36.2importing a37.0-rc1JAR—still compiles becausegetDescriptor()is still generated.)googleapis/librarianprotocRC release asset URL404librarian installconstructshttps://github.com/protocolbuffers/protobuf/releases/download/v37.0-rc1/protoc-37.0-rc1-linux-x86_64.zipusingprotoc.versionin both the tag and filename.protocolbuffers/protobufnames RC tagsv37.0-rc1(no hyphen before1) while naming release zip assetsprotoc-37.0-rc-1-linux-x86_64.zip(with a hyphen before1).librarian install(specifically theshowcasematrix job in.github/workflows/showcase.yaml) will fail with HTTP404when downloadingprotoc.New
GeneratedMessageruntime helpers in4.37.0-RC1gencodeRuntimeVersion.validateProtobufGencodeVersion(..., 4, 37, 0, "-rc1", ...),protoc 37.0-rc1gencode calls newGeneratedMessagemethods such asemptyList(Class)andwrapAndThrowParseException(...), strictly requiringprotobuf-java >= 4.37.0-RC1at both compile time and runtime.