Skip to content

python_install_upgrade can time out on macOS #1359

Open

Description

@astral-automations-bot

Run: https://github.com/astral-sh/uv/actions/runs/34536752443
Job: https://github.com/astral-sh/uv/actions/runs/34536752443/job/103070398873

Workflow: CI
Job: test / cargo test on macos
Platform: macOS 15 aarch64
Attempt: 1

The managed-Python upgrade test exceeded nextest’s configured 120-second limit:

TIMEOUT [120.034s] uv::python python_install::python_install_upgrade
(test timed out)
error: test run failed

Captured output shows that the test’s uv invocations returned their expected statuses and downloaded several real Python distributions before nextest terminated it. The exact source of the delay is not established; download time or concurrent I/O is a hypothesis.

astral-sh#21568 changes Python upgrade-request error routing but does not modify this test or the macOS workflow. The changed invalid patch-version request returned the expected status and message before later test operations ran. The parent revision’s concurrent macOS cargo-test job succeeded: https://github.com/astral-sh/uv/actions/runs/34536751206/job/103078677197. This therefore appears intermittent and actionable as a test-runtime flake.

Related: astral-sh#20414 tracks a different managed-Python installation test hitting the same cutoff on Windows. astral-sh#5939 tracks replacing expensive real-distribution test operations with local dummy distributions, with infrastructure work in astral-sh#21278.

The same attempt also had independent transient failures already tracked by #1356 and #1358. The required-jobs failure was only their rollup.

Activity

  1. added
    internal:ci-flake
    on Sep 10, 2026
  2. astral-automations-bot commented on Oct 5, 2026

    @astral-automations-bot
    Author

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

    Another python_install_upgrade timeout occurred on Windows shard 1, attempt 1, rather than macOS. Installing Python 3.9.5 took 1m17s before nextest terminated the aggregate test at 120.091s; astral-sh#22199 does not touch this test or managed-Python installation behavior.

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

    @astral-automations-bot
    Author

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

    In attempt 1 on macOS 15 aarch64, installing Python 3.10.22 via --upgrade --reinstall 3.10 took 1m55s before python_install_upgrade exceeded its aggregate limit at 120.043s. All logged invocations returned their expected statuses. This identifies the dominant slow operation, although download versus extraction/I/O delay is not established. Job: https://github.com/astral-sh/uv-dev/actions/runs/38285578723/job/114933287422

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

    @astral-automations-bot
    Author
  5. astral-automations-bot commented on Oct 12, 2026

    @astral-automations-bot
    Author

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

    Attempt 1 also reproduces #1783 with a successful cache hit: the ARM64 Rust-cache step consumed 8m51s and restored approximately 53 MiB before the 10-minute job limit cancelled Test committed binaries. Earlier documented samples included cache misses. Job: https://github.com/astral-sh/uv-dev/actions/runs/38286467849/job/114936195757

  6. astral-automations-bot commented on Oct 14, 2026

    @astral-automations-bot
    Author
  7. 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/38612048982

    Attempt 1 adds a Windows Server 2022 x86_64 shard-1 timeout at 120.098s: https://github.com/astral-sh/uv-dev/actions/runs/38612048982/job/116018027414. The last completed snapshot says 'All requested versions already on latest supported patch release'; the next invocation in the unchanged test upgrades 3.9, 3.10, 3.11, and 3.12 together. The test passed in 18.218s on the base revision. The captured output does not identify the exact blocked operation.

  8. astral-automations-bot commented on Oct 14, 2026

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

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

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

    @astral-automations-bot
    Author
  12. astral-automations-bot commented on Oct 15, 2026

    @astral-automations-bot
    Author
  13. astral-automations-bot commented on Oct 16, 2026

    @astral-automations-bot
    Author

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

    Attempt 1 reproduces this timeout on macOS 15 aarch64 with shared archive caching from astral-sh#22621 and metadata-aligned setup from #2792. Installing Python 3.10.22 with --upgrade --reinstall took 1m02s, versus 941ms for the immediate repeat. The final multi-version upgrade had no completed snapshot before the 120.032-second cutoff; the underlying delay remains unidentified. Job: https://github.com/astral-sh/uv-dev/actions/runs/38839225392/job/116775417667

  14. astral-automations-bot commented on Oct 16, 2026

    @astral-automations-bot
    Author

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

    Attempt 2 timed out at 120.035s on macOS 15 aarch64 after this test passed in 13.676s in attempt 1 at the same revision. The last completed snapshot says Python 3.11 is already current; the next source invocation installs Python 3.9.5, with no completed output captured. The underlying delay remains unidentified. Job: https://github.com/astral-sh/uv/actions/runs/38940041770/job/117111199355

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

    @astral-automations-bot
    Author

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

    Attempt 1 timed out at 120.098s on Windows Server 2022 x86_64, shard 1. The last completed snapshot reports Python 3.11 is already current; the next source operation installs Python 3.9.5, with no completed snapshot before termination. Earlier completed installations each took under 0.5 seconds. This further localizes the delay without establishing its cause. Job: https://github.com/astral-sh/uv-dev/actions/runs/38937962571/job/117098516441

  16. astral-automations-bot commented on Oct 16, 2026

    @astral-automations-bot
    Author

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

    Attempt 1 adds a useful Windows shard-1 sample for #1359: Python 3.9.5 installation completed successfully in 1m57s, consuming nearly the entire 120-second test budget. The test then reached its final multi-version upgrade without completed output before timing out at 120.074s. Job: https://github.com/astral-sh/uv-dev/actions/runs/38947061911/job/117129241196. Shard 3 also reproduced #2729 at 120.100s after installations taking 1m29s and 741ms. Neither log establishes the underlying source of the delay.

  17. astral-automations-bot commented on Oct 16, 2026

    @astral-automations-bot
    Author

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

    Attempt 2 adds progress evidence for #1359 on Windows shard 1: Python 3.9.5 installation completed in 1m56s, and the final multi-version upgrade also returned exit code 0 in 636ms before the 120.092s timeout. The remaining delay is not localized. Job: https://github.com/astral-sh/uv-dev/actions/runs/38946062323/job/117138471671

  18. astral-automations-bot commented on Oct 16, 2026

    @astral-automations-bot
    Author
  19. astral-automations-bot commented on Oct 16, 2026

    @astral-automations-bot
    Author
  20. astral-automations-bot commented on Oct 16, 2026

    @astral-automations-bot
    Author
  21. astral-automations-bot commented on Oct 16, 2026

    @astral-automations-bot
    Author
  22. astral-automations-bot commented on Oct 16, 2026

    @astral-automations-bot
    Author
  23. astral-automations-bot commented on Oct 16, 2026

    @astral-automations-bot
    Author
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