Skip to content

python_install_cached can exceed 120 seconds on macOS #2746

Open

Description

@astral-automations-bot

CI failed on main at 9a6a0d9, attempt 1, in test / cargo test on macos, step Cargo test, on macOS 15 aarch64 (namespace-profile-macos-15).

Failed job: https://github.com/astral-sh/uv/actions/runs/38610759426/job/116013609845

TIMEOUT [120.025s] uv::python python_install::python_install_cached
test python_install::python_install_cached has been running for over 60 seconds
(test timed out)
Summary [215.763s] 4484 tests run: 4481 passed, 3 timed out, 1 skipped

The same test passed in 15.516 seconds on the immediate parent revision; all 4,484 tests passed in that macOS job:
https://github.com/astral-sh/uv/actions/runs/38610542116/job/116012847907

The intervening astral-sh#22561 changes connectivity access to equivalent offline predicates. It does not modify this test or its workflow configuration, supporting an intermittent CI failure.

Source inspection confirms that python_install_cached disables the shared download cache and supplies an isolated, initially empty archive cache. Its first command installs the latest Python; no completed command output appears before termination. Nextest applies a 120-second limit and runs 12 test threads on macOS. Download latency, extraction, filesystem contention, and locking remain hypotheses. Investigate the stall and retain subprocess diagnostics on timeout. Shared caching from astral-sh#21632 intentionally does not cover this test's initial download; serialization from astral-sh#17177 applies only to Windows.

Other independent failures in this attempt:

The skipped required-jobs check is consequential.

Activity

  1. added
    internal:ci-flake
    on Oct 14, 2026
  2. 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/38913487902

    Attempt 1 adds a Windows occurrence: python_install::python_install_cached timed out after 120.082 seconds in CI job test / cargo test on windows 3 of 3 on namespace-profile-windows-2022-x86-64-16x32, despite the existing io-bound serialization. No completed subprocess output was captured; the same test passed on Linux in 2.514 seconds. Job: https://github.com/astral-sh/uv-dev/actions/runs/38913487902/job/117015300370

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

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

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

    @astral-automations-bot
    Author

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

    Attempt 1 adds a macOS 15 aarch64 sample with completed output for every python_install_cached command before its 120.027s timeout. The initial Python 3.15 installation took 1m59s; offline reinstallation took 273ms, and the final Python 3.12 cache-miss error matches the expected snapshot. Earlier samples captured no completed command output. The same job also reproduces #2729. Job: https://github.com/astral-sh/uv/actions/runs/39262392546/job/118093497506

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

    @astral-automations-bot
    Author

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

    Attempt 1 adds a two-shard macOS 15 ARM64 occurrence. Shard 1 times out python_install_cached and python_install_emulated_macos: https://github.com/astral-sh/uv-dev/actions/runs/39263751724/job/118098559135. Shard 2 times out install_lower_patch_automatically and install_multiple_patches, adding macOS samples to the Windows reports in #2715 and astral-sh#20414: https://github.com/astral-sh/uv-dev/actions/runs/39263751724/job/118098559200. All four passed on the exact base revision: https://github.com/astral-sh/uv-dev/actions/runs/39262794519/job/118094952113. A common stall mechanism remains unconfirmed.

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

    @astral-automations-bot
    Author

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

    Attempt 1 also reproduces the basic python_upgrade::python_upgrade timeout from #397 on macOS 15 ARM64. It completed all Python 3.10 operations in under a second each, then captured no completed output for the next installation, 3.14.0rc2, before timing out at 120.041s. The same job reproduces #2729 and #2843 alongside python_install_cached; all four passed on the exact PR base. A shared cause remains unconfirmed. Job: https://github.com/astral-sh/uv-dev/actions/runs/39263909376/job/118098815550

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

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

    @astral-automations-bot
    Author

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

    Attempt 1 adds simultaneous macOS timeouts for both transparent-upgrade variants alongside python_install_cached and install_lower_patch_automatically; all four passed on the immediate parent. Job: https://github.com/astral-sh/uv/actions/runs/39262625022/job/118094366057. Independently, TestPyPI accepted both uploads but returned no matching version through all 50 readiness checks, extending the partial-visibility case addressed by #1823. Publish job: https://github.com/astral-sh/uv/actions/runs/39262625022/job/118097845287.

  10. astral-automations-bot commented on Oct 19, 2026

    @astral-automations-bot
    Author

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

    The publish failure affected pypi-keyring: both uploads returned HTTP 200, but all 50 refreshed readiness checks found no matching version, extending the partial-artifact visibility case described in #1823. Job: https://github.com/astral-sh/uv/actions/runs/39262757174/job/118100626741

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