Skip to content

python_install_default_from_env can time out on Windows #2022

Open

Description

@astral-automations-bot

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

The CI workflow's test / cargo test on windows 2 of 3 job timed out on Windows x64, attempt 1:

TERMINATING [>120.000s] uv::python python_install::python_install_default_from_env
TIMEOUT [120.091s] uv::python python_install::python_install_default_from_env
(test timed out)

The other 1,229 tests in the shard passed. The test installs managed CPython 3.12 from UV_PYTHON and then installs 3.11 from an explicit request. It emitted no completed command output before the cutoff, so the log does not establish whether download, extraction, or another operation stalled.

The originating #2019 changes Windows debug-Python discovery, executable naming, and virtualenv launchers. This test requests ordinary release CPython, for which the changed debug-specific branches retain the prior executable names, so the timeout is not explained by the intended debug behavior. Resource, I/O, or network delay remains a hypothesis rather than a confirmed cause.

astral-sh#17177 previously improved Windows reliability for this exact test by serializing managed-Python tests and recorded a normal runtime of roughly two seconds. astral-sh#20414 and #728 track the same 120-second timeout class in different managed-Python tests, but neither tracks this test.

The same run's Hawk visibility finding was independently introduced by #2019 and should be fixed in that pull request. The required-jobs failure was only a rollup.

Activity

  1. added
    internal:ci-flake
    on Sep 22, 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/38276095421

    Attempt 1 adds a useful detail to #2022: the first command successfully installed CPython 3.12.15 in 2.31s before the test reached its 120.065-second timeout. No completed output appeared for the subsequent explicit Python 3.11 installation. Job: https://github.com/astral-sh/uv-dev/actions/runs/38276095421/job/114902154217

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