-
-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No such file or directory: 'local_dists.pex/PEX-INFO'
when running a python_source
#17987
Comments
@danxmoran I should know this, but for visibility / clarity here locally, is remote caching in play here? |
@jsirois yes, here's a run where it happened: https://app.toolchain.com/organizations/color/repos/color/builds/pants_run_2023_01_12_20_00_55_964_2c6a8359d6dd451d822e35fc67f222ec/ This is the same CI system where we sometimes see the Dockerfile parser's file mysteriously not be present - not sure if it could be the same underlying issue. |
Thanks @danxmoran. This could be the same but it's unclear still. The BSD lock fix for the other issue has worked for every other Pants / Pex user (4 cases IIRC) except you and you're the only instance amongst those using remote caching. Tool chain has also seen this exact error on rc1 and it appears to toggle with remote caching. Still shakiness in all this but your data point is useful to have in the mix. |
We've stopped seeing the problem after downgrading to 2.15.0rc0. |
Thanks, that matches Toolchain's experience. |
I triaged this a little bit this afternoon. In the repro case that we have:
I'm adding some additional workunit metadata to get the precise digest and process definition for the |
Ok, via the debug information added above, I was able to confirm that The venv-pex script has accommodations in place to attempt to survive that case: pants/src/python/pants/backend/python/util_rules/pex.py Lines 770 to 774 in 0fe4584
Inspecting the It should be possible to repro this case by running a @thejcannon : How would you feel about reverting #17761 out of |
@stuhood how does this relate to the backtrace in the OP?:
That has 0 trace of the elements you're talking about FWICT. The only missing piece of info from that backtrace is what the CWD is that the PEX_PATH item |
I was able to repro this on |
Argh. There are other commits relevant to those two changes that cause tests to fail, and there are too many picks to the branch to back out. I'll try to figure out what is missing. In future, I think that we should avoid cherry-picks of this size. |
Fixed in #18035. |
Describe the bug
After updating one of our CI checks to
./pants run
apython_source
directly (vs. the previous code which ran thepex_binary
), some of our jobs started failing with:The
python_source
hasrun_goal_use_sandbox=False
.Pants version
v2.15.0rc1
OS
Linux
The text was updated successfully, but these errors were encountered: