-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
CI/Github Action Failed to extract archive: /home/runner/.cache/uv/.tmppavima/extracted #2235
Comments
Logs from the successful run (2nd attempt): https://github.com/BlueBrain/BlueCelluLab/actions/runs/8169106907/job/22334002556 |
Thanks! |
My read of the trace is that for some reason |
Oh I see. Those directories contain static files required to run some tests and those are excluded from the package. |
With the newer versions of uv and tox-uv, restarting the workflow does not change the outcome. If the cache fails, the whole workflow fails. I rolled back to uv==0.1.14 and tox-uv==1.4.0 |
Is there any way you could extract and share the |
Unfortunately I cannot access the data from the github actions. It is not listed in the Artifacts section. |
I've seen the same thing happen with the latest versions of uv as well. Sometimes it takes multiple restarts for it to work. |
A couple of times it happened in my local as well but at that time I was in the middle of some other task and later I couldn't reproduce it. |
not sure if this helps at all but i've noticed this happening much more frequently since updating from uv 0.5.20 to 0.5.24. i've added a step to my CI to upload the relevant files so i'll share that here next time it happens |
ok it happened first try:
here's the run and here's the whole uv cache directory, but i couldn't find any of those paths inside it. do they get moved or deleted after the build fails or something? let me know if you need any more info or artifacts and i'll try to provide them |
I have the same Heisenbug-like behavior here across a few different projects. In case it helps investigate, for me at least it's always on a directory with a git submodule. |
I'm also experiencing this nearly constantly. Dropping back to 0.5.19 seems to fix it though. |
Interesting -- I will take a look, thanks. (Does the submodule thing apply to anyone else's projects?) |
The trace suggests there's... something wrong with the tar file itself that's been built? Like, the |
mines not a submodule. the only thing of note i can think of is that im bundling all the typeshed stubs so theres a lot of files in there |
Could be related? I'm not sure. I'm gonna go through |
Mine isn't either these are the sort of errors I get:
Most recently I was getting this error consistently which prompted me to rollback to 0.5.19 (I'm not sure if it's exactly the same problem but I assume related):
|
The second trace you referenced there is unrelated. It was fixed in v0.5.28. |
I'm trying to reproduce this: #11249 |
@DetachHead -- I've been trying to get this to trigger here, with a modified build that persists everything in the cache. It hasn't failed yet, though. Any ideas on where I could be divering? |
only thing i can think of is the uv version is newer (i'm currently on 0.5.24), i can try bumping uv and see if it still happens. my ci is quite a mess so i'll try to see if i can make a cut down version that reproduces the issue. |
I'll try bumping down to 0.5.24 for good measure. |
confirmed still happening on uv 0.5.29. i made a branch that runs the same thing in a matrix of 10 jobs and removed the steps that make it take half an hour to run https://github.com/DetachHead/basedpyright/actions/runs/13215596833/job/36894495570?pr=1047 |
Great, thank you! I’ll try to patch in my changes and re-run. |
Were you able to trigger this on your first try? I can't get it to fail. |
that time it failed first try, but i ran it again with |
Ok I think I was able to reproduce and now have my hands on the failing |
Ok, I've confirmed that it's this issue: astral-sh/tokio-tar#1 |
Attaching the archive that |
I think I have a fix here: astral-sh/tokio-tar#40. It now successfully unpacks the linked archive. |
Should be fixed in the next release. |
thank you! i really appreciate your work narrowing down these difficult to reproduce issues. on any other project bugs like these would never get fixed |
Thanks for your help! I'm so happy that we were able to fix it. |
Big +1 here. This is what sets uv apart. When colleagues express adoption hesitation about uv being new, this is what I tell them and interactions like this are what make me an evangelist. Thanks for all your work! 🙏 |
Thanks for the quick action, @charliermarsh! Is there a workaround to prevent this from happening while the new release isn't available? This continues to happen even after rolling back to |
No, but we'll probably release today. |
Sounds great! Thanks! |
## Summary Pulling in astral-sh/tokio-tar#40. Closes astral-sh#2235.
Hello,
There is this small error that occurs only in the first CI run. When the CI is run the first time it says failed to extract archive (pointing to the .cache directory).
When I restart the CI in the 2nd attempt, it works perfectly fine. This pattern repeats in every CI run. First one fails, the second one succeeds.
here are the CI logs. The uv version, Python version and the other dependencies are all listed in the logs below.
https://github.com/BlueBrain/BlueCelluLab/actions/runs/8169106907/job/22332500653
The text was updated successfully, but these errors were encountered: