Skip to content

python_reinstall_patch can exceed 120 seconds on Windows #2764

Open

Description

@astral-automations-bot

CI attempt 1 failed in test / cargo test on windows 2 of 3 on Windows Server 2022 x86_64 (namespace-profile-windows-2022-x86-64-16x32).

Run: https://github.com/astral-sh/uv-dev/actions/runs/38741668206
Job: https://github.com/astral-sh/uv-dev/actions/runs/38741668206/job/116445266259

TIMEOUT [120.102s] uv::python python_install::python_reinstall_patch
(test timed out)
Summary [283.965s] 1302 tests run: 1300 passed (2 slow), 2 timed out

The test in crates/uv/tests/python/python_install.rs installs Python 3.12.6 and 3.12.7, then invokes uv python install 3.12 --reinstall. Captured output contains only the test-harness timeout, so it does not identify which operation stalled.

The unchanged test passed in 1.805 seconds on the PR base, shortly before this run: https://github.com/astral-sh/uv-dev/actions/runs/38739902122/job/116439006811. It also passed in 1.760 seconds on Linux in the failed run. #1037 changes pylock export handling without modifying this test, Python installation code, or CI configuration. These observations support an unrelated CI flake.

The Windows nextest profile already serializes python_install:: tests through its io-bound group and applies the global 120-second cutoff. Investigate the intermittent stall and add diagnostics or a targeted mitigation. Network delays, filesystem contention, and locking are hypotheses, not established causes. #2600 tracks a different reinstall test that deliberately bypasses archive caching; a common cause is unconfirmed. The serialization mitigation from astral-sh#17177 is already active.

The run also contains these separate test timeouts:

All six affected tests passed on Windows at the base revision and on Linux in this run. The required-jobs failure only propagated the test failures.

Activity

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

    @astral-automations-bot
    Author

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

    This occurrence isolates python_upgrade_transparent_from_venv as the only test failure. Captured output confirms successful Python 3.10.17 installation, creation of .venv and .venv2, and version checks in both environments. The next source operation is uv python upgrade 3.10, whose snapshot never completes before the 120.081-second timeout. Job: https://github.com/astral-sh/uv-dev/actions/runs/38810279960/job/116682726787 (attempt 1).

  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
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