Repository navigation
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the .kokoro/build.sh script to allow overriding the MAVEN_GOAL variable and introduces a new SUREFIRE_JVM_OPT environment variable to pass custom JVM options to Maven. The review feedback suggests using the ${SUREFIRE_JVM_OPT:-} expansion syntax to avoid potential unbound variable errors when the script is executed with set -u.
| install_modules "sdk-platform-java" | ||
| fi | ||
| echo "MAVEN_GOAL: ${MAVEN_GOAL}" | ||
| echo "SUREFIRE_JVM_OPT: ${SUREFIRE_JVM_OPT}" |
Contributor
There was a problem hiding this comment.
Using ${SUREFIRE_JVM_OPT} directly can trigger an unbound variable error if the script is run with set -u (nounset) and the variable is not defined. Using ${SUREFIRE_JVM_OPT:-} is safer and more robust.
Suggested change
| echo "SUREFIRE_JVM_OPT: ${SUREFIRE_JVM_OPT}" | |
| echo "SUREFIRE_JVM_OPT: ${SUREFIRE_JVM_OPT:-}" |
| -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS \ | ||
| -Dmaven.wagon.http.retryHandler.count=5 \ | ||
| "${EXCLUDE_PROJECTS_OPTS[@]}" \ | ||
| ${SUREFIRE_JVM_OPT} \ |
Contributor
lqiu96
force-pushed
the
ci/restore-surefire-jvm-opt
branch
from
December 4, 2026 06:29
e7fa1d2 to
aef62dc
Compare
lqiu96
marked this pull request as ready for review
December 4, 2026 06:46
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.
Restores
${SUREFIRE_JVM_OPT:-}in.kokoro/build.shtest)(dropped in #14029) and removes literal single quotes inSUREFIRE_JVM_OPTin.github/workflows/google-auth-library-java-ci.yaml(-P !slf4j2x,slf4j2x-test) so Maven matches theslf4j2xandslf4j2x-testprofiles.This restores JDK 8 runtime execution on the standalone
units-java8jobs and SLF4J 2.x logging tests ingoogle-auth-library-java.