Skip to content

Commit 057c6b0

Browse files
authored
Merge branch 'master' into perf-focusmonitor-ngzone
2 parents cd3c0f1 + 25ce323 commit 057c6b0

File tree

1,832 files changed

+63900
-19069
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,832 files changed

+63900
-19069
lines changed

.bazel_fix_commands.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

.bazelrc

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ test --nolegacy_external_runfiles
2121
# when running bazel via `yarn bazel`.
2222
build --incompatible_strict_action_env
2323

24+
# Do not build runfile forests by default. If an execution strategy relies on runfile
25+
# forests, the forest is created on-demand. See: https://github.com/bazelbuild/bazel/issues/6627
26+
# and https://github.com/bazelbuild/bazel/commit/03246077f948f2790a83520e7dccc2625650e6df
27+
build --nobuild_runfile_links
28+
2429
###############################
2530
# Output control #
2631
###############################
@@ -32,16 +37,20 @@ query --output=label_kind
3237
# By default, failing tests don't print any output, it goes to the log file
3338
test --test_output=errors
3439

35-
#################################
36-
# Release configuration. #
37-
# Run with "--config=release" #
38-
#################################
40+
####################################
41+
# Stamping configurations. #
42+
# Run with "--config=release" or #
43+
# "--config=snapshot-build". #
44+
####################################
3945

4046
# Configures script to do version stamping.
4147
# See https://docs.bazel.build/versions/master/user-manual.html#flag--workspace_status_command
4248
build:release --workspace_status_command="node ./tools/bazel-stamp-vars.js"
4349
build:release --stamp
4450

51+
build:snapshot-build --workspace_status_command="node ./tools/bazel-stamp-vars.js --snapshot"
52+
build:snapshot-build --stamp
53+
4554
################################
4655
# View Engine / Ivy toggle #
4756
################################
@@ -51,20 +60,6 @@ build:ivy --define=angular_ivy_enabled=True
5160
# Set Ivy as the default
5261
build --config=ivy
5362

54-
#######################
55-
# Remote HTTP Caching #
56-
#######################
57-
build --remote_http_cache=https://storage.googleapis.com/angular-team-cache
58-
build --remote_accept_cached=true
59-
build --remote_upload_local_results=false
60-
61-
######################################
62-
# Remote HTTP Caching writes support #
63-
# Turn on these settings with #
64-
# --config=-http-caching #
65-
######################################
66-
build:remote-http-caching --remote_upload_local_results=true
67-
6863
################################
6964
# Remote Execution Setup #
7065
################################
@@ -76,6 +71,13 @@ build:remote --project_id=internal-200822
7671
# Needed due to: https://github.com/bazelbuild/bazel/issues/7254
7772
build:remote --define=EXECUTOR=remote
7873

74+
# For remote execution, we use the `ubuntu16_04_clang` toolchain configurations. These only
75+
# support `k8` or `armeabi-v7a`. Since we run on remotely with `k8` containers, we need to
76+
# ensure that the proper CPU is configured so that the correct toolchain can be used.
77+
# https://github.com/bazelbuild/bazel-toolchains/blob/master/configs/ubuntu16_04_clang/10.0.0/bazel_2.1.0/cc/BUILD#L50
78+
build:remote --cpu=k8
79+
build:remote --host_cpu=k8
80+
7981
# Setup the remote build execution servers.
8082
build:remote --remote_cache=remotebuildexecution.googleapis.com
8183
build:remote --remote_executor=remotebuildexecution.googleapis.com
@@ -94,10 +96,18 @@ build:remote --host_platform=//tools:rbe_platform
9496
build:remote --platforms=//tools:rbe_platform
9597
build:remote --extra_toolchains=@rbe_default//config:cc-toolchain
9698

97-
# Setup Build Event Service
98-
build:remote --bes_backend=buildeventservice.googleapis.com
99-
build:remote --bes_timeout=30s
100-
build:remote --bes_results_url="https://source.cloud.google.com/results/invocations/"
99+
################################
100+
# --config=build-results #
101+
################################
102+
103+
# Sets up Build Event Service if the `builds-results` configuration is used. We
104+
# do not upload build results by default as this makes us reliant on external servers
105+
# that could cause builds to fail unnecessarily. If desired, build result uploading
106+
# can be manually uploaded, but given that the build event service server has been
107+
# less stable than the remote executors, we do not want to degrade CI stability.
108+
build:build-results --bes_backend=buildeventservice.googleapis.com
109+
build:build-results --bes_timeout=60s
110+
build:build-results --bes_results_url="https://source.cloud.google.com/results/invocations/"
101111

102112
# Set remote caching settings
103113
build:remote --remote_accept_cached=true
@@ -116,7 +126,3 @@ test:debug --test_arg=--node_options=--inspect-brk --test_output=streamed --test
116126
# Load any settings which are specific to the current user. Needs to be *last* statement
117127
# in this config, as the user configuration should be able to overwrite flags from this file.
118128
try-import .bazelrc.user
119-
120-
# TODO: check if we can enable these deprecations.
121-
build --incompatible_new_actions_api=false
122-
build --incompatible_no_support_tools_in_action_inputs=false

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.1.0
1+
3.1.0

0 commit comments

Comments
 (0)