-
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
py_runtime not added to sandbox #3568
Comments
@abergmeier-dsfishlabs I'm not familiar at all with creating a hermetic py_runtime. :( Andreas, could you provide a minimal example for reproducing this? Maybe copy & pastable instructions or a tar.gz of a repo where I just have to "bazel build" something to see the error? |
@philwo There you go: https://github.com/abergmeier-dsfishlabs/bazel_hermetic_test Run |
+1 to the importance of this bug. |
Should add it to the sandbox and find it in the .runfiles folder. I haven't tested what the other side-effects are so beware. |
@AustinSchuh Do you mind sending this as a pull-request? We can just run it through our test suite to see if its fine. :) |
@philwo A gerrit code review, not a pull request, right? Or is the process changing? |
@AustinSchuh Feel free to pick whichever you prefer. :) Our import / merge script supports both and there's no difference in the workflow. I think GitHub pull requests are totally fine for smaller patches, while Gerrit is preferred for bigger code reviews. But AFAIK that's not a hard rule, just a recommendation. |
@philwo done! Maybe I should file another bug, but I'm struggling to find the command I should be using to run all the tests applicable to my platform before submitting. The command that I found in the docs seems to be out of date since it tries to build Windows on Linux. |
How's the review going? We've been hitting this same issue. Any chance this makes it to Bazel 0.8.0 or 0.9.0? |
@greggdonovan Likely too late for 0.8.0 since there's already a RC, but 0.9.0 seems possible. https://bazel-review.googlesource.com/c/bazel/+/19750 |
Any word on this? I keep running into awkward cases that would be nicely improved by this fix. |
It's merged and we've been using it for a quarter. |
Ha, great. Probably time to close this issue then? |
Yep. Let's do it. |
Description of the problem / feature request / question:
In our repository we have a hermetic
py_runtime
andpy_binary
. When thispy_binary
is used in an action, the resulting sandbox does not get linked anypy_runtime
file:Environment info
bazel info release
): 0.5.3The text was updated successfully, but these errors were encountered: