Hi, I'm experiencing an issue with `adhoc_tool` wh...
# general
a
Hi, I'm experiencing an issue with
adhoc_tool
when running in CI, and I'm not sure exactly how to debug. I'm using the python package
//:root#sphinx
as my runnable. It has worked fine so far, but now I get an error that seems to relate to this. Error below:
Copy code
ProcessExecutionFailure: Process 'the `adhoc_tool` at src/docs/optipyclient:gen-tool' failed with exit code 127.
stdout:

stderr:
/tmp/pants-sandbox-uCojqq/./sphinx.pex_pex_shim.sh: line 53: /tmp/pants-sandbox-uCojqq/./.cache/pex_root/venvs/22ea97ff6745f829cebb2a3ed946209934809d38/73c7d7c618fac01449fa6e57a21210c0eb8a8f21/pex: No such file or directory
I managed to inspect the sandbox and the directory
73c7d7c618fac01449fa6e57a21210c0eb8a8f21
doesn't exist. Where does this come from and what could be causing it to not exist?
🤔 1
g
Is there any symlink shenanigans happening here?
ls -a
etc. I don't think I've ever seen a
.cache
inside a sandbox.
h
a symlink under
.cache
inside a sandbox is a symlink to the persistent named cache
b
I think this is a pants caching bug that you can work around by first packing the requirement into a pex_binary and running that (will find the link in a bit, on mobile)
a
Thanks @broad-processor-92400, will try the work around 🙏
Can confirm this worked 🚀
And thanks @gorgeous-winter-99296, I haven't heard shenanigans used for a while 🤣