Skip to content

Commit aaa8a3a

Browse files
alexeaglemhevery
authored andcommitted
build: update bazel to 0.24 (angular#29530)
PR Close angular#29530
1 parent 80161d5 commit aaa8a3a

6 files changed

Lines changed: 135 additions & 29 deletions

File tree

.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ build --define=compile=legacy
118118
# Load default settings for Remote Build Execution
119119
# When updating, the URLs of bazel_toolchains in packages/bazel/package.bzl
120120
# may also need to be updated (see https://github.com/angular/angular/pull/27935)
121-
import %workspace%/third_party/github.com/bazelbuild/bazel-toolchains/bazelrc/bazel-0.21.0.bazelrc
121+
import %workspace%/third_party/github.com/bazelbuild/bazel-toolchains/bazelrc/bazel-0.24.0.bazelrc
122122

123123
# Increase the default number of jobs by 50% because our build has lots of
124124
# parallelism

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"// 3": "when updating @bazel/bazel version you also need to update the RBE settings in .bazelrc (see https://github.com/angular/angular/pull/27935)",
112112
"devDependencies": {
113113
"@angular/cli": "^7.3.2",
114-
"@bazel/bazel": "0.23.2",
114+
"@bazel/bazel": "0.24.0",
115115
"@bazel/buildifier": "^0.19.2",
116116
"@bazel/ibazel": "~0.9.0",
117117
"@types/minimist": "^1.2.0",

packages/bazel/package.bzl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ def rules_angular_dev_dependencies():
3535
_maybe(
3636
http_archive,
3737
name = "bazel_toolchains",
38-
sha256 = "ee854b5de299138c1f4a2edb5573d22b21d975acfc7aa938f36d30b49ef97498",
39-
strip_prefix = "bazel-toolchains-37419a124bdb9af2fec5b99a973d359b6b899b61",
38+
sha256 = "67335b3563d9b67dc2550b8f27cc689b64fadac491e69ce78763d9ba894cc5cc",
39+
strip_prefix = "bazel-toolchains-cddc376d428ada2927ad359211c3e356bd9c9fbb",
4040
urls = [
41-
"https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/37419a124bdb9af2fec5b99a973d359b6b899b61.tar.gz",
42-
"https://github.com/bazelbuild/bazel-toolchains/archive/37419a124bdb9af2fec5b99a973d359b6b899b61.tar.gz",
41+
"https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/archive/cddc376d428ada2927ad359211c3e356bd9c9fbb.tar.gz",
42+
"https://github.com/bazelbuild/bazel-toolchains/archive/cddc376d428ada2927ad359211c3e356bd9c9fbb.tar.gz",
4343
],
4444
)
4545

packages/bazel/src/schematics/ng-add/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function addDevDependenciesToPackageJson(options: Schema) {
4747

4848
const devDependencies: {[k: string]: string} = {
4949
'@angular/bazel': angularCoreVersion,
50-
'@bazel/bazel': '^0.23.0',
50+
'@bazel/bazel': '^0.24.0',
5151
'@bazel/ibazel': '^0.9.0',
5252
'@bazel/karma': '^0.27.8',
5353
'@bazel/typescript': '^0.27.8',
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# Copyright 2016 The Bazel Authors. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# This file is auto-generated from release/bazelrc.tpl and should not be
16+
# modified directly.
17+
18+
# This .bazelrc file contains all of the flags required for the provided
19+
# toolchain with Remote Build Execution.
20+
#
21+
# This .bazelrc file also contains all of the flags required for the local
22+
# docker sandboxing.
23+
24+
# Depending on how many machines are in the remote execution instance, setting
25+
# this higher can make builds faster by allowing more jobs to run in parallel.
26+
# Setting it too high can result in jobs that timeout, however, while waiting
27+
# for a remote machine to execute them.
28+
build:remote --jobs=50
29+
30+
# Set several flags related to specifying the platform, toolchain and java
31+
# properties.
32+
# These flags are duplicated rather than imported from (for example)
33+
# %workspace%/configs/ubuntu16_04_clang/1.2/toolchain.bazelrc to make this
34+
# bazelrc a standalone file that can be copied more easily.
35+
# These flags should only be used as is for the rbe-ubuntu16-04 container
36+
# and need to be adapted to work with other toolchain containers.
37+
build:remote --host_javabase=@bazel_toolchains//configs/ubuntu16_04_clang/1.2:jdk8
38+
build:remote --javabase=@bazel_toolchains//configs/ubuntu16_04_clang/1.2:jdk8
39+
build:remote --host_java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8
40+
build:remote --java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8
41+
build:remote --crosstool_top=@bazel_toolchains//configs/ubuntu16_04_clang/1.2/bazel_0.24.0/default:toolchain
42+
build:remote --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
43+
# Platform flags:
44+
# The toolchain container used for execution is defined in the target indicated
45+
# by "extra_execution_platforms", "host_platform" and "platforms".
46+
# If you are using your own toolchain container, you need to create a platform
47+
# target with "constraint_values" that allow for the toolchain specified with
48+
# "extra_toolchains" to be selected (given constraints defined in
49+
# "exec_compatible_with").
50+
# More about platforms: https://docs.bazel.build/versions/master/platforms.html
51+
build:remote --extra_toolchains=@bazel_toolchains//configs/ubuntu16_04_clang/1.2/bazel_0.24.0/cpp:cc-toolchain-clang-x86_64-default
52+
build:remote --extra_execution_platforms=@bazel_toolchains//configs/ubuntu16_04_clang/1.2:rbe_ubuntu1604
53+
build:remote --host_platform=@bazel_toolchains//configs/ubuntu16_04_clang/1.2:rbe_ubuntu1604
54+
build:remote --platforms=@bazel_toolchains//configs/ubuntu16_04_clang/1.2:rbe_ubuntu1604
55+
56+
# Set various strategies so that all actions execute remotely. Mixing remote
57+
# and local execution will lead to errors unless the toolchain and remote
58+
# machine exactly match the host machine.
59+
build:remote --spawn_strategy=remote
60+
build:remote --strategy=Javac=remote
61+
build:remote --strategy=Closure=remote
62+
build:remote --strategy=Genrule=remote
63+
build:remote --define=EXECUTOR=remote
64+
65+
# Enable the remote cache so action results can be shared across machines,
66+
# developers, and workspaces.
67+
build:remote --remote_cache=remotebuildexecution.googleapis.com
68+
69+
# Enable remote execution so actions are performed on the remote systems.
70+
build:remote --remote_executor=remotebuildexecution.googleapis.com
71+
72+
# Enable encryption.
73+
build:remote --tls_enabled=true
74+
75+
# Set a higher timeout value, just in case.
76+
build:remote --remote_timeout=3600
77+
78+
# Enable authentication. This will pick up application default credentials by
79+
# default. You can use --auth_credentials=some_file.json to use a service
80+
# account credential instead.
81+
build:remote --auth_enabled=true
82+
83+
# The following flags are only necessary for local docker sandboxing
84+
# with the rbe-ubuntu16-04 container. Use of these flags is still experimental.
85+
build:docker-sandbox --host_javabase=@bazel_toolchains//configs/ubuntu16_04_clang/1.2:jdk8
86+
build:docker-sandbox --javabase=@bazel_toolchains//configs/ubuntu16_04_clang/1.2:jdk8
87+
build:docker-sandbox --crosstool_top=@bazel_toolchains//configs/ubuntu16_04_clang/1.2/bazel_0.24.0/default:toolchain
88+
build:docker-sandbox --experimental_docker_image=gcr.io/cloud-marketplace/google/rbe-ubuntu16-04@sha256:da0f21c71abce3bbb92c3a0c44c3737f007a82b60f8bd2930abc55fe64fc2729
89+
build:docker-sandbox --spawn_strategy=docker
90+
build:docker-sandbox --strategy=Javac=docker
91+
build:docker-sandbox --strategy=Closure=docker
92+
build:docker-sandbox --strategy=Genrule=docker
93+
build:docker-sandbox --define=EXECUTOR=remote
94+
build:docker-sandbox --experimental_docker_verbose
95+
build:docker-sandbox --experimental_enable_docker_sandbox
96+
97+
# The following flags enable the remote cache so action results can be shared
98+
# across machines, developers, and workspaces.
99+
build:remote-cache --remote_cache=remotebuildexecution.googleapis.com
100+
build:remote-cache --tls_enabled=true
101+
build:remote-cache --remote_timeout=3600
102+
build:remote-cache --auth_enabled=true
103+
build:remote-cache --spawn_strategy=standalone
104+
build:remote-cache --strategy=Javac=standalone
105+
build:remote-cache --strategy=Closure=standalone
106+
build:remote-cache --strategy=Genrule=standalone

yarn.lock

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -80,29 +80,29 @@
8080
semver "5.6.0"
8181
symbol-observable "1.2.0"
8282

83-
"@bazel/bazel-darwin_x64@0.23.2":
84-
version "0.23.2"
85-
resolved "https://registry.yarnpkg.com/@bazel/bazel-darwin_x64/-/bazel-darwin_x64-0.23.2.tgz#619544c9ef444af71d4f4603c0874da951ad1949"
86-
integrity sha512-wLqOtUm9Lr5EMePLqimgePB3GLU9ZJ/FE0ZawcQbKWXROGaGB2cTkOCpPp13T5fGY0Y7tJ/jjzIMBqphfyebLA==
87-
88-
"@bazel/bazel-linux_x64@0.23.2":
89-
version "0.23.2"
90-
resolved "https://registry.yarnpkg.com/@bazel/bazel-linux_x64/-/bazel-linux_x64-0.23.2.tgz#702d1e78bc12d9f0b8a00861f70e51c30e0f435c"
91-
integrity sha512-b2CEoceQdaG5A2pXLbZcQZYk148wpPE141y6o4D9BL8JhbeW0TcnwtCziPVnSiW+nublDk9iNR3eVuNgsxgypw==
92-
93-
"@bazel/bazel-win32_x64@0.23.2":
94-
version "0.23.2"
95-
resolved "https://registry.yarnpkg.com/@bazel/bazel-win32_x64/-/bazel-win32_x64-0.23.2.tgz#3c48c8615c2c9c6ee8c67b8f302e94324db153e2"
96-
integrity sha512-wjcgN3ecj47osfgX3asiRb37wBd0RNgaTXejOwc7ZUCHKazDUkZzQyYH5S/4RgLaj9sT+cMEXVo1RI4nNRMqIA==
97-
98-
"@bazel/bazel@0.23.2":
99-
version "0.23.2"
100-
resolved "https://registry.yarnpkg.com/@bazel/bazel/-/bazel-0.23.2.tgz#94ac42cc29c5bcb6b35fe112624d94c803dd78a8"
101-
integrity sha512-FP7sPD13sf0B2c2484DzJl2WzonrYJL2fAKgKl4Of8nBwlgNymvm2JAr3tZE3Ew+s9UwnEBrBDuf3eLn8xC9eg==
83+
"@bazel/bazel-darwin_x64@0.24.0":
84+
version "0.24.0"
85+
resolved "https://registry.yarnpkg.com/@bazel/bazel-darwin_x64/-/bazel-darwin_x64-0.24.0.tgz#828ef298d8d542961df388f17b0244f4f4302a74"
86+
integrity sha512-xly44vkcD/fauUb7Lm5Lme4qhEZdkuuyBKSVQUHPbYAGDdbj/W8dupI3bZREkJAgG/WrRU+WXUemMj4U8ZcLcw==
87+
88+
"@bazel/bazel-linux_x64@0.24.0":
89+
version "0.24.0"
90+
resolved "https://registry.yarnpkg.com/@bazel/bazel-linux_x64/-/bazel-linux_x64-0.24.0.tgz#9ef2e7266833ad2221fe4af4ceb6763d2897e3ff"
91+
integrity sha512-p5ylPLWnJZDGbaIFBrtD/tp3Su5rMdzeeNJKU24XyiWQTHVZ3OD3I2Fb0ILCgfBjY8AlA7EtCtOI4hYnAuIOtg==
92+
93+
"@bazel/bazel-win32_x64@0.24.0":
94+
version "0.24.0"
95+
resolved "https://registry.yarnpkg.com/@bazel/bazel-win32_x64/-/bazel-win32_x64-0.24.0.tgz#02d83113a6c6ed99795a3e41bff5631aa141638d"
96+
integrity sha512-/bcSEx+GoV/q7H4WM0jazfxTcurSiIIePhRv+d05mxRDcaWwhCO8KzmmZRWH1abW6npvq5tLkbSQi7G7nUBhgg==
97+
98+
"@bazel/bazel@0.24.0":
99+
version "0.24.0"
100+
resolved "https://registry.yarnpkg.com/@bazel/bazel/-/bazel-0.24.0.tgz#f4e68e3680ac299858c24c26be3d08d1151e78fc"
101+
integrity sha512-/5E55tqH9ogAGF9Dd7RSCJmk7/xdlsPTAhsX3yEsEMs7GLdHlgD3jbeePsKUiHKKr8LXAufjTs2pXQfjrkZRMg==
102102
optionalDependencies:
103-
"@bazel/bazel-darwin_x64" "0.23.2"
104-
"@bazel/bazel-linux_x64" "0.23.2"
105-
"@bazel/bazel-win32_x64" "0.23.2"
103+
"@bazel/bazel-darwin_x64" "0.24.0"
104+
"@bazel/bazel-linux_x64" "0.24.0"
105+
"@bazel/bazel-win32_x64" "0.24.0"
106106

107107
108108
version "0.19.2"

0 commit comments

Comments
 (0)