Skip to content

Malformed-wheel snapshots flake when R2 downloads report a retry #377

Open

Description

@astral-automations-bot

Run: https://github.com/astral-sh/uv-dev/actions/runs/29949210615

The CI workflow failed in attempt 1 while running Cargo test on Linux and Windows. The first useful failure was pip_install::reject_invalid_chained_extra_field on Linux:

× Failed to download `attrs @ https://pub-c6f28d316acd406eae43501e51ad30fa.r2.dev/zip6/attrs-25.3.0-py3-none-any.whl`
├─▶ Request failed after 1 retry in [TIME]
├─▶ Failed to unzip wheel: attrs-25.3.0-py3-none-any.whl
snapshot assertion for 'reject_invalid_chained_extra_field' failed

Affected jobs:

Windows also failed reject_invalid_short_usize_zip64 and reject_invalid_duplicate_extra_field with the same added retry diagnostic. The all required jobs passed failure was only the resulting rollup.

These tests fetch malformed-wheel fixtures directly from a live R2 host. Their snapshots expect the archive error but not the timing-dependent retry line. The pull request only refactors requirement-export output flags and does not change pip installation, downloads, extraction, or these tests, so the failures appear unrelated to the proposed change.

The exact external cause is not established, but retries took approximately 2.8–9.4 seconds and affected both platforms during the same run. The tests should avoid allowing live-host latency or transient request behavior to change snapshot output, for example by filtering the retry diagnostic or serving the fixtures deterministically.

Related: astral-sh#15318 tracked a transient failure from the same R2 host, and astral-sh#15322 added retries only to the separate extraction-test downloader. astral-sh#15158 documents the live-network dependency of those related fixtures.

Activity

  1. added
    internal:ci-flake
    on Jul 22, 2026
  2. astral-automations-bot commented on Jul 27, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/30278054523

    Another sample from the live R2 fixture dependency: attempt 1 failed only on Linux in extract::malo_accept_comment, where the response reached the ZIP parser as invalid bytes and produced AsyncZip(UnexpectedHeaderError(1868833084, 67324752)). Unlike the earlier samples, this was not a retry-related snapshot difference.

  3. astral-automations-bot commented on Jul 28, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/30367657856

    Another sample occurred on uv-dev main in the Linux Cargo test job: extract::malo_reject_dupe_eocd produced AsyncZip(UnexpectedHeaderError(1868833084, 67324752)) instead of TrailingContents on attempt 1, and the retry repeated the same snapshot mismatch.

  4. astral-automations-bot commented on Aug 20, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/32399431841

    Run https://github.com/astral-sh/uv/actions/runs/32399431841 attempt 1 adds two affected tests to #377: malo_malicious_unicode_extra_chain and malo_reject_data_descriptor_zip64_usize. It also adds an #380 sample where two linux/amd64 Docker jobs timed out on the same ghcr.io/astral-sh/uv:latest manifest while sibling matrix jobs succeeded.

  5. astral-automations-bot commented on Aug 27, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/33079212690

    Another occurrence: https://github.com/astral-sh/uv/actions/runs/33079212690 attempt 1 failed on main in the Linux Cargo test job when extract::malo_iffy_non_ascii_original_name received AsyncZip(UnexpectedHeaderError(1868833084, 67324752)) instead of LocalHeaderNotUtf8. This adds that test to the malformed R2 response samples tracked in #377.

  6. astral-automations-bot commented on Sep 21, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/35612193152

    Run https://github.com/astral-sh/uv-dev/actions/runs/35612193152 attempt 1 adds a cross-platform #377 sample: reject_invalid_short_usize_zip64 gained the retry diagnostic on macOS after about 32.8 seconds and Windows 1 of 3 after about 0.4 seconds. The same run independently reproduced the missing Docker pipe tracked by #1330.

  7. astral-automations-bot commented on Sep 21, 2026

    @astral-automations-bot
    Author
  8. astral-automations-bot commented on Sep 21, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/35612169845

    Run https://github.com/astral-sh/uv/actions/runs/35612169845 adds a main-branch macOS reject_invalid_short_usize_zip64 sample to #377; the retry appeared after 13.6 seconds. The same run independently reproduced the post-astral-sh/uv#21050 TestPyPI readiness timeout addressed by #1823: the keyring release exposed only its wheel for the full 100-second window.

  9. astral-automations-bot commented on Oct 7, 2026

    @astral-automations-bot
    Author
  10. astral-automations-bot commented on Oct 7, 2026

    @astral-automations-bot
    Author
  11. astral-automations-bot commented on Oct 14, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/38597494052

    Attempt 1 adds extract::malo_malicious_short_usize and extract::malo_malicious_zipinzip to the affected tests in #377. Both failed in CI's Linux Cargo test job with AsyncZip(UnexpectedHeaderError(1868833084, 67324752)), replacing BadUncompressedSize and ZipInZip respectively. The seekable test fetching the same short_usize fixture passed. Job: https://github.com/astral-sh/uv-dev/actions/runs/38597494052/job/115968241994

  12. astral-automations-bot commented on Oct 21, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/39657576407

    Attempt 1 of https://github.com/astral-sh/uv/actions/runs/39657576407 adds a broad R2 sample: 30 Linux extraction tests reported UnexpectedHeaderError(1868833084, 67324752), and malo_seekable_accept_deflate reported UnableToLocateEOCDR. Windows shard 3 also exhausted three retries with HTTP 500 for reject_invalid_crc32_non_data_descriptor. The same shard independently reproduced the PyTorch download flake tracked by #408: incompatible_cuda received HTTP 500 from download-r2.pytorch.org after three retries.

  13. astral-automations-bot commented on Oct 23, 2026

    @astral-automations-bot
    Author
  14. astral-automations-bot commented on Oct 26, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/40351538105

    Attempt 1 failed only extract::malo_iffy_nosubdir in CI's Linux Cargo test job: expected Ok(()), received AsyncZip(UnexpectedHeaderError(1868833084, 67324752)). This is another R2 invalid-response sample for #377 involving a fixture expected to extract successfully. Job: https://github.com/astral-sh/uv/actions/runs/40351538105/job/121673072901

  15. astral-automations-bot commented on Oct 26, 2026

    @astral-automations-bot
    Author
  16. astral-automations-bot commented on Nov 4, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv-dev/actions/runs/41872825331

    Attempt 1 adds a paired streaming/seekable sample: extract::malo_accept_deflate failed with AsyncZip(UnexpectedHeaderError(1868833084, 67324752)), while malo_seekable_accept_deflate fetched the same fixture successfully. Only this test failed in CI's Linux Cargo test job. The proposed change affects cargo-vet workflow configuration only. Job: https://github.com/astral-sh/uv-dev/actions/runs/41872825331/job/126725185333

  17. astral-automations-bot commented on Nov 22, 2026

    @astral-automations-bot
    Author

    Another workflow run encountered this failure: https://github.com/astral-sh/uv/actions/runs/44966609765

    Attempt 1 of https://github.com/astral-sh/uv/actions/runs/44966609765 failed 31 extraction tests in CI's Linux Cargo test job. Both seekable tests received UnableToLocateEOCDR, including malo_seekable_malicious_short_usize, whose expected result was BadUncompressedSize. The other 29 failures reported UnexpectedHeaderError(1868833084, 67324752). Job: https://github.com/astral-sh/uv/actions/runs/44966609765/job/137037118821

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    internal:ci-flake

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions