rhythmic-morning-87313
05/16/2022, 7:41 AMcurved-television-6568
05/16/2022, 8:43 AM./pants --no-process-cleanup …
then those tmp directories are preserved so you can inspect them and re-run the commands interactively again using the __run.sh
script which simulates the original process invoked by Pants as closely as possible (some env leaks through, iirc)
https://www.pantsbuild.org/v2.12/docs/reference-global#section-process-cleanupcurved-television-6568
05/16/2022, 8:44 AMrhythmic-morning-87313
05/16/2022, 9:06 AMrhythmic-morning-87313
05/16/2022, 9:07 AMrhythmic-morning-87313
05/16/2022, 9:08 AMrhythmic-morning-87313
05/16/2022, 9:08 AMos.listdir()
looks fine...rhythmic-morning-87313
05/16/2022, 9:09 AM/tmp/process-execution4vBpVR/ipc/ipc-testing-bcDf-rUQkL4/container
but with --no-process-cleanup
, it only shows /tmp/process-execution4vBpVR/ipc
directory....curved-television-6568
05/16/2022, 9:10 AMrhythmic-morning-87313
05/16/2022, 9:10 AMipc
directory is created via pytest's session-level fixturerhythmic-morning-87313
05/16/2022, 9:10 AMcurved-television-6568
05/16/2022, 9:11 AMrhythmic-morning-87313
05/16/2022, 9:13 AMrhythmic-morning-87313
05/16/2022, 9:13 AMrhythmic-morning-87313
05/16/2022, 9:13 AM-- -k
rhythmic-morning-87313
05/16/2022, 9:13 AMrhythmic-morning-87313
05/16/2022, 9:14 AMrhythmic-morning-87313
05/16/2022, 9:15 AMrhythmic-morning-87313
05/16/2022, 9:16 AMrhythmic-morning-87313
05/16/2022, 9:16 AMrhythmic-morning-87313
05/16/2022, 9:17 AMrhythmic-morning-87313
05/16/2022, 9:17 AM--process-execution-local-parallelism=1
rhythmic-morning-87313
05/16/2022, 9:35 AMrhythmic-morning-87313
05/16/2022, 9:35 AMls -lR
shows the directory is there and immediately creating a docker container that mounts it fails.. 😞rhythmic-morning-87313
05/16/2022, 9:36 AMrhythmic-morning-87313
05/16/2022, 9:36 AME aiodocker.exceptions.DockerError: DockerError(400, 'invalid mount config for type "bind": bind source path does not exist: /tmp/process-executionHj4oGH/ipc/ipc-testing-C4tYCSqV64E/container')
rhythmic-morning-87313
05/16/2022, 10:01 AMrhythmic-morning-87313
05/16/2022, 10:01 AMrhythmic-morning-87313
05/16/2022, 10:02 AM/tmp/...
in the hostrhythmic-morning-87313
05/16/2022, 10:02 AM[GLOBAL].local_execution_root_dir
in pants.toml to %(buildroot)s/tmp
and it now works with the mountsrhythmic-morning-87313
05/16/2022, 10:02 AMrhythmic-morning-87313
05/16/2022, 10:03 AMrhythmic-morning-87313
05/16/2022, 10:13 AMrhythmic-morning-87313
05/16/2022, 10:13 AMcurved-television-6568
05/16/2022, 10:58 AM