test: Add arm64 test distro support#14500
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds ARM64-awareness to the WSL test-distro plumbing so local/unit-test runs can pick the correct architecture-specific test distro artifact.
Changes:
- Update local test runner and VM setup scripts to source the test distro from an architecture-specific subfolder.
- Update the test distro build/packaging scripts and nuspec to introduce
x64/andarm64/layout. - Bump the
Microsoft.WSL.TestDistroNuGet dependency and adjust build pipeline artifact staging to copy the distro intotestbin\<arch>.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/test/test.bat.in | Passes an arch-specific -DistroPath into run-tests.ps1. |
| tools/test/setup-vm-for-tests.ps1 | Resolves the test distro path from an arch-specific package subfolder. |
| tools/test/build-test-distro.ps1 | Adds a Platform parameter and exports the distro to <platform>\test_distro.tar.xz. |
| tools/test/Microsoft.WSL.TestDistro.nuspec | Changes NuGet contents layout to include x64\ and arm64\ distro files. |
| packages.config | Updates Microsoft.WSL.TestDistro package version. |
| CMakeLists.txt | Removes unused TEST_DISTRO_PLATFORM assignments; relies on TARGET_PLATFORM. |
| .pipelines/build-stage.yml | Stages cloudtest + test distro into testbin\<arch> (currently x64 only). |
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (1)
tools/test/build-test-distro.ps1:65
build-test-distro.ps1now exports only one platform’stest_distro.tar.xzinto$Platform\test_distro.tar.xz, but the updatedMicrosoft.WSL.TestDistro.nuspecincludes bothx64\test_distro.tar.xzandarm64\test_distro.tar.xz. As written,nuget packwill fail on a single run because the other architecture’s file won’t exist. Consider either (a) splitting the pack step from this script and only packing once both architecture artifacts are present, or (b) making the nuspec/platform selection conditional so a single-platform build can still pack successfully.
New-Item -ItemType Directory -Path $Platform -Force
Run { wsl.exe --export --format tar.xz test_distro "$Platform\test_distro.tar.xz" }
& "$PSScriptRoot/../../_deps/nuget.exe" pack Microsoft.WSL.TestDistro.nuspec -Properties version=$version
OneBlue
approved these changes
Mar 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change adds support for ARM64 testing to make running the unit tests easier.