From b5c309ada18ab50e50d668ad88567d524a3857e7 Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Wed, 27 Jan 2021 11:16:58 -0800 Subject: [PATCH] build: update bazel to 4.0.0 Update to the latest version of bazel (4.0.0). --- .bazelrc | 20 ++++++-------------- .bazelversion | 4 ++-- .gitignore | 1 + WORKSPACE | 8 ++++---- 4 files changed, 13 insertions(+), 20 deletions(-) diff --git a/.bazelrc b/.bazelrc index ff817a110e9c..684972053e7a 100644 --- a/.bazelrc +++ b/.bazelrc @@ -99,10 +99,8 @@ build:remote --define=EXECUTOR=remote # Setup the remote build execution servers. build:remote --remote_cache=remotebuildexecution.googleapis.com build:remote --remote_executor=remotebuildexecution.googleapis.com -build:remote --tls_enabled=true -build:remote --auth_enabled=true -build:remote --remote_timeout=3600 -build:remote --jobs=50 +build:remote --remote_timeout=600 +build:remote --jobs=150 # Setup the toolchain and platform for the remote build execution. The platform # is automatically configured by the "rbe_autoconfig" rule in the project workpsace. @@ -117,11 +115,6 @@ build:remote --extra_execution_platforms=//tools:rbe_ubuntu1604-angular build:remote --host_platform=//tools:rbe_ubuntu1604-angular build:remote --platforms=//tools:rbe_ubuntu1604-angular - # Setup Build Event Service -build:remote --bes_backend=buildeventservice.googleapis.com -build:remote --bes_timeout=30s -build:remote --bes_results_url="https://source.cloud.google.com/results/invocations/" - # Set remote caching settings build:remote --remote_accept_cached=true @@ -130,15 +123,14 @@ build:remote --remote_accept_cached=true build:remote --cpu=k8 build:remote --host_cpu=k8 +# Set up authentication mechanism for RBE +build:remote --google_default_credentials + ############################### # NodeJS rules settings # These settings are required for rules_nodejs ############################### -# Turn on managed directories feature in Bazel -# This allows us to avoid installing a second copy of node_modules -common --experimental_allow_incremental_repository_updates - #################################################### # User bazel configuration # NOTE: This needs to be the *last* entry in the config. @@ -150,4 +142,4 @@ try-import .bazelrc.user # Enable runfiles even on Windows. # Architect resolves output files from data files, and this isn't possible without runfile support. -test --enable_runfiles \ No newline at end of file +test --enable_runfiles diff --git a/.bazelversion b/.bazelversion index 5a3e0fb5ec48..54f6b9be19dc 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1,3 +1,3 @@ -3.4.1 +4.0.0 # [NB: this comment has to be after the first line, see https://github.com/bazelbuild/bazelisk/issues/117] -# When updating the Bazel version you also need to update the RBE toolchains version in WORKSPACE \ No newline at end of file +# When updating the Bazel version you also need to update the RBE toolchains version in WORKSPACE diff --git a/.gitignore b/.gitignore index faddb2caebf5..357df0969694 100644 --- a/.gitignore +++ b/.gitignore @@ -43,6 +43,7 @@ yarn-error.log* .ng-dev.log .ng-dev.user* .husky/_ +.bazelrc.user # Mac OSX Finder files. **/.DS_Store diff --git a/WORKSPACE b/WORKSPACE index 28e1391eeaa2..18c522c29efd 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -24,7 +24,7 @@ Angular has a dependency on the @bazel/bazelisk package which supplies it. Try running `yarn bazel` instead. (If you did run that, check that you've got a fresh `yarn install`) """, - minimum_bazel_version = "3.0.0", + minimum_bazel_version = "4.0.0", ) # The NodeJS rules version must be at least the following version because: @@ -75,9 +75,9 @@ install_bazel_dependencies(suppress_warning = True) # Bring in bazel_toolchains for RBE setup configuration. http_archive( name = "bazel_toolchains", - sha256 = "8c9728dc1bb3e8356b344088dfd10038984be74e1c8d6e92dbb05f21cabbb8e4", - strip_prefix = "bazel-toolchains-3.7.1", - url = "https://github.com/bazelbuild/bazel-toolchains/archive/3.7.1.tar.gz", + sha256 = "1adf5db506a7e3c465a26988514cfc3971af6d5b3c2218925cd6e71ee443fc3f", + strip_prefix = "bazel-toolchains-4.0.0", + url = "https://github.com/bazelbuild/bazel-toolchains/archive/4.0.0.tar.gz", ) load("@bazel_toolchains//rules:environments.bzl", "clang_env")