Skip to content

ci: add Windows ARM64 test jobs - #1060

Open
wan9chi wants to merge 1 commit into
mainfrom
ci/windows-arm64-tests
Open

wan9chi wants to merge 1 commit into
mainfrom
ci/windows-arm64-tests

Conversation

@wan9chi

@wan9chi wan9chi commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Motivation

CI currently builds and tests Windows only on x86_64-pc-windows-msvc, leaving Windows on ARM (aarch64-pc-windows-msvc) behavior untested—such as process architecture detection and Detours DLL injection on ARM64 Windows. Running the workspace test suite natively on GitHub's windows-11-arm runners catches ARM64-specific regressions before release.

Changes

  • Add independent build-windows-arm64-tests (aarch64-pc-windows-msvc via cargo-xwin, sharing steps with build-windows-tests through a YAML anchor and passing CC_aarch64_pc_windows_msvc=clang with -idirafter so ring and zstd-sys cross-compile cleanly alongside Detours) and test-windows-arm64 (windows-arm64-1, windows-arm64-2, windows-arm64-ignored on windows-11-arm) jobs in .github/workflows/ci.yml, wired into done.
  • Configure vitest_browser_cache to use pre-installed native ARM64 Microsoft Edge (channel: 'msedge') on Windows ARM64—since Playwright only ships x64 Chromium (chrome-headless-shell-win64), which a native ARM64 preload DLL cannot inject into—and skip downloading Playwright's x64 browser binary on windows-arm64-ignored.

Stack created with GitHub Stacks CLI • Give Feedback 💬


Note

Low Risk
Changes are limited to CI configuration and a test fixture; no production runtime or security-sensitive application logic is modified.

Overview
Adds a parallel Windows ARM64 CI path alongside the existing x64 Windows pipeline, so the suite can run natively on windows-11-arm and catch architecture-specific regressions (e.g. Detours injection).

The existing Windows build and test jobs are refactored to share step lists via YAML anchors and drive architecture through WINDOWS_ARCH, WINDOWS_TARGET, and per-arch artifact names. A new build-windows-arm64-tests job cross-compiles for aarch64-pc-windows-msvc (including clang/idirafter tweaks for ring/zstd-sys on ARM64) and test-windows-arm64 mirrors the x64 matrix (two partitions + ignored) on ARM runners. Ignored jobs set PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD on ARM64 because Playwright only ships x64 Chromium.

The vitest_browser_cache fixture config launches native Edge (channel: 'msedge') on Windows ARM64 instead of Playwright’s bundled x64 Chromium, so a native ARM64 preload DLL can attach to the browser process.

Reviewed by Cursor Bugbot for commit 07e6475. Bugbot is set up for automated code reviews on this repo. Configure here.

@wan9chi
wan9chi added this pull request to stack #1061 December 2, 2026 16:53
@wan9chi wan9chi changed the title ci/windows arm64 tests ci: add Windows ARM64 test jobs Dec 2, 2026
@github-actions

github-actions Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

fspy benchmark

linux

dynamic/launch             change  +0.43%  [ -4.50% ..  +5.20%]  overhead   +58.64%
dynamic/access             change  +0.03%  [ -2.69% ..  +3.61%]  overhead   +18.49%
dynamic/access-relative    change  +0.21%  [ -2.72% ..  +2.75%]  overhead   +68.14%
dynamic/access-contended   change  +1.34%  [ -9.34% ..  +9.77%]  overhead   +15.37%
static/launch              change  +0.72%  [ -4.92% ..  +6.28%]  overhead  +175.27%
static/access              change  -0.02%  [ -4.52% ..  +5.36%]  overhead +1242.70%
static/access-relative     change  -0.63%  [-11.81% ..  +6.73%]  overhead +1171.38%
static/access-contended    change  +0.50%  [ -2.21% ..  +1.98%]  overhead +1543.10%

macos

dynamic/launch             change  -0.23%  [ -2.59% ..  +2.44%]  overhead  +229.32%
dynamic/access             change  -0.38%  [ -2.06% ..  +1.96%]  overhead    +9.47%
dynamic/access-relative    change  -0.33%  [ -4.15% ..  +3.10%]  overhead  +265.03%
dynamic/access-contended   change  +0.00%  [ -1.62% ..  +2.58%]  overhead    +4.95%

windows

dynamic/launch             change  +1.83%  [ -5.86% ..  +9.53%]  overhead   +26.39%
dynamic/access             change  +0.18%  [-11.83% .. +10.62%]  overhead    +1.93%
dynamic/access-relative    change  +0.00%  [ -9.12% .. +26.54%]  overhead    +2.60%
dynamic/access-contended   change  -0.60%  [-19.51% .. +19.35%]  overhead    +2.43%

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2161fee. Configure here.

Comment thread .github/workflows/ci.yml Resolved
@wan9chi
wan9chi force-pushed the ci/windows-arm64-tests branch 2 times, most recently from 00932e6 to 07e6475 Compare December 2, 2026 17:13
Cross-compile the Windows ARM64 (aarch64-pc-windows-msvc) nextest archive
on Linux via cargo-xwin and run the default and ignored test suites on
GitHub's windows-11-arm runners.

Co-authored-by: Gemini 4 Neon <noreply@google.com>
@wan9chi
wan9chi force-pushed the ci/windows-arm64-tests branch from 07e6475 to d98f8a0 Compare December 3, 2026 01:43

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant