Skip to content

python_install_upgrade_version_file can exceed 120 seconds on Windows #2769

Open

Description

@astral-automations-bot

CI attempt 1 failed in test / cargo test on windows 1 of 3, step Cargo test, on Windows Server 2022 x86_64 using namespace-profile-windows-2022-x86-64-16x32.

Run: https://github.com/astral-sh/uv-dev/actions/runs/38768485063
Failed job: https://github.com/astral-sh/uv-dev/actions/runs/38768485063/job/116538227386

TIMEOUT [120.093s] uv::python python_install::python_install_upgrade_version_file
(test timed out)
Process completed with exit code 100.

Before termination, two snapshots completed successfully:

Installed Python 3.13.16 in 30ms
Python 3.13 is already on the latest supported patch release

In crates/uv/tests/python/python_install.rs, the next operation pins Python 3.12.4, followed by an assertion that python install --upgrade rejects a patch-version pin. No subsequent snapshot output was captured. The log does not establish which remaining operation stalled; downloading, interpreter discovery, cache locking, or filesystem delays remain hypotheses.

The exact base revision's retained Windows JUnit results record this test passing in 1.991 seconds, with all 1,313 tests in that shard passing: https://github.com/astral-sh/uv-dev/actions/runs/38767095283. The test source, helper, nextest configuration, and test workflow match the failed revision. #2768 changes only .github/workflows/binary-size.yml and scripts/binary_size.py, supporting an unrelated CI flake.

Nextest terminates tests after twelve 10-second intervals. Windows serialization from astral-sh#17177 already includes this test, and shared archive caching from astral-sh#21632 is enabled. Investigate command-level timing and retain subprocess diagnostics on timeout to identify a targeted mitigation.

The same attempt independently reproduced four documented timeouts:

All four also passed in the base run's retained JUnit results. A shared cause is unconfirmed. The required-jobs failure is only a rollup. #916 mentions this test in a Linux subprocess-crash occurrence, which does not match the Windows timeout here.

Activity

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

    @astral-automations-bot
    Author
  3. 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/38836515228

    Attempt 1 adds macOS 15 arm64 coverage: python_install::python_install_upgrade_version_file timed out at 120.031s after successfully installing Python 3.13.16 and reporting it already current. Job: https://github.com/astral-sh/uv-dev/actions/runs/38836515228/job/116767237969. The failed workflow lacks the macOS archive-cache setup added by astral-sh#22621. The precise stalled operation remains unknown.

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

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

    Attempt 1 also reproduced the timeout tracked by astral-sh#14324 in Windows shard 2 at 120.075 seconds: https://github.com/astral-sh/uv-dev/actions/runs/38946389644/job/117126832235. Its last successful snapshot printed Python 3.12.11; no output from the subsequent Python 3.12.8 installation was captured.

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

    Attempt 1 also reproduces astral-sh#20414 on macOS 15 arm64: install_multiple_patches timed out at 120.028 seconds after its last successful output, Python 3.12.11. Setup/test archive sharing from astral-sh#22621 was enabled. The stalled operation remains unidentified. Job: https://github.com/astral-sh/uv-dev/actions/runs/38943052399/job/117115621221.

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

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

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

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