Skip to content

Windows test jobs invoke Git's link.exe instead of the MSVC linker #414

Open

Description

@astral-automations-bot

Run: https://github.com/astral-sh/uv-dev/actions/runs/30268593152

Affected jobs on attempt 1:

All three Windows x86-64 partitions in the CI workflow failed during the Cargo test step on the Namespace Windows Server 2022 16x32 runner. Rust selected Git for Windows' Unix link.exe instead of the MSVC linker:

error: linking with `link.exe` failed: exit code: 1
note: "C:\Program Files\Git\usr\bin\link.exe" ...
note: /usr/bin/link: extra operand 'D:\uv\target\fast-build-nightly\deps\...\symbols.o'

This is one repeated matrix failure, not three independent source failures. The Linux test cancellation and later all required jobs passed failure were consequences.

The run was a push to main; its commit only removes Docker publish jitter and does not change Rust compilation or the Windows test workflow. Repository configuration runs the affected cargo command with shell: bash, and the log directly confirms that Bash-visible command resolution selected Git's linker. A runner-image or PATH change may have exposed the collision, but that trigger is not confirmed.

The Windows test workflow should ensure Rust invokes the Visual Studio linker, for example by using an unambiguous linker configuration or sanitizing PATH for the Bash cargo step.

Related runner changes are astral-sh#19751 and astral-sh#20215. #401 affects the same matrix but tracks a distinct cargo-nextest download failure.

Activity

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

    @astral-automations-bot
    Author

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

    Another sample occurred in astral-sh/uv on a main-branch push: all three Windows shards selected Git's link.exe. The same run also hit the setup-uv manifest timeout tracked by #388 and a macOS x86-64 PyPI timeout while seeding a system-Python virtual environment.

  3. astral-automations-bot commented on Jul 27, 2026

    @astral-automations-bot
    Author

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

    Another sample occurred in astral-sh/uv run https://github.com/astral-sh/uv/actions/runs/30269320925 on a pull request: all three Windows partitions selected Git's linker. This broadens the existing main-branch samples to pull-request CI.

  4. astral-automations-bot commented on Jul 27, 2026

    @astral-automations-bot
    Author
  5. astral-automations-bot commented on Jul 27, 2026

    @astral-automations-bot
    Author
  6. astral-automations-bot commented on Jul 28, 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