Skip to content

python_script_honors_patch_requires_python can time out on Windows #2616

Open

Description

@astral-automations-bot

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

Failed job: https://github.com/astral-sh/uv/actions/runs/38431966181/job/115417070564

TIMEOUT [120.084s] uv::python python_upgrade::python_script_honors_patch_requires_python
Summary [244.425s] 1299 tests run: 1298 passed (6 slow), 1 timed out, 2646 skipped

The same shard passed on attempt 2 at the unchanged commit 9995148: https://github.com/astral-sh/uv/actions/runs/38431966181/job/115427038784

The test in crates/uv/tests/python/python_upgrade.rs installs CPython 3.10.17, creates a script environment with requires-python = "==3.10.17", upgrades managed Python 3.10, and checks that the cached script interpreter retains the pinned patch version. Captured output contains only the test-harness timeout, so it does not identify the stalled operation or establish a network failure or deadlock.

The originating astral-sh#22403 changes sysconfig writes behind a Unix-only guard. This test and .config/nextest.toml are unchanged from the PR base, making the Windows timeout unrelated to the modified write path.

The Windows profile uses 20 test threads and a 120-second cutoff. Its serialized I/O filter includes python_update:: rather than python_upgrade::, leaving this test outside the group. Two other managed-Python tests took approximately 112 and 103 seconds but passed. Contention is plausible, not confirmed.

Related: #420 tracks a different patch-pinning test; #473 mitigates only that named test. #1190 proposes correcting the broader scheduling filter introduced by astral-sh#17177, but does not establish the cause of this occurrence. The required-jobs failure was only a rollup.

Activity

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

    @astral-automations-bot
    Author

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

    This occurrence affects python_upgrade::python_script_upgrades_minor_version_file, the shared helper's minor-version-file variant, in Windows Server 2022 x86_64 shard 1, attempt 1: TIMEOUT [120.100s], with 1306 other tests passing. Job: https://github.com/astral-sh/uv/actions/runs/38430497678/job/115413863318. The same test passed in 8.751s in the preceding branch run, whose subsequent change only modified pip-install tests. Captured output does not identify the stalled operation.

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

    @astral-automations-bot
    Author

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

    This occurrence affects python_upgrade::python_script_upgrades_requires_python, the shared helper's inline requires-python >=3.10,<3.11 variant without a version-file pin. CI attempt 1, Windows Server 2022 x86_64 shard 1: TIMEOUT [120.147s], with 1310 other tests passing. Output contains only the test-harness timeout, so the stalled operation remains unknown. Job: https://github.com/astral-sh/uv-dev/actions/runs/38606311088/job/115999566911

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

    @astral-automations-bot
    Author

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

    This occurrence combines the script-upgrade timeout with python_install_upgrade, tracked by #1359, on Windows Server 2022 x86_64 shard 1, attempt 1. They timed out at 120.095s and 120.103s respectively. The installation test's output stops after the successful already-current Python 3.11 check; its next source operation installs Python 3.9.5. The script test provides no command output identifying the stalled operation. Job: https://github.com/astral-sh/uv-dev/actions/runs/38608701218/job/116006808919

  5. astral-automations-bot commented on Oct 14, 2026

    @astral-automations-bot
    Author

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

    This occurrence affects macOS 15 arm64 rather than Windows: CI attempt 1, test / cargo test on macos, TIMEOUT [120.062s] for python_upgrade::python_script_upgrades_minor_version_file, with 4485 tests passing. Job: https://github.com/astral-sh/uv-dev/actions/runs/38607290537/job/116001706620. The unchanged test passed in 8.639s on the base revision: https://github.com/astral-sh/uv-dev/actions/runs/38604150537/job/115991043241. Captured output does not identify the stalled operation. astral-sh#21628 proposes bounding macOS interpreter-test concurrency.

  6. astral-automations-bot commented on Oct 15, 2026

    @astral-automations-bot
    Author
  7. astral-automations-bot commented on Oct 15, 2026

    @astral-automations-bot
    Author

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

    Attempt 1 reproduces both #2616 and #2608 in Windows Server 2022 x86-64 shard 3: https://github.com/astral-sh/uv-dev/actions/runs/38739902122/job/116439006954. The preview-upgrade test installed Python 3.12.5 successfully in only 786 ms, then reached its 120.087-second timeout without completed output for the subsequent Python 3.12.4 installation. The script test timed out at 120.064 seconds without command output. A shared cause remains unconfirmed.

  8. astral-automations-bot commented on Oct 15, 2026

    @astral-automations-bot
    Author

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

    Attempt 2 combines the script-upgrade timeout with the bytecode-upgrade flake tracked by #2463 in Windows Server 2022 x86-64 shard 1: 120.083s and 120.143s respectively. Both tests passed on attempt 1 at the same commit in 25.157s and 2.172s. Neither timeout identifies the stalled operation, and a shared cause remains unconfirmed. Job: https://github.com/astral-sh/uv/actions/runs/38808899057/job/116691385005

  9. astral-automations-bot commented on Oct 15, 2026

    @astral-automations-bot
    Author
  10. 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/38835288505

    This occurrence combines three tracked timeouts in Windows Server 2022 x86_64 shard 3, attempt 1: the script test at 120.095s, the relative managed-environment sync test from #2729 at 120.097s, and the PyPy installation test from #2049 at 120.093s. All three lack completed command output identifying the stalled operation; a shared cause remains unconfirmed. Job: https://github.com/astral-sh/uv-dev/actions/runs/38835288505/job/116763468328

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

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

    @astral-automations-bot
    Author

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

    Attempt 1 combines the script-upgrade timeout tracked by #2616 with the prerelease-install timeout tracked by #2729 on Windows Server 2022 x86_64. Shard 1 timed out at 120.099s without command output: https://github.com/astral-sh/uv/actions/runs/38904730630/job/116986145732. Shard 3 timed out at 120.097s after Python 3.15.0rc3 installed successfully in only 505ms; no completed output appeared for the next installation, Python 3.15.0a2: https://github.com/astral-sh/uv/actions/runs/38904730630/job/116986145773. A shared cause remains unconfirmed.

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

    @astral-automations-bot
    Author

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

    CI attempt 1 combines the script-upgrade timeout tracked by #2616 with the patch-fallback timeout tracked by #2757 on Windows Server 2022 x86_64. Shard 1 timed out at 120.095s: https://github.com/astral-sh/uv/actions/runs/38909442636/job/117001594393. Shard 2 timed out at 120.097s: https://github.com/astral-sh/uv/actions/runs/38909442636/job/117001594577. Neither captured completed subprocess output identifying the stalled operation; a shared cause remains unconfirmed.

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

    @astral-automations-bot
    Author

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

    Attempt 2 of https://github.com/astral-sh/uv/actions/runs/38909442636/attempts/2 combines six tracked Windows timeouts across shards 1 and 2. The script timeout moved from python_script_upgrades_requires_python in attempt 1 to python_script_upgrades_minor_version_file. Five of the six affected tests passed in attempt 1; only the patch-fallback timeout repeated. Additional failures match #1810, #537, #2742, and astral-sh#20414. A common cause remains unconfirmed.

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

    @astral-automations-bot
    Author

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

    Attempt 1 combines both tracked timeouts in Windows Server 2022 x86_64 shard 3: the script test reached 120.085s and the prerelease-installation test reached 120.109s. Unlike earlier prerelease samples, no completed first-installation output was captured. A shared cause remains unconfirmed. Job: https://github.com/astral-sh/uv/actions/runs/38921797523/job/117043661012. The prerelease timeout is tracked by #2729.

  16. 11 remaining items

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

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

    @astral-automations-bot
    Author

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

    Attempt 2 adds a same-revision comparison: python_script_upgrades_requires_python and python_install_upgrade both timed out at 120.072s on Windows Server 2022 x86_64 shard 1 after passing in attempt 1 in 8.736s and 5.585s. The second timeout is tracked by #1359. The underlying delays remain unidentified. Job: https://github.com/astral-sh/uv/actions/runs/38946493744/job/117137261657

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

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

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

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

    @astral-automations-bot
    Author
  23. 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/38954687319

    Attempt 2 combines the timeouts tracked by #2616 and #2713 in Windows shard 3, at 120.111s and 120.163s respectively, with 1320 tests passing. Neither captures completed subprocess output identifying the stalled operation; a shared cause remains unconfirmed. Job: https://github.com/astral-sh/uv-dev/actions/runs/38954687319/job/117164938784

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

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

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

    @astral-automations-bot
    Author

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

    Attempt 2 combines all four tracked timeouts in Windows shard 3: #2616, #2746, #2600, and #2608. The preview-upgrade test installed Python 3.12.5 in 705ms before stalling; the other three captured no completed subprocess output. A shared cause remains unconfirmed. Job: https://github.com/astral-sh/uv/actions/runs/39258526911/job/118093284154

  27. astral-automations-bot commented on Oct 19, 2026

    @astral-automations-bot
    Author

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

    Attempt 1 combines the minor-version-file script variant with the separate uninstall_highest_patch timeout tracked by #2729. On Windows Server 2022 x86-64, shard 1 timed out at 120.111s: https://github.com/astral-sh/uv-dev/actions/runs/39264535185/job/118100967431. Shard 3 timed out at 120.100s: https://github.com/astral-sh/uv-dev/actions/runs/39264535185/job/118100967316. Neither captured completed subprocess output identifying the stalled operation; a shared cause remains unconfirmed.

  28. astral-automations-bot commented on Oct 19, 2026

    @astral-automations-bot
    Author

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

    Attempt 3 adds a same-commit comparison for all four tracked timeouts: python_script_honors_patch_requires_python, python_install_cached, python_install_no_cache, and python_install_preview_upgrade passed in attempt 1 in 4.247s, 3.031s, 5.042s, and 46.419s, respectively, before each exceeded 120 seconds in attempt 3. Earlier job: https://github.com/astral-sh/uv/actions/runs/39258526911/job/118080260027. Failed job: https://github.com/astral-sh/uv/actions/runs/39258526911/job/118100084998. A shared stall mechanism remains unconfirmed.

  29. astral-automations-bot commented on Oct 19, 2026

    @astral-automations-bot
    Author
  30. astral-automations-bot commented on Oct 24, 2026

    @astral-automations-bot
    Author
  31. astral-automations-bot commented on Oct 26, 2026

    @astral-automations-bot
    Author

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

    Attempt 1 combines the script timeout on Windows shard 1 with #397 on shard 3. The basic upgrade test spent 1m25s installing Python 3.10.17, completed the Python 3.10 reinstall, then reached 120.090s without completion output for the next source command, uv python install 3.14.0rc2. Job: https://github.com/astral-sh/uv/actions/runs/40362645985/job/121712385451. A shared cause between the two timeouts remains unconfirmed.

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