uv: CI/Github Action Failed to extract archive: /home/runner/.cache/uv/.tmppavima/extracted

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).

  Caused by: Failed to build: bluecellulab @ file:///home/runner/work/BlueCelluLab/BlueCelluLab/.tox/.tmp/package/1/bluecellulab-0.0.1.dev1.tar.gz
  Caused by: Failed to extract archive: /home/runner/.cache/uv/.tmppavima/extracted
  Caused by: failed to unpack `/home/runner/.cache/uv/.tmppavima/extracted/bluecellulab-0.0.1.dev1/tests/examples/circuit_sonata_quick_scx_multi_circuit/components/CircuitB/mo`
  Caused by: failed to unpack `bluecellulab-0.0.1.dev1/tests/examples/circuit_sonata_quick_scx_multi_circuit/components/CircuitB/mo` into `/home/runner/.cache/uv/.tmppavima/extracted/bluecellulab-0.0.1.dev1/tests/examples/circuit_sonata_quick_scx_multi_circuit/components/CircuitB/mo`
  Caused by: Is a directory (os error 21)

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

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 3
  • Comments: 38 (19 by maintainers)

Commits related to this issue

Most upvoted comments

I think I have a fix here: https://github.com/astral-sh/tokio-tar/pull/40. It now successfully unpacks the linked archive.

Thanks for your help! I’m so happy that we were able to fix it.

Could be related? I’m not sure. I’m gonna go through tar-rs and see if we’re missing any changes from upstream in our async-oriented fork.

No, but we’ll probably release today.

i really appreciate your work narrowing down these difficult to reproduce issues. on any other project bugs like these would never get fixed

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! 🙏

Should be fixed in the next release.

Ok, I’ve confirmed that it’s this issue: https://github.com/astral-sh/tokio-tar/pull/1

The second trace you referenced there is unrelated. It was fixed in v0.5.28.

ok it happened first try:

   × Failed to build `/home/runner/work/basedpyright/basedpyright`
  ├─▶ failed to unpack
  │   `/home/runner/.cache/uv/sdists-v6/.tmppLstqH/basedpyright-1.26.0/packages/pyright-internal/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core`
  ├─▶ failed to unpack
  │   `basedpyright-1.26.0/packages/pyright-internal/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core`
  │   into
  │   `/home/runner/.cache/uv/sdists-v6/.tmppLstqH/basedpyright-1.26.0/packages/pyright-internal/typeshed-fallback/stubs/aws-xray-sdk/aws_xray_sdk/core`
  ╰─▶ Is a directory (os error 21)

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

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