Skip to content

python_install_build_version can exceed 120 seconds on Windows #2749

Open

Description

@astral-automations-bot

CI on main failed in attempt 1 at commit 53a6a05.

Workflow: CI
Job: test / cargo test on windows 1 of 3
Platform: Windows Server 2022 x86-64, namespace-profile-windows-2022-x86-64-16x32
Failed job: https://github.com/astral-sh/uv-dev/actions/runs/38616085586/job/116032266895

TIMEOUT [120.075s] uv::python python_install::python_install_build_version
(test timed out)
Summary [220.670s] 1309 tests run: 1308 passed, 1 timed out

The same test passed in 1.656 seconds on the immediate parent commit:
https://github.com/astral-sh/uv-dev/actions/runs/38616058749/job/116031736777

The test file and nextest configuration are identical between those commits. The intervening change, astral-sh#22548, limits procfs usage to Linux ARM detection and does not modify this Windows test. This supports an intermittent CI failure.

The test in crates/uv/tests/python/python_install.rs installs CPython 3.12.5 using build 20240814, then checks build-specific discovery and invalid requests. Windows CI already serializes python_install tests in the io-bound group; the global nextest cutoff remains 120 seconds. Captured output does not identify the stalled operation, so download, extraction, filesystem latency, or another cause remains unconfirmed. Investigate the timeout despite the existing serialization mitigation.

Related: astral-sh#17177 previously improved this exact test's runtime. #2049 tracks the separate PyPy build-version test; a common cause is not established.

The run also had two independent tracked failures:

Activity

  1. added
    internal:ci-flake
    on Oct 14, 2026
  2. astral-automations-bot commented on Oct 16, 2026

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

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

    Attempt 2 adds three same-commit pass-to-timeout comparisons: python_install_build_version went from 1.058s to 120.104s in Windows shard 1: https://github.com/astral-sh/uv-dev/actions/runs/38949540544/job/117142354289. In shard 3, python_find_prerelease_version_specifiers went from 5.239s to 120.101s and python_install_cached from 1.118s to 120.097s, matching #728 and #2746. The preview-upgrade timeout tracked by #2608 also recurred. Shard 3: https://github.com/astral-sh/uv-dev/actions/runs/38949540544/job/117142354415. A shared cause remains unconfirmed.

  5. 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/38947042866

    This run provides another same-commit comparison: python_install_build_version passed in 1.094 seconds in attempt 1, then timed out after 120.101 seconds in attempt 2 on Windows shard 1. Attempt 2 had 1323 passing tests and this single timeout: https://github.com/astral-sh/uv-dev/actions/runs/38947042866/job/117147443356

  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-dev/actions/runs/38953099526

    This occurrence reproduces under PowerShell: #466 switches the Windows Cargo step from Git Bash to pwsh, which the job log confirms. In attempt 1, python_install_build_version timed out after 120.110 seconds while 1324 tests passed. The timeout therefore also occurs outside Git Bash; the stalled operation remains unknown. Job: https://github.com/astral-sh/uv-dev/actions/runs/38953099526/job/117149511827

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

    Attempt 1 also encountered a distinct deadsnakes setup failure: Launchpad's noble amd64 Packages index returned HTTP 503 during apt-get update, which runs outside the add-apt-repository retry loop. Unlike the original mirror stall in #815, this exited with code 100 before uv ran. Job: https://github.com/astral-sh/uv/actions/runs/38951135277/job/117144477513

  8. 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/39270616565

    Attempt 1 adds macOS 15 ARM64 occurrences of python_install_build_version and python_install_preview_upgrade at 120.024s and 120.036s, extending #2749 and #2608. Both captured no completed command output and passed on the exact PR base in 7.506s and 42.561s. The same job also reproduced #2600, #397, and astral-sh#14324; all five passed on that base. A shared stall mechanism remains unconfirmed. Job: https://github.com/astral-sh/uv-dev/actions/runs/39270616565/job/118121950018

  9. astral-automations-bot commented on Oct 19, 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