Skip to content

Commit

Permalink
Run tests in parallel in upload_all_java_tools.sh
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 682336650
Change-Id: Ia628c7772bd9e61c6d39aa75f1d796c6e80bb2e8
  • Loading branch information
hvadehra authored and copybara-github committed Oct 4, 2024
1 parent 98057be commit 1023f4f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/upload_all_java_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,14 @@ fi
# See https://github.com/bazelbuild/bazel/issues/12244 for details
if [[ "$platform" != "windows" ]]; then
JAVA_VERSIONS=`cat src/test/shell/bazel/BUILD | grep '^JAVA_VERSIONS = ' | sed -e 's/JAVA_VERSIONS = //' | sed -e 's/["(),]//g'`
TEST_TARGETS=""
for java_version in $JAVA_VERSIONS; do
bazel test $TEST_FLAGS --verbose_failures --test_output=all --nocache_test_results \
//src/test/shell/bazel:bazel_java_test_local_java_tools_jdk${java_version} \
--define=LOCAL_JAVA_TOOLS_ZIP_PATH="${zip_path}" \
--define=LOCAL_JAVA_TOOLS_PREBUILT_ZIP_PATH="${prebuilt_zip_path}"
TEST_TARGETS="$TEST_TARGETS //src/test/shell/bazel:bazel_java_test_local_java_tools_jdk${java_version}"
done
bazel test $TEST_FLAGS --verbose_failures --test_output=all --nocache_test_results \
$TEST_TARGETS \
--define=LOCAL_JAVA_TOOLS_ZIP_PATH="${zip_path}" \
--define=LOCAL_JAVA_TOOLS_PREBUILT_ZIP_PATH="${prebuilt_zip_path}"
fi

bazel run ${RELEASE_BUILD_OPTS} //src:upload_java_tools_prebuilt -- \
Expand Down

0 comments on commit 1023f4f

Please sign in to comment.