Skip to content

ci: restore sdk-platform-java jobs#12813

Open
diegomarquezp wants to merge 6 commits intogoogleapis:mainfrom
diegomarquezp:fix/split-units-8-java-compat
Open

ci: restore sdk-platform-java jobs#12813
diegomarquezp wants to merge 6 commits intogoogleapis:mainfrom
diegomarquezp:fix/split-units-8-java-compat

Conversation

@diegomarquezp
Copy link
Copy Markdown
Contributor

@diegomarquezp diegomarquezp commented Apr 15, 2026

This pull request resolves an API compatibility issue in the sdk-platform-java standalone Bazel build by updating the dependency pointers for google-auth-library.

Problem

Bazel integration tests for sdk-platform-java were failing due to a mismatch between local source code usage and external dependency signatures:

external/com_google_api_gax_java/gax/src/main/java/com/google/api/gax/rpc/ClientContext.java:357: error: incompatible types: String cannot be converted to URI
    return ((GdchCredentials) credentials).createWithGdchAudience(audienceString);
                                                                  ^

This occurred because gax-java locally relies on createWithGdchAudience(String), which was introduced in newer versions of google-auth-library, but the inner Bazel dependencies.properties file was still downloading 1.42.1.

Solution

  • Updated google-auth-library-oauth2-http and google-auth-library-credentials versions from 1.42.1 to 1.46.0 inside sdk-platform-java/gax-java/dependencies.properties.
  • Added a temporary CI trigger to ensure standalone validation jobs are correctly integrated into the main pipeline feedback cycle.

Copy link
Copy Markdown
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 updates the subproject commits for release-please and sdk-platform-java/tracing-sample. I have no feedback to provide.

@diegomarquezp diegomarquezp reopened this Apr 15, 2026
@diegomarquezp diegomarquezp changed the title ci: replicate Java 8/11 split compilation behavior in split-units-8 ci: restore sdk-platform-java jobs Apr 15, 2026
@diegomarquezp diegomarquezp marked this pull request as ready for review April 15, 2026 18:13
@diegomarquezp diegomarquezp requested a review from a team as a code owner April 15, 2026 18:13
Comment on lines +40 to +41
maven.com_google_auth_google_auth_library_oauth2_http=com.google.auth:google-auth-library-oauth2-http:1.46.0
maven.com_google_auth_google_auth_library_credentials=com.google.auth:google-auth-library-credentials:1.46.0
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we need to do this for all future auth versions? Can this be automated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants