File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
tensorflow/tools/ci_build Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,12 @@ BAZEL_TEST_FLAGS=""\
149
149
" --test_env=TF_PER_DEVICE_MEMORY_LIMIT_MB=${TF_PER_DEVICE_MEMORY_LIMIT_MB} "
150
150
BAZEL_BUILD_FLAGS=" --keep_going"
151
151
152
- BAZEL_CMD=" bazel test ${BAZEL_TEST_FLAGS} "
153
- BAZEL_BUILD_ONLY_CMD=" bazel build ${BAZEL_BUILD_FLAGS} "
152
+ # Explicitly set jdk8 since that's what's installed in our images. Note that
153
+ # bazel 0.16 and higher defaults to jdk9, which causes failures. See b/117634064
154
+ BAZEL_JAVA_FLAGS=" --java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8"
155
+
156
+ BAZEL_CMD=" bazel test ${BAZEL_TEST_FLAGS} ${BAZEL_JAVA_FLAGS} "
157
+ BAZEL_BUILD_ONLY_CMD=" bazel build ${BAZEL_BUILD_FLAGS} ${BAZEL_JAVA_FLAGS} "
154
158
BAZEL_CLEAN_CMD=" bazel clean"
155
159
156
160
PIP_CMD=" ${CI_BUILD_DIR} /builds/pip.sh"
You can’t perform that action at this time.
0 commit comments