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
1212build:remote --tls_enabled=true
1313build:remote --auth_enabled=true
1414
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+
1520# Setup the toolchain and platform for the remote build execution. The platform
1621# is automatically configured by the "rbe_autoconfig" rule in the project workpsace.
1722build: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
1515
1616# Use the Angular team internal GCP instance for remote execution.
1717build:remote --remote_instance_name=projects/internal-200822/instances/default_instance
18+ build:remote --project_id=internal-200822
1819
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} \
1919echo " export GOOGLE_APPLICATION_CREDENTIALS=$HOME /.gcp_credentials" >> $BASH_ENV
2020
2121# 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