https://pantsbuild.org/ logo
#development
Title
# development
h

hundreds-father-404

02/25/2022, 4:02 AM
Huh, failure in
main
CI. Has anyone seen something like this before?
034410.89 [ERROR] Completed: Lint with autoflake - autoflake failed (exit code 2).
/home/runner/.cache/pants/named_caches/pex_root/venvs/s/e4a8d8cc/venv/bin/python3.7: can't open file '/home/runner/.cache/pants/named_caches/pex_root/venvs/76dfc7bf5b19524ee737148e3049712704fec4e9/2703f860957c2efe7f4d087e27e538da0891bc96/pex': [Errno 2] No such file or directory
h

happy-kitchen-89482

02/25/2022, 4:23 AM
That is odd
pex
in that named_caches subdir should be a symlink to
__main__.py
so either
pex
doesn't exist or the thing it points to doesn't
I don't see an obvious problem with this code
Going to restart the CI build to see if this reproduces
e

enough-analyst-54434

02/25/2022, 3:08 PM
Yeah, pretty mysterious. I re-read the larger context of the code Benjy pointed to and it does crucially run venv creation in an exclusive atomic_directory: https://github.com/pantsbuild/pex/blob/1fb41df74f1bc8145c370010e8e3c82fb3b2a9e8/pex/pex_bootstrapper.py#L400-L470
h

happy-kitchen-89482

02/25/2022, 4:47 PM
Rerunning the job did not reproduce the issue
e

enough-analyst-54434

02/25/2022, 5:00 PM
Yeah. This is bad.
👍 1
The immutable caches bug and this are both not understood.
h

hundreds-father-404

02/25/2022, 5:27 PM