-
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
sandboxfs fails to mount _tmp for tests #7470
Comments
I think this is a Bazel issue. Note that the failure paths do not have |
@jmmv Any ideas on this? We are running into symlink issues (see jestjs/jest#5356) with the testing framework jest (https://jestjs.io/) and while we have patches to fix this on our end and I am planning to submit a fix to jest directly I would also be curios to see if just running tests with sandboxfs fixes the issues (which I am expecting it would). |
@Globegitter Slightly unrelated, but could you describe the patches you have to fix the issue for Jest? I'm having the same issue with it and my workaround (dereferencing all symlinks) is not at all performant. |
@rohansingh you can see some discussion on this here: jasongwartz/bazel_rules_nodejs_contrib#4. If you find me on the bazelbuild Slack I can also send you our latest set of patches for |
Confirmed that this is still a problem with the newest sandboxfs release (0.2.0) and latest Bazel. I'm guessing... I never tried running tests on sandboxfs, so there is probably some stupid lingering bug in there... |
hello. any progress on this issue? It's actually a blocker, would have switched to a sandboxed strategy otherwise. |
Note sure if it helps narrow this down, but: we run Bazel within a docker container with CentOS 7. It might be related to the kernel version? |
The issue also occurs on CentOS 8 (and I assume on any Linux machine that uses linux-sandbox instead of processwrapper-sandbox), blocking our upgrade. |
We run into the same issue described above (on Ubuntu) and figured out it only happens when using the Therefore, our workaround is to execute all test actions with the slightly less restrictive
This has the advantage, that any compilation actions belonging to tests are still executed with |
I see the error associated with |
Reproduced this. While the |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team ( |
This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please reach out to the triage team ( |
With the following repro:
bazel test
fails with sandboxfs enabled:The
_tmp
directory exists in execroot:And
bazel run
runs successfully (although that does not run sandboxed anymore?):This seems to only occur with
bazel test
, as building a pretty complex target caused no errors with sandboxfs.@jmmv any ideas if this is a Bazel or a sandboxfs issue?
What operating system are you running Bazel on?
Ubuntu 18.04 + Bazel 0.22.0 + sandboxfs 0.1.0
The text was updated successfully, but these errors were encountered: