Skip to content

Commit d4d12a9

Browse files
devversionjelbourn
authored andcommitted
build: do not build runfile trees unnecessarily
Do not build runfile tree unnecessarily. Only if they are needed, Bazel will create the runfile trees now. This helps speeding up CI as we currently spend significant amount of time unnecessarily with building these tree's for cached and passing tests.
1 parent d5baa89 commit d4d12a9

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.bazelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ test --nolegacy_external_runfiles
2121
# when running bazel via `yarn bazel`.
2222
build --incompatible_strict_action_env
2323

24+
# Do not build runfile forests by default. If an execution strategy relies on runfile
25+
# forests, the forest is created on-demand. See: https://github.com/bazelbuild/bazel/issues/6627
26+
# and https://github.com/bazelbuild/bazel/commit/03246077f948f2790a83520e7dccc2625650e6df
27+
build --nobuild_runfile_links
28+
2429
###############################
2530
# Output control #
2631
###############################

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.0
1+
3.0.0

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ http_archive(
2929
load("@build_bazel_rules_nodejs//:index.bzl", "check_bazel_version", "node_repositories", "yarn_install")
3030

3131
# The minimum bazel version to use with this repo is v3.1.0.
32-
check_bazel_version("3.1.0")
32+
check_bazel_version("3.0.0")
3333

3434
node_repositories(
3535
node_repositories = {

0 commit comments

Comments
 (0)