Closed Peder2911 closed 1 year ago
This happens both when I run ./pants test
and ./pants package
New error message:
stderr:
Failed to load an installed wheel layout from /pants-sandbox/pants-sandbox-5HpirV/p
ytest.pex/.deps/pytest_cov-3.0.0-py3-none-any.whl/.layout.json: [Errno 20] Not a di
rectory: '/pants-sandbox/pants-sandbox-5HpirV/pytest.pex/.deps/pytest_cov-3.0.0-py3
-none-any.whl/.layout.json'
My build environment is declared like this: https://gist.github.com/Peder2911/1c9ea87dd330a645235defc98895be13
Aha, maybe not so random. Issues start whenever something fails during preparation for the test / packaging. Seems to leave the build container in a bad state. Removing the container and deleting .p*
from the repository stops the issues.
Thanks for this report, and for the further debugging. Do you have examples of prep failures that trigger this?
This is a dupe of #18162: sorry for the trouble! That issue is fixed in 2.15.0
, but not yet on main
/2.16.x
.
Describe the bug I am getting random failures when using a Docker environment for building Pexes and running tests. The failures sometimes only happen on one try, and don't appear on subsequent retries. Sometimes the failures are more persistent, and don't go away until I've deleted the cache and pants-related dotfiles in the repo.
The errors being thrown are:
Pants version I am using Pants 2.16.0.dev7
OS I am on an M1 Mac
Additional info I am using Docker Desktop 20.10.23 All of my Docker builds are being run on the
linux/amd64
platform.My pants.toml looks like this: https://gist.github.com/Peder2911/8250bb84257ed6163e0d7efb09155322