-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
install pip and uv in separate pip calls #3127
Conversation
There's not much point installing a pinned version of pip if we don't use that pinned version to get uv
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3127 +/- ##
==========================================
+ Coverage 99.62% 99.68% +0.06%
==========================================
Files 122 122
Lines 18340 21901 +3561
Branches 1222 1744 +522
==========================================
+ Hits 18272 21833 +3561
+ Misses 47 46 -1
- Partials 21 22 +1 |
Oh I think someone deleted the cache or something. Things work now. Here's a list of what I was going to try (to narrow down things):
I'll try them if this happens again. |
Nevermind I got fooled. Somehow it's failing elsewhere -- does it take the current actions YAML as input??? Weird. |
Uh huh:
that seems ominous |
OK so my hypothesis is that:
|
this doesn't make sense. it's not permissions, yet it happened 3 times in a row. I'll try to find the actions run where it happened (based on timestamps) ... seems like it was https://github.com/python-trio/trio/actions/runs/11693817436
still different cache key but that's an interesting error. though thinking about it, that's irrelevant because the other pypy run managed to save its cache. ultimately this is because of suppressing OSError in writes: https://github.com/pypa/pip/blob/420435903ff2fc694d6950a47b896427ecaed78f/src/pip/_internal/network/cache.py#L74 that doesn't make sense. pip should change that. |
Could this theoretically be issues stemming from a hash collision? I know the likelyhood of that is astronomically low, but putting that idea out there. |
I don't think so. But not having suppressed the OS errors would help diagnosing things further :^) |
Just realized https://github.com/python-trio/trio/actions/runs/11754054520/job/32747608845 is another actions run that failed to rename the tmpfile pip makes, and it has the verbose flags. But the logs look like you would expect:
|
I'm like 90% certain (I'm trying to prove this to myself right now) that the issue is that somewhere in |
I'm certain of my hypothesis: putting a |
Alright, so the "fix" specifically in this one case is that for https://github.com/pypa/pip/blob/420435903ff2fc694d6950a47b896427ecaed78f/src/pip/_vendor/cachecontrol/controller.py#L290, instead of just returning the headers, the file stored in For some reason, |
you should be able to use |
for more information, see https://pre-commit.ci
Seems to work! Other than the fact that |
I think we figured this out. |
[investigating pypy pip cache issues]