-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid creating test runfile trees when using sandboxfs #15153
Comments
Hello @pauldraper, Could you please provide more details with respect to your query. Thanks! |
Even with sandboxfs being used, runfiles trees are still being created in the output root for builds, tests, etc. |
Possibly related to issue #7470. Could you show a command line that prompts this behaviour, and what you're seeing that you didn't expect? A couple of tries didn't get me to get sandboxfs to work for tests at all. |
WORKSPACE.bazel workspace(name = "example") BUILD.bazel sh_binary(
name = "test",
data = ["data.txt"],
srcs = ["test.sh"],
) test.sh #!/bin/sh data.txt Run bazel test --experimental_use_sandboxfs :test Notice that the symlink Sandboxfs (when enabled) could be used to avoid materializing the runfile tree. |
FYI, we do have a flag to suppress the creation of runfile symlink trees ( |
Description of the problem / feature request:
Avoid creating test runfile trees when using sandboxfs.
Feature requests: what underlying problem are you trying to solve with this feature?
The entire point of sandboxfs is avoiding creating symlinks.
But when running
bazel test
, the symlink tree is created anyway. This seems unnecessary, no?The text was updated successfully, but these errors were encountered: