hundreds-breakfast-49010
12/11/2019, 12:40 AMMultiPlatformExecuteProcessRequest
and the `Platform`/`PlatformConstraint` types?hundreds-father-404
12/11/2019, 12:46 AMcreate_pex
rule, e.g. ./pants test
, remote execution won’t work from a mac because the host platform != remote platformhundreds-breakfast-49010
12/11/2019, 12:51 AMPlatform
inputhundreds-father-404
12/11/2019, 12:51 AMearly-needle-54791
12/11/2019, 12:52 AMhundreds-breakfast-49010
12/11/2019, 12:53 AMhundreds-breakfast-49010
12/11/2019, 12:53 AMearly-needle-54791
12/11/2019, 12:55 AMearly-needle-54791
12/11/2019, 12:55 AMearly-needle-54791
12/11/2019, 12:57 AMhundreds-breakfast-49010
12/11/2019, 1:04 AMhundreds-breakfast-49010
12/11/2019, 1:11 AMPlatform
, but if we try to retrieve that Pex
from the cache later, nothing is stopping us from using it on a different platform than what it was built for, right?hundreds-breakfast-49010
12/11/2019, 1:11 AMPlatform
is an input to the rulehundreds-breakfast-49010
12/11/2019, 1:13 AMhundreds-father-404
12/11/2019, 1:14 AMhundreds-breakfast-49010
12/11/2019, 1:16 AMhundreds-father-404
12/11/2019, 1:18 AMwhat’s stopping a remote build from building a pex with its own platform, rather than the local platform?sdist wheels. You can’t build a macOS-compatible wheel from a Linux machine. This is why Pants CI has both a
Linux Build Wheels
shard and an OSX Build Wheels
shardhundreds-father-404
12/11/2019, 1:20 AMMultiplatformEPR
can’t be resolved on the remote platform, then try the host and use local execution.
Tangibly, for Python rules run on macOS, build the Pex locally, but then upload that Pex to remote execution for the later rules like invoking Pytest
--
Hm, just kidding. That macOS-specific Pex would not work properly on Linux remote machines 😞hundreds-breakfast-49010
12/11/2019, 1:30 AMExecuteProcessResult
for a specific platform, right? we can request a Pex
for a specific platform, I think, because the rule that creates it has a Platform
inputhundreds-breakfast-49010
12/11/2019, 1:31 AMPex
-building will use MultiplatformEPR not EPRhundreds-breakfast-49010
12/11/2019, 1:32 AMwitty-crayon-22786
12/11/2019, 4:47 PMwitty-crayon-22786
12/11/2019, 4:48 PMwitty-crayon-22786
12/11/2019, 4:48 PM