Skip to content

python_install_compile_bytecode can exceed 120 seconds on Windows #2758

Open

Description

@astral-automations-bot

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

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

TIMEOUT [120.094s] uv::python python_install::python_install_compile_bytecode
(test timed out)
Summary [228.111s] 1307 tests run: 1305 passed (9 slow), 2 timed out

The test in crates/uv/tests/python/python_install.rs installs CPython 3.14 with --compile-bytecode, checks compiled-file counts, and exercises repeated compilation and reinstallation. Captured output contains only the test-start message and runtime warning; no completed command output identifies whether installation, download, extraction, bytecode compilation, or another operation stalled.

The same test passed in 2.351 seconds on the PR's base revision, verified from its retained JUnit artifact: https://github.com/astral-sh/uv-dev/actions/runs/38644489693/job/116128267979. The originating #2652 changes project inspection commands and leaves this test, managed-Python installation, bytecode compilation, workflow, and nextest configuration unchanged. This supports an unrelated CI flake.

Nextest already serializes this test family in the Windows io-bound group and terminates tests after 120 seconds. Investigate the stalled stage and stabilize the test's runtime; a particular network, compiler, or contention cause is not established. The serialization mitigation from astral-sh#17177 is already present.

Related reports #2463, #2050, and #358 concern CPython upgrades, PyPy, and GraalPy respectively. Their logs do not establish a shared cause with this basic CPython installation test.

The same job independently timed out sync::sync_active_project_environment_with_relative_managed_python_dir after 120.094 seconds; it passed in 2.134 seconds on the base revision. That exact sync timeout is already covered in #2729. The failed required-jobs check is only a downstream rollup.

Activity

  1. added
    internal:ci-flake
    on Oct 14, 2026
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