Repository navigation
Build runfiles trees only for targets bazel runs - #8966
Merged
Merged
Conversation
--nobuild_runfile_links was set only for the ci config. Make it the default, so local and remote-execution builds also skip writing a runfiles symlink tree for every target they build. `bazel test` and `bazel run` still create the tree for each target they run locally, and remotely executed tests don't need one at all. Writing the trees is slow on macOS and on slow disks, and with --remote_download_minimal the symlinks point at outputs that were never downloaded, so the trees cost time and are of no use. A binary started straight from bazel-bin after `bazel build` now finds no runfiles tree. The workerd binary and plain C++ tests don't read runfiles, so this affects only targets that do, such as wd-tests. The lldb-wpt-test recipe, which debugs a wd-test from its runfiles tree, now builds that target with --build_runfile_links. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
--nobuild_runfile_linkswas set only for theciconfig. This makes it the default, so local and remote-execution builds also skip writing a runfiles symlink tree for every target they build.bazel testandbazel runstill create the tree for each target they run locally; remotely executed tests don't need one.--remote_download_minimalthe symlinks point at outputs that were never downloaded.bazel-binafterbazel buildnow finds no runfiles tree. Theworkerdbinary and plain C++ tests don't read runfiles, so only targets that do (such as wd-tests) are affected; start those withbazel run, or build with--build_runfile_links.just lldb-wpt-test, which debugs a wd-test from its runfiles tree, now builds that target with--build_runfile_links.Checked with
bazel test --config=bazelflare //src/workerd/api/tests:blob-test@: passes, and onlyblob-test@.runfiles_manifestis written locally, no tree.🤖 Generated with Claude Code