Skip to content

Commit d8bd402

Browse files
committed
build: disable runfile creation in bazel_build job
Disables runfile tree creation in the `bazel_build` job. The runfile trees are only needed for execution of test/binary targets, but this is not the case for the `bazel_build` job. Runfile trees are not cached and therefore cause the job to not fully leverage remote caching. For testing jobs we still get the overhead of creating runfile tree's even if the test results were part of the remote cache. Seems like a bug/issue that is tracked on the bazel side: bazelbuild/bazel#6627
1 parent 1663383 commit d8bd402

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.circleci/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,10 @@ jobs:
151151
- *yarn_install
152152
- *setup_bazel_binary
153153

154-
- run: bazel build src/... --build_tag_filters=-docs-package
154+
# Build all targets in the project (not only tests). Disable runfile tree creation
155+
# as these are only needed for execution of targets and this job just verifies that
156+
# targets can be built.
157+
- run: bazel build src/... --build_tag_filters=-docs-package --nobuild_runfile_links
155158

156159
# --------------------------------------------------------------------------------------------
157160
# Job that runs ts-api-guardian against our API goldens in "tools/public_api_guard".

0 commit comments

Comments
 (0)