Skip to content

uv publish test flakes on test.pypi.org during re-upload check #363

Closed

Description

@zanieb
=== 3. Publishing astral-test-token 0.1.6663 again with index ===
DEBUG uv 0.6.14 (65782814c 2025-04-21)
DEBUG Starting Python discovery for Python 3.12
DEBUG Looking for exact match for request Python 3.12
DEBUG Searching for Python 3.12 in virtual environments, managed installations, or search path
DEBUG Found `cpython-3.12.10-linux-x86_64-gnu` at `/home/runner/.cache/uv/environments-v2/test-publish-2a582df2afcfc9c5/bin/python3` (active virtual environment)
DEBUG Using Python 3.12.10 interpreter at /home/runner/.cache/uv/environments-v2/test-publish-2a582df2afcfc9c5/bin/python3 for builds
DEBUG Using request timeout of 30s
DEBUG Solving with installed Python version: 3.12.10
DEBUG Solving with target Python version: >=3.12
DEBUG Adding direct dependency: astral-test-token*
DEBUG Found stale response for: https://test.pypi.org/simple/astral-test-token/
DEBUG Sending revalidation request for: https://test.pypi.org/simple/astral-test-token/
DEBUG Found not-modified response for: https://test.pypi.org/simple/astral-test-token/
DEBUG Searching for a compatible version of astral-test-token (*)
DEBUG Selecting: astral-test-token==0.1.6663 [compatible] (astral_test_token-0.1.6663-py3-none-any.whl)
DEBUG Found fresh response for: https://test-files.pythonhosted.org/packages/04/06/9dbda8dec4d424a154e892ef5c5fed4685ffab1c9f655c1a213e10fcd0a4/astral_test_token-0.1.6663-py3-none-any.whl.metadata
DEBUG Tried 1 versions: astral-test-token 1
DEBUG marker environment resolution took 0.072s
Traceback (most recent call last):
  File "/home/runner/work/uv/uv/scripts/publish/test_publish.py", line 559, in <module>
    main()
  File "/home/runner/work/uv/uv/scripts/publish/test_publish.py", line 555, in main
    publish_project(project_name, uv, client)
  File "/home/runner/work/uv/uv/scripts/publish/test_publish.py", line 459, in publish_project
    raise RuntimeError(
RuntimeError: Re-upload with check URL failed: 1 != 0, 1 != 2
---
DEBUG uv 0.6.14 (65782814c 2025-04-21)
DEBUG Publishing with index test-pypi
DEBUG Not a distribution filename: `.DS_Store`
DEBUG Not a distribution filename: `.gitignore`
Publishing 2 files https://test.pypi.org/legacy/
DEBUG Using request timeout of 900s
DEBUG Checking for astral_test_token-0.1.6663-py3-none-any.whl in the registry
DEBUG Found stale response for: https://test.pypi.org/simple/astral-test-token/
DEBUG Sending revalidation request for: https://test.pypi.org/simple/astral-test-token/
DEBUG Found modified response for: https://test.pypi.org/simple/astral-test-token/
Uploading astral_test_token-0.1.6663-py3-none-any.whl (6.7KiB)
DEBUG Hashing dist/astral_test_token-0.1.6663-py3-none-any.whl
DEBUG Using HTTP Basic authentication
DEBUG Response code for https://test.pypi.org/legacy/: [200](https://github.com/astral-sh/uv/actions/runs/14580070015/job/40894769725?pr=10662#step:7:201) OK
TRACE Response headers for https://test.pypi.org/legacy/: Response { url: "https://test.pypi.org/legacy/", status: 200, headers: {"content-type": "application/json", "accept-ranges": "bytes", "content-security-policy": "base-uri 'self'; connect-src 'self' https://api.github.com/repos/ https://api.github.com/search/issues https://gitlab.com/api/ https://analytics.python.org fastly-insights.com *.fastly-insights.com *.ethicalads.io https://api.pwnedpasswords.com https://cdn.jsdelivr.net/npm/[email protected]/es5/sre/mathmaps/; default-src 'none'; font-src 'self' fonts.gstatic.com; form-action 'self' https://checkout.stripe.com; frame-ancestors 'none'; frame-src 'none'; img-src 'self' https://testpypi-camo.freetls.fastly.net/ *.fastly-insights.com *.ethicalads.io ethicalads.blob.core.windows.net; script-src 'self' https://analytics.python.org *.fastly-insights.com *.ethicalads.io 'sha256-U3hKDidudIaxBDEzwGJApJgPEf2mWk6cfMWghrAa6i0=' https://cdn.jsdelivr.net/npm/[email protected]/ 'sha256-1CldwzdEg2k1wTmf7s5RWVd7NMXI/7nxxjJM2C4DqII=' 'sha256-0POaN8stWYQxhzjKS+/eOfbbJ/u4YHO5ZagJvLpMypo='; style-src 'self' fonts.googleapis.com *.ethicalads.io 'sha256-2YHqZokjiizkHi1Zt+6ar0XJ0OeEy/egBnlm+MDMtrM=' 'sha256-47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=' 'sha256-JLEjeN9e5dGsz5475WyRaoA4eQOdNPxDIeUhclnJDCE=' 'sha256-mQyxHEuwZJqpxCw3SLmc4YOySNKXunyu2Oiz1r3/wAE=' 'sha256-OCf+kv5Asiwp++8PIevKBYSgnNLNUZvxAp4a7wMLuKA=' 'sha256-h5LOiLhk6wiJrGsG5ItM0KimwzWQH/yAcmoJDJL//bY='; worker-src *.fastly-insights.com", "referrer-policy": "origin-when-cross-origin", "date": "Mon, 21 Apr 2025 19:44:19 GMT", "x-served-by": "cache-sjc1000122-SJC, cache-sjc1000135-SJC", "x-cache": "MISS, MISS", "x-cache-hits": "0, 0", "x-timer": "S1745264659.731400,VS0,VE357", "vary": "Cookie, Authorization, Cookie", "strict-transport-security": "max-age=31536000; includeSubDomains; preload", "x-frame-options": "deny", "x-xss-protection": "1; mode=block", "x-content-type-options": "nosniff", "x-permitted-cross-domain-policies": "none", "permissions-policy": "publickey-credentials-create=(self),publickey-credentials-get=(self),accelerometer=(),ambient-light-sensor=(),autoplay=(),battery=(),camera=(),display-capture=(),document-domain=(),encrypted-media=(),execution-while-not-rendered=(),execution-while-out-of-viewport=(),fullscreen=(),gamepad=(),geolocation=(),gyroscope=(),hid=(),identity-credentials-get=(),idle-detection=(),local-fonts=(),magnetometer=(),microphone=(),midi=(),otp-credentials=(),payment=(),picture-in-picture=(),screen-wake-lock=(),serial=(),speaker-selection=(),storage-access=(),usb=(),web-share=(),xr-spatial-tracking=()", "content-length": "58"} }
TRACE Response content for https://test.pypi.org/legacy/: {"message": "\n\n\n\n\n", "code": "200 OK", "title": "OK"}
INFO Upload succeeded
DEBUG Checking for astral_test_token-0.1.6663.tar.gz in the registry
DEBUG Found stale response for: https://test.pypi.org/simple/astral-test-token/
DEBUG Sending revalidation request for: https://test.pypi.org/simple/astral-test-token/
DEBUG Found modified response for: https://test.pypi.org/simple/astral-test-token/
DEBUG Hashing dist/astral_test_token-0.1.6663.tar.gz
DEBUG Found astral_test_token-0.1.6663.tar.gz in the registry with matching hash 805b910e9cc7e023f8a20abe1e28b60cac7064bb979c9d696239ffd89b7f92a4
File astral_test_token-0.1.6663.tar.gz already exists, skipping

https://github.com/astral-sh/uv/actions/runs/14580070015/job/40894769725?pr=10662

Activity

  1. added
    internal:ci-flake
    on May 30, 2025
  2. github-actions commented on Jul 21, 2026

    @github-actions
  3. transferred this issue fromastral-sh/uvon Jul 21, 2026
  4. astral-automations-bot commented on Jul 23, 2026

    @astral-automations-bot

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

    Another sample of the exact partial re-upload failure, this time in the pypi-password-env path rather than the token path: one artifact was uploaded and one was skipped.

  5. astral-automations-bot commented on Jul 23, 2026

    @astral-automations-bot

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

    Another sample occurred in the pypi-keyring path on main: TestPyPI returned 200 for both initial artifacts, but the check-URL re-upload still uploaded one and skipped one (1 != 0, 1 != 2).

  6. astral-automations-bot commented on Jul 25, 2026

    @astral-automations-bot
  7. astral-automations-bot commented on Jul 27, 2026

    @astral-automations-bot

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

    Run https://github.com/astral-sh/uv/actions/runs/30298549294 adds two useful variants: #363 occurred in pypi-trusted-publishing-github, while #412 affected Docker Hub login for the Python 3.14 Alpine 3.23 build matrix entry.

  8. astral-automations-bot commented on Jul 27, 2026

    @astral-automations-bot
  9. astral-automations-bot commented on Jul 28, 2026

    @astral-automations-bot
  10. astral-automations-bot commented on Jul 30, 2026

    @astral-automations-bot

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

    Another exact partial re-upload sample occurred on main in the pypi-text-store credential path: TestPyPI exposed the sdist but not the wheel, so one artifact was skipped and one was uploaded.

  11. astral-automations-bot commented on Aug 3, 2026

    @astral-automations-bot
  12. astral-automations-bot commented on Aug 11, 2026

    @astral-automations-bot

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

    Another sample occurred in https://github.com/astral-sh/uv/actions/runs/31485935541: the pypi-keyring path re-uploaded both artifacts and skipped none (2 != 0, 0 != 2), rather than the previously observed partial re-upload.

  13. astral-automations-bot commented on Aug 13, 2026

    @astral-automations-bot
  14. astral-automations-bot commented on Aug 13, 2026

    @astral-automations-bot
  15. astral-automations-bot commented on Aug 14, 2026

    @astral-automations-bot

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

    Another sample occurred in the pypi-trusted-publishing-github path, but this time the initial post-upload wait failed: TestPyPI exposed only the wheel for more than 100 seconds before wait_for_index exhausted all 50 attempts. Failed run: https://github.com/astral-sh/uv/actions/runs/31797220277

  16. 13 remaining items

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

    @astral-automations-bot
  18. astral-automations-bot commented on Aug 20, 2026

    @astral-automations-bot
  19. astral-automations-bot commented on Aug 20, 2026

    @astral-automations-bot
  20. astral-automations-bot commented on Aug 21, 2026

    @astral-automations-bot

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

    Run https://github.com/astral-sh/uv/actions/runs/32431531969 adds another Windows shard 3 publish::username_password_no_longer_supported sample where TestPyPI returned its 503 maintenance page instead of the expected 403. The same run independently reproduced the Codex TPM-limit failure tracked by #382.

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

    @astral-automations-bot
  22. astral-automations-bot commented on Sep 1, 2026

    @astral-automations-bot

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

    Another sample occurred in https://github.com/astral-sh/uv/actions/runs/33532116721: the dedicated test uv publish job failed before upload inside pypa/gh-action-pypi-publish when the TestPyPI OIDC audience request was reset during TLS setup. This differs from earlier audience-endpoint samples that returned HTTP 503.

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

    @astral-automations-bot

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

    Run https://github.com/astral-sh/uv/actions/runs/34075898549 adds a pypi-token variant: both uploads returned HTTP 200, but TestPyPI exposed only the wheel throughout the 100-second readiness window.

  24. astral-automations-bot commented on Sep 8, 2026

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

    @astral-automations-bot
  26. astral-automations-bot commented on Sep 11, 2026

    @astral-automations-bot

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

    Run https://github.com/astral-sh/uv/actions/runs/34548902498 adds a post-astral-sh/uv#21050 initial-wait sample in the pypi-password-env path: both uploads returned HTTP 200, but TestPyPI exposed only one artifact, with brief missing-version responses, through all 50 readiness checks.

  27. astral-automations-bot commented on Sep 15, 2026

    @astral-automations-bot

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

    This sample combines the pypi-trusted-publishing-github path with the post-astral-sh/uv#21050 hidden-stderr exit-2 shape: both initial attested uploads returned 200 and readiness checks succeeded before the same-file re-upload failed.

  28. astral-automations-bot commented on Sep 15, 2026

    @astral-automations-bot
  29. astral-automations-bot commented on Sep 15, 2026

    @astral-automations-bot
  30. woodruffw commented on Sep 16, 2026

    @woodruffw
    Member
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