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
This commit is contained in:
parent
2ff4b357d7
commit
b7fb92a048
5
.bazelrc
5
.bazelrc
|
@ -33,6 +33,11 @@ build --incompatible_strict_action_env
|
||||||
run --incompatible_strict_action_env
|
run --incompatible_strict_action_env
|
||||||
test --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 #
|
# Release support #
|
||||||
# Turn on these settings with #
|
# Turn on these settings with #
|
||||||
|
|
Loading…
Reference in New Issue