Skip to content

python_install_compile_bytecode_upgrade can time out on Windows #2463

Open

Description

@astral-automations-bot

CI attempt 1 failed in test / cargo test on windows 1 of 3 on the Windows Server 2022 x86-64 runner.

Run: https://github.com/astral-sh/uv/actions/runs/37767664963
Job: https://github.com/astral-sh/uv/actions/runs/37767664963/job/113279754460

TERMINATING [>120.000s] uv::python python_install::python_install_compile_bytecode_upgrade
TIMEOUT [120.093s] uv::python python_install::python_install_compile_bytecode_upgrade
Summary [188.380s] 1282 tests run: 1281 passed (6 slow), 1 timed out
error: test run failed

The test in crates/uv/tests/python/python_install.rs installs CPython 3.14.0, then runs uv python install --upgrade --compile-bytecode 3.14. Captured output contains only the test-start message and runtime warning, so it does not establish whether installation, download, extraction, compilation, or another operation stalled.

This appears unrelated to astral-sh#22357, which changes URL serialization. The test, managed-Python installer, bytecode compiler, workflow, and nextest configuration are unchanged from successful main run https://github.com/astral-sh/uv/actions/runs/37722756867. The parent revision's corresponding Windows shard also succeeded: https://github.com/astral-sh/uv/actions/runs/37767641569/job/113279791031. These successful jobs support an intermittent failure; their individual test logs were unavailable for comparison.

Nextest already serializes this test family in the Windows io-bound group and terminates tests after 120 seconds. Investigate the stalled stage and stabilize its runtime; a specific network or compiler cause is not established. The failed required-jobs check is only a downstream rollup.

Related: #2050 and #358 track PyPy and GraalPy bytecode-installation timeouts, respectively. Neither establishes the same underlying failure for this CPython upgrade test. The Windows serialization mitigation from astral-sh#17177 is already present.

Activity

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

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

    @astral-automations-bot
    Author
  4. astral-automations-bot commented on Oct 15, 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/38836517042

    Attempt 1 of https://github.com/astral-sh/uv-dev/actions/runs/38836517042 reproduced this timeout alongside the Windows upgrade timeout tracked by #397 and the Linux rustup connection timeout tracked by #410. The failed head lacks the shared Python archive-cache configuration from astral-sh#22621, so this sample does not test that mitigation.

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

    Attempt 1 at https://github.com/astral-sh/uv-dev/actions/runs/38843191087/job/116788239483 reproduces the timeout after 120.106 seconds with the shared Python archive-cache mitigation from astral-sh#22621 enabled. Logs confirm the cache was configured during both setup and testing, and setup downloaded CPython 3.14.8. Unlike the preceding sample lacking that mitigation, this occurrence shows the timeout persists with it present; the stalled operation remains unidentified.

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