From b7fb92a048316fa606549f72d9b189cd589f3abd Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Mon, 4 May 2020 14:26:03 +0200 Subject: [PATCH] build: do not build runfile trees unnecessarily (#36914) Disables Bazel runfile tree creation. Only if a given execution strategy relies on runfile tree creation, the runfile tree is created lazily. This helps as currently Bazel spends unnecessary time on CI building runfile trees for tests which are cached and aren't re-run. The goal is to spend less time on CI for cached test/build targets. We can't measure impact yet as there are targets for the integration tests that hide the potential benefits. on the components repo a 80% time reduction could be observed. PR Close #36914 --- .bazelrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.bazelrc b/.bazelrc index 64a36c7ee1..37f7b117fb 100644 --- a/.bazelrc +++ b/.bazelrc @@ -33,6 +33,11 @@ build --incompatible_strict_action_env run --incompatible_strict_action_env test --incompatible_strict_action_env +# Do not build runfile trees by default. If an execution strategy relies on runfile +# symlink teee, the tree is created on-demand. See: https://github.com/bazelbuild/bazel/issues/6627 +# and https://github.com/bazelbuild/bazel/commit/03246077f948f2790a83520e7dccc2625650e6df +build --nobuild_runfile_links + ############################### # Release support # # Turn on these settings with #