Skip to content

Use Namespace runners for Windows release builds - #21391

Merged
charliermarsh merged 2 commits into
mainfrom
charlie/windows-release-namespace
Sep 1, 2026
Merged

charliermarsh merged 2 commits into
mainfrom
charlie/windows-release-namespace

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

Summary

This PR moves Windows release builds to the 16-core Namespace profile that we already use in Windows tests. For ARM, we cross-compile (and run its wheel smoke tests in a separate native job).

Windows x64 was the slowest job in the uv 0.12.8 release: 58m40s, including 40m12s for the PGO build/training step and 14m02s for the final uv wheel build.

For ARM64, the first comparison at the same Rust source revision (68209e5c6) reduced the combined wheel-build time by 55%:

Wheel build GitHub native ARM64, 8 vCPUs Namespace x64 cross-build, 16 vCPUs
uv 26m24s 11m47s
uv-build 2m07s 58s
Total 28m31s 12m45s

These are wheel-build step timings, excluding runner queueing and native smoke tests. The comparison includes the hardware change and uses one run per configuration.

@charliermarsh
charliermarsh marked this pull request as ready for review August 31, 2026 23:55
@charliermarsh charliermarsh added the internal:releases Related to building and distributing release artifacts of uv label Aug 31, 2026
@charliermarsh
charliermarsh requested a review from zanieb August 31, 2026 23:58
Comment on lines +304 to +312
$installer = Join-Path $env:RUNNER_TEMP 'nasm-3.02-installer-x64.exe'
Invoke-WebRequest 'https://www.nasm.us/pub/nasm/releasebuilds/3.02/win64/nasm-3.02-installer-x64.exe' -OutFile $installer
if ((Get-FileHash $installer -Algorithm SHA256).Hash -ne '0DDB40310861EB29F4D649FEB9466779982A2D251C0DB2B9CF0D21CF591171F3') {
throw 'NASM installer checksum mismatch'
}
$installation = Start-Process $installer -ArgumentList '/S' -Wait -PassThru
if ($installation.ExitCode -ne 0) {
throw "NASM installation failed: $($installation.ExitCode)"
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pinning NASM should probably happen separately unless we need to be changing how it's installed here?

Could we move the version and hash into some variables?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you don't have winget, they'd probably add that for us if we ask (and they should, for GitHub parity)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(but it doesn't need to block this change)

Comment on lines 359 to +360
- name: "Test wheel"
if: matrix.platform.target != 'aarch64-pc-windows-msvc'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should add a comment here like

Suggested change
- name: "Test wheel"
if: matrix.platform.target != 'aarch64-pc-windows-msvc'
- name: "Test wheel"
# We test aarch64 on a native runner in a separate job
if: matrix.platform.target != 'aarch64-pc-windows-msvc'

This branch was previously deployed

1 inactive deployment
automations — ccf231cc Deployed Sep 1, 2026 by charliermarsh via review / security review #45587
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal:releases Related to building and distributing release artifacts of uv

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants