File tree Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ build:remote --remote_executor=remotebuildexecution.googleapis.com
12
12
build:remote --tls_enabled=true
13
13
build:remote --auth_enabled=true
14
14
15
+ # Setup Build Event Service
16
+ build:remote --bes_backend=buildeventservice.googleapis.com
17
+ build:remote --bes_timeout=30s
18
+ build:remote --bes_results_url="https://source.cloud.google.com/results/invocations/"
19
+
15
20
# Setup the toolchain and platform for the remote build execution. The platform
16
21
# is automatically configured by the "rbe_autoconfig" rule in the project workpsace.
17
22
build:remote --crosstool_top=@rbe_default//cc:toolchain
Original file line number Diff line number Diff line change @@ -15,8 +15,7 @@ import %workspace%/.circleci/base-rbe-bazelrc
15
15
16
16
# Use the Angular team internal GCP instance for remote execution.
17
17
build:remote --remote_instance_name=projects/internal-200822/instances/default_instance
18
+ build:remote --project_id=internal-200822
18
19
19
- # We want to accept remote cached build artifacts to speed up our builds incrementally.
20
- # TODO(devversion): Temporary disabled since we don't have much insight on possible security
21
- # issues. Enable this once we investigated this further and talked to the RBE team.
22
- build:remote --remote_accept_cached=false
20
+ # Always read from remote cache on CI.
21
+ build:remote --remote_accept_cached=true
Original file line number Diff line number Diff line change @@ -19,4 +19,11 @@ openssl aes-256-cbc -d -in .circleci/gcp_token -md md5 -k ${GCP_DECRYPT_TOKEN} \
19
19
echo " export GOOGLE_APPLICATION_CREDENTIALS=$HOME /.gcp_credentials" >> $BASH_ENV
20
20
21
21
# Update the CircleCI Bazel configuration to always use remote execution.
22
- echo ' build --config=remote' >> .circleci/bazel.rc
22
+ echo " build --config=remote" >> .circleci/bazel.rc
23
+
24
+ # Only upload locally built results to the cache if we are running already commited code.
25
+ if [[ -n " ${CIRCLE_PR_NUMBER} " ]]; then
26
+ echo " build --remote_upload_local_results=false" >> .circleci/bazel.rc
27
+ else
28
+ echo " build --remote_upload_local_results=true" >> .circleci/bazel.rc
29
+ fi
You can’t perform that action at this time.
0 commit comments