Upgrade Bazel to 0.29.1
Besides upgrading the Bazel version, we also refactored all build scripts to use rbe options in .bazelrc file. In order to migrate for https://github.com/bazelbuild/bazel/issues/7480, we have to specify the complete strategies list in .bazelrc file. PiperOrigin-RevId: 275459466 Change-Id: Iaec997da7862245955a36ebb1018d901f61c591d
This commit is contained in:
parent
97c40898dd
commit
cb677d1cc1
10
.bazelrc
10
.bazelrc
@ -166,11 +166,11 @@ build:rbe --remote_cache=remotebuildexecution.googleapis.com
|
||||
build:rbe --remote_executor=remotebuildexecution.googleapis.com
|
||||
build:rbe --remote_local_fallback=false
|
||||
build:rbe --remote_timeout=600
|
||||
build:rbe --spawn_strategy=remote
|
||||
build:rbe --strategy=Genrule=remote
|
||||
build:rbe --strategy=Closure=remote
|
||||
build:rbe --strategy=Javac=remote
|
||||
build:rbe --strategy=TestRunner=remote
|
||||
build:rbe --spawn_strategy=remote,worker,sandboxed,local
|
||||
build:rbe --strategy=Genrule=remote,worker,sandboxed,local
|
||||
build:rbe --strategy=Closure=remote,worker,sandboxed,local
|
||||
build:rbe --strategy=Javac=remote,worker,sandboxed,local
|
||||
build:rbe --strategy=TestRunner=remote,worker,sandboxed,local
|
||||
build:rbe --tls_enabled
|
||||
test:rbe --test_env=USER=anon
|
||||
|
||||
|
@ -50,7 +50,7 @@ _TF_WORKSPACE_ROOT = ''
|
||||
_TF_BAZELRC = ''
|
||||
_TF_CURRENT_BAZEL_VERSION = None
|
||||
_TF_MIN_BAZEL_VERSION = '0.24.1'
|
||||
_TF_MAX_BAZEL_VERSION = '0.26.1'
|
||||
_TF_MAX_BAZEL_VERSION = '0.29.1'
|
||||
|
||||
NCCL_LIB_PATHS = [
|
||||
'lib64/', 'lib/powerpc64le-linux-gnu/', 'lib/x86_64-linux-gnu/', ''
|
||||
|
@ -15,7 +15,7 @@
|
||||
# ==============================================================================
|
||||
|
||||
# Select bazel version.
|
||||
BAZEL_VERSION="0.26.1"
|
||||
BAZEL_VERSION="0.29.1"
|
||||
|
||||
set +e
|
||||
local_bazel_ver=$(bazel version 2>&1 | grep -i label | awk '{print $3}')
|
||||
|
@ -18,7 +18,7 @@
|
||||
# It will compile bazel from source and install it in /usr/local/bin
|
||||
|
||||
# Select bazel version.
|
||||
BAZEL_VERSION="0.26.1"
|
||||
BAZEL_VERSION="0.29.1"
|
||||
|
||||
set +e
|
||||
local_bazel_ver=$(bazel version 2>&1 | grep -i label | awk '{print $3}')
|
||||
|
@ -98,7 +98,7 @@ RUN ${PIP} --no-cache-dir install \
|
||||
enum34
|
||||
|
||||
# Install bazel
|
||||
ARG BAZEL_VERSION=0.26.1
|
||||
ARG BAZEL_VERSION=0.29.1
|
||||
RUN mkdir /bazel && \
|
||||
wget -O /bazel/installer.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh" && \
|
||||
wget -O /bazel/LICENSE.txt "https://raw.githubusercontent.com/bazelbuild/bazel/master/LICENSE" && \
|
||||
|
@ -98,7 +98,7 @@ RUN ${PIP} --no-cache-dir install \
|
||||
enum34
|
||||
|
||||
# Install bazel
|
||||
ARG BAZEL_VERSION=0.26.1
|
||||
ARG BAZEL_VERSION=0.29.1
|
||||
RUN mkdir /bazel && \
|
||||
wget -O /bazel/installer.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh" && \
|
||||
wget -O /bazel/LICENSE.txt "https://raw.githubusercontent.com/bazelbuild/bazel/master/LICENSE" && \
|
||||
|
@ -133,7 +133,7 @@ RUN ${PIP} --no-cache-dir install \
|
||||
enum34
|
||||
|
||||
# Install bazel
|
||||
ARG BAZEL_VERSION=0.26.1
|
||||
ARG BAZEL_VERSION=0.29.1
|
||||
RUN mkdir /bazel && \
|
||||
wget -O /bazel/installer.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh" && \
|
||||
wget -O /bazel/LICENSE.txt "https://raw.githubusercontent.com/bazelbuild/bazel/master/LICENSE" && \
|
||||
|
@ -133,7 +133,7 @@ RUN ${PIP} --no-cache-dir install \
|
||||
enum34
|
||||
|
||||
# Install bazel
|
||||
ARG BAZEL_VERSION=0.26.1
|
||||
ARG BAZEL_VERSION=0.29.1
|
||||
RUN mkdir /bazel && \
|
||||
wget -O /bazel/installer.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh" && \
|
||||
wget -O /bazel/LICENSE.txt "https://raw.githubusercontent.com/bazelbuild/bazel/master/LICENSE" && \
|
||||
|
@ -25,7 +25,7 @@ RUN ${PIP} --no-cache-dir install \
|
||||
enum34
|
||||
|
||||
# Install bazel
|
||||
ARG BAZEL_VERSION=0.26.1
|
||||
ARG BAZEL_VERSION=0.29.1
|
||||
RUN mkdir /bazel && \
|
||||
wget -O /bazel/installer.sh "https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-installer-linux-x86_64.sh" && \
|
||||
wget -O /bazel/LICENSE.txt "https://raw.githubusercontent.com/bazelbuild/bazel/master/LICENSE" && \
|
||||
|
Loading…
Reference in New Issue
Block a user