-
-
Notifications
You must be signed in to change notification settings - Fork 627
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
Remote execution fails to import native_engine.so
#8067
Comments
I just ran this and couldn't reproduce... And from looking at the BUILD files, it looks like there is a dep on |
Indeed, we do have a dep on pants/src/python/pants/engine/BUILD Lines 210 to 213 in 35be511
However, this dep is not very safe in that it's generated and provided by the host machine. For example, perhaps my generated In general, ideas on a robust way to provide to remote workers a solid (P.S. @cosmicexplorer was able to reproduce today using |
@Eric-Arellano : This is precisely #7735 I think. EDIT: Oh. I guess it isn't. It's definitely related, but I think the situation in this case is essentially that unless we were to port the bootstrap of pants itself into remote execution, we would not be able to build the native portion for the remote host. And porting the bootstrap of pants into remote execution is a large project: @cosmicexplorer started it at one point, but there were a series of hermeticity leaks due to limitation in the v2 API that we would need to resolve to get that working. I think that we should assume that we will not be diving into that one too soon (any time in the next two months maybe?), and focus on "doing the right thing" in this case via #7735 (ie, not attempting to remote something platform-dependent to a mismatched platform). |
Closing because Pants now does the right thing. Pants won't even attempt to do remote execution from a mac with a Linux platform as it is not safe. |
About half of unit tests fail when remoted with the below:
To reproduce, rebase against #8066, then run
./pants --pants-config-files=pants.remote.ini --no-v1 --v2 --remote-oauth-bearer-token-path=<(gcloud auth application-default print-access-token | perl -p -e 'chomp if eof') --process-execution-speculation-strategy=none test tests/python/pants_test/engine
--
I think this makes sense, as we seem to never explicitly depend on
native_engine.so
? V2 does not work with implicit runtime dependencies.The text was updated successfully, but these errors were encountered: