message: Split bazel build/test to minimize billable TPU time.
diff: @@ -22,7 +22,6 @@ source tensorflow/tools/ci_build/ctpu/ctpu.sh
  install_ubuntu_16_pip_deps pip3.7
  install_bazelisk
  install_ctpu pip3.7
  -ctpu_up -s v2-8 -p tensorflow-testing-tpu
  # Run configure.
  export TF_NEED_GCP=1
  @@ -38,16 +37,20 @@ yes "" | "$PYTHON_BIN_PATH" configure.py
  tag_filters="tpu,requires-tpu,-no_tpu,-notpu,-no_oss,-no_oss_py37"
  -bazel test --config=opt \
  +bazel_args="--config=opt \
  --crosstool_top=//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010-nvcc-cuda10.1:toolchain \
  --linkopt=-lrt \
  - --action_env=TF2_BEHAVIOR="${TF2_BEHAVIOR}" \
  + --action_env=TF2_BEHAVIOR=${TF2_BEHAVIOR} \
  --noincompatible_strict_action_env \
  --build_tag_filters=${tag_filters} \
  --test_tag_filters=${tag_filters} \
  --test_output=errors --verbose_failures=true --keep_going \
  - --test_arg=--tpu="${TPU_NAME}" \
  - --test_arg=--zone="${TPU_ZONE}" \
  - --test_arg=--test_dir_base="gs://kokoro-tpu-testing/tempdir/" \
  + --test_arg=--tpu=${TPU_NAME} \
  + --test_arg=--zone=${TPU_ZONE} \
  + --test_arg=--test_dir_base=gs://kokoro-tpu-testing/tempdir/ \
  --local_test_jobs=1 \
  - -- //tensorflow/... -//tensorflow/compiler/... -//tensorflow/lite/...
  + -- //tensorflow/... -//tensorflow/compiler/... -//tensorflow/lite/..."
  +
  +bazel build "${bazel_args}"
  +ctpu_up -s v2-8 -p tensorflow-testing-tpu
  +bazel test "${bazel_args}"
  