Skip to content

python_install_no_cache can time out during reinstallation on Windows #2600

Open

Description

@astral-automations-bot

CI run https://github.com/astral-sh/uv/actions/runs/38257312325, attempt 1, failed in test / cargo test on windows 3 of 3 on Windows Server 2022 x86-64 (namespace-profile-windows-2022-x86-64-16x32).

Job: https://github.com/astral-sh/uv/actions/runs/38257312325/job/114838904396

TIMEOUT [120.068s] uv::python python_install::python_install_no_cache
Summary [290.034s] 1295 tests run: 1294 passed, 1 timed out, 2640 skipped

Before termination, three commands completed successfully: Python 3.15.0 installed in 2.09 seconds, an unqualified install reported that Python was already installed, and an explicit 3.15 install reported the same. In crates/uv/tests/python/python_install.rs, the next invocation is uv python install 3.15 --reinstall; no completed output from that invocation appears. The test deliberately disables the Python download cache. The logs do not establish whether downloading, extraction, filesystem operations, or another part of reinstallation stalled.

The same test passed in 1.605 seconds on the preceding PR revision: https://github.com/astral-sh/uv/actions/runs/38229623845/job/114745856990. It also passed in 1.538 seconds on the PR base: https://github.com/astral-sh/uv/actions/runs/38225685228/job/114732749499. The intervening commit changes only pylock export code. The originating astral-sh#22118 does not modify this test or Python installation code, supporting an intermittent CI failure rather than a PR regression.

The failing revision already serializes python_install:: tests through the Windows nextest io-bound group and terminates tests after 120 seconds. Investigate the uncached reinstall stall and add sufficient diagnostics or a targeted mitigation. There was no independent second failure; the required-jobs check only propagated this test failure.

Related: #2487 and astral-sh#20414 track timeouts in different managed-Python tests; a common cause is unconfirmed. The serialization mitigation from astral-sh#17177 remains active. astral-sh#11834 discusses archive caching, which this test intentionally bypasses.

Activity

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

    Attempt 1 adds a slower initial-install sample on Windows Server 2022 x86-64: Python 3.15.0 installed successfully in 1m 32s, versus 2.09s in the original report. Both no-op installs then succeeded, but no completed reinstall output appeared before TIMEOUT [120.104s]. The initial install therefore consumed most of the test budget; the logs do not identify why it was slow. Job: https://github.com/astral-sh/uv-dev/actions/runs/38275694552/job/114900784805

  3. 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/38611322299

    Attempt 2 timed out after 120.078s in python_install_no_cache on Windows Server 2022 x86-64: https://github.com/astral-sh/uv-dev/actions/runs/38611322299/job/116032883692. Unlike the original report, no completed command output was captured, so this sample cannot be localized to reinstallation. The same test passed in 1.522s in attempt 1 at the identical head SHA; that attempt's different prerelease-install timeout is already recorded in #2729.

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

    @astral-automations-bot
    Author

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

    Attempt 1 reproduced both tracked timeouts in the same Windows Server 2022 x86-64 shard: https://github.com/astral-sh/uv/actions/runs/38736727075/job/116428253750. python_install_no_cache spent 57.31 seconds on its successful initial installation before timing out without completed reinstall output. The same job also reproduced the #728 prerelease-specifier timeout after six completed discovery snapshots.

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

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

    Attempt 1 adds a distinct sample for #2608: python_install_preview_upgrade timed out after 120.096 seconds without any completed command output in https://github.com/astral-sh/uv/actions/runs/38912471069/job/117014157242. That Windows shard also reproduced #2600 after an 18.54-second initial installation. Shard 1 independently reproduced #1359, with no completed Python 3.9.5 installation output. A shared cause is unconfirmed.

  7. 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/38914976812

    Attempt 1 reproduced both tracked timeouts in Windows shard 3: https://github.com/astral-sh/uv-dev/actions/runs/38914976812/job/117020901466. Alongside the #2600 timeout after an initial installation taking 1m20s, python_install_prerelease_specific reached 120.099s without any completed installation output. Earlier Windows samples in #2729 captured at least one completed installation. A shared cause remains unconfirmed.

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

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

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

    Attempt 1 also encountered a distinct APT failure in the job discussed by #815: the Deadsnakes PPA InRelease request returned HTTP 503, after which installation failed with 'Unable to locate package python3.9'. Unlike the original mirror stall, this failed promptly before uv ran. The explicit apt-get update/install commands remain outside the retry loop. Job: https://github.com/astral-sh/uv-dev/actions/runs/38950566994/job/117143114502

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

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

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

    @astral-automations-bot
    Author
  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-dev/actions/runs/38946068125

    Attempt 3 adds macOS 15 ARM64 evidence for #2600: python_install_no_cache spent 1m 53s on its successful initial install, completed both no-op checks, then reached 120.033s without completed reinstall output. The same job also reproduced #2742 and astral-sh#14324. All three tests passed at the identical revision in attempts 1 and 2; attempt 1 durations were 2.153s, 13.752s, and 9.107s respectively. Job: https://github.com/astral-sh/uv-dev/actions/runs/38946068125/job/117150281678

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

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

    Attempt 1 adds a distinct macOS sample for #2600: python_install_no_cache timed out at 120.040s without any completed command output, whereas the previous macOS sample completed the initial installation and no-op checks. The same test passed in 1.180s on Windows shard 3 in this run. Job: https://github.com/astral-sh/uv-dev/actions/runs/38953774859/job/117151728983

  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/actions/runs/38955083876

    Attempt 1 adds a fast-initial-install macOS 15 ARM64 sample: python_install_no_cache installed Python 3.15.0 in 1.84s and completed both no-op checks, then timed out at 120.041s without completed reinstall output. Unlike the earlier macOS sample whose initial installation took 1m53s, the initial install did not consume the timeout budget here. Job: https://github.com/astral-sh/uv/actions/runs/38955083876/job/117156115217. The same run also reproduced #2729 and #2616 on Windows; a shared cause remains unconfirmed.

  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 19, 2026

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

    Attempt 1 also reproduces astral-sh#14324 simultaneously on macOS 15 ARM64 and Windows Server 2022 x86-64 shard 2. Both completed the Python 3.12.11 version check, then timed out at 120 seconds before completed output from installing 3.12.8. Jobs: https://github.com/astral-sh/uv-dev/actions/runs/39262368253/job/118093448163 and https://github.com/astral-sh/uv-dev/actions/runs/39262368253/job/118093448526. The macOS job also reproduced #2600 after a successful 6.96-second initial installation. A shared cause remains unconfirmed.

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

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

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

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

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

    @astral-automations-bot
    Author

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

    Attempt 1 combines #2600 and #2729 in Windows shard 3 with astral-sh#20414 in shard 2. For install_multiple_patches, the initial two-interpreter installation took 1m13s, versus 4.86s in the original report, consuming much more of the 120-second budget. The virtual-environment version check still succeeded before termination. A shared cause remains unconfirmed. Shard 2: https://github.com/astral-sh/uv-dev/actions/runs/39644268979/job/119375994268; shard 3: https://github.com/astral-sh/uv-dev/actions/runs/39644268979/job/119375994320.

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

    @astral-automations-bot
    Author

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

    Attempt 1 reproduced all three tracked timeouts across Windows partitions: https://github.com/astral-sh/uv/actions/runs/40552563273. In partition 1, Python 3.10.17 installation consumed 56.41s before python_install_upgrade reached 120.104s without completed Python 3.9.5 installation output. Partition 2 spent 1m23s installing its initial pair; partition 3 spent 1m05s on its initial uncached installation. This combines #1359, astral-sh#20414, and #2600; a shared cause remains unconfirmed.

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