Skip to content

Commit 10e4895

Browse files
authored
build: do not upload results to resultstore by default (#20034)
We currently always upload build results to `source.cloud.google.com`. Though past has proven that servers for the Build Event Service are rather unstable compared to the remote execution workers we acquire for CI builds. To avoid that these servers and the non-build relevant result uploading degrades CI stability, we do not run them by default, unless one explicitly opts-in through a Bazel build configuration. The uploaded build results were useful to inspect output of individual targets that ran on CI, but the need for this is limited, and if someone cannot see given output for an action, he could easily connect to the CI container and run the command manually. Usually the output for failed actions is printed to the CI output anyway.
1 parent 0cb302a commit 10e4895

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.bazelrc

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,18 @@ build:remote --host_platform=//tools:rbe_platform
9292
build:remote --platforms=//tools:rbe_platform
9393
build:remote --extra_toolchains=@rbe_default//config:cc-toolchain
9494

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

100108
# Set remote caching settings
101109
build:remote --remote_accept_cached=true

0 commit comments

Comments
 (0)