Skip to content

python_upgrade_implementation can time out on Windows #2544

Open

Description

@astral-automations-bot

CI run: https://github.com/astral-sh/uv-dev/actions/runs/37870960282
Failed job: https://github.com/astral-sh/uv-dev/actions/runs/37870960282/job/113634064789

Workflow: CI
Job: test / cargo test on windows 2 of 3
Platform: Windows x86_64, namespace-profile-windows-2022-x86-64-16x32
Attempt: 2

TIMEOUT [ 120.078s] (1278/1278) uv::python python_upgrade::python_upgrade_implementation
(test timed out)
Summary [ 151.639s] 1278 tests run: 1277 passed (1 slow), 1 timed out, 2606 skipped

Attempt 1 also timed out after 120.083 seconds: https://github.com/astral-sh/uv-dev/actions/runs/37870960282/job/113628879743. The required-jobs failure is a follow-on rollup.

The test installs PyPy 3.11 into an isolated managed directory, then checks that a no-argument Python upgrade retains that implementation. Captured output contains only the test-start and slow-test messages, so it does not identify whether installation, download, extraction, or upgrade stalled.

The same test passed in 2.341 seconds on the preceding branch run: https://github.com/astral-sh/uv-dev/actions/runs/37718349756/job/113120072716. The intervening changes in #1385 concern project requires-python warnings and associated tests; they do not modify this test, managed-Python installation, or nextest configuration. This supports an intermittent CI failure unrelated to the proposed change.

The Windows nextest profile uses 20 workers and a 120-second cutoff. Its serialized managed-Python filter selects python_update rather than python_upgrade, leaving this test outside that group. #1190 proposes correcting the selection, following the reliability work in astral-sh#17177. Contention is a possible contributor, but the log does not establish it as the cause. Investigate the stalled subprocess and stabilize this test.

Related PyPy timeouts are tracked by #2050 and #2049. Those affect different tests, and no shared stalled operation has been confirmed.

Activity

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

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

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

    @astral-automations-bot
    Author
  5. astral-automations-bot commented on Nov 3, 2026

    @astral-automations-bot
    Author

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

    Main-branch CI attempt 1 reproduced the timeout on Windows partition 2: https://github.com/astral-sh/uv/actions/runs/41562463052/job/125676493691. python_upgrade_implementation exceeded 120.100 seconds even though the failed revision already includes python_upgrade in the serialized io-bound group. The same job independently timed out in install_wheel_cache_incompatible_with_older_uv after 120.097 seconds; unlike earlier samples without completed command output, it captured a successful uv 0.11.1 invocation before stalling. Neither stalled operation is identified.

  6. astral-automations-bot commented on Nov 10, 2026

    @astral-automations-bot
    Author

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

    Attempt 1 on main adds a macOS sample with useful timing evidence: https://github.com/astral-sh/uv-dev/actions/runs/42730733062/job/129548039854. install_wheel_cache_incompatible_with_older_uv timed out after 120.025s; its completed first invocation reports preparing uv 0.11.1 in 1m 57s, followed by successful local-wheel installation. This supports the package-index isolation mitigation in #1907. Windows partition 2 independently reproduced the timeout tracked here after 120.082s, with no completed subprocess output.

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

    @astral-automations-bot
    Author

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

    Attempt 2 adds timing evidence on Windows shard 2: https://github.com/astral-sh/uv/actions/runs/44428808058/job/135246915778. python_upgrade_implementation timed out after 120.114s despite passing in 3.899s on attempt 1 at the same revision. The independent wheel-cache timeout captured 1m 52s preparing uv 0.11.1 before a successful local-wheel installation, supporting the package-index isolation mitigation in #1907. No HTTP error or shared cause was established.

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

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

    @astral-automations-bot
    Author
  10. astral-automations-bot commented on Nov 21, 2026

    @astral-automations-bot
    Author
  11. astral-automations-bot commented on Nov 21, 2026

    @astral-automations-bot
    Author
  12. astral-automations-bot commented on Nov 21, 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