Repository navigation
Fix Windows device-test Helix SDK version resolution - #38692
Conversation
Use the full pinned SDK package version for Windows Helix payloads instead of the shortened installed SDK version. Preserve explicit overrides and XHarness SDK selection on other platforms, with regression coverage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38692Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38692" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
|
/azp run maui-pr-devicetests |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The new Pester tests use HelixTargetQueue instead of the repo/Helix SDK convention HelixTargetQueues, and one assertion is overly brittle by hard-coding the exact XHarness SDK version.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (2)
What changed in this PR
This PR addresses Windows Helix device-test submission failures by ensuring the Helix SDK payload version uses the full SDK package version (e.g., 10.0.113-servicing.26454.107) rather than the shortened NETCoreSdkVersion (e.g., 10.0.113), while preserving existing override mechanisms and leaving non-Windows behavior to XHarness.
Changes:
- Default
DotNetCliVersiontoMicrosoftNETSdkPackageVersionfor Windows submissions when no explicit override is provided. - Add Pester regression tests validating Windows selection, override precedence, and that non-Windows continues using XHarness selection.
- Document the Windows SDK payload/versioning requirement and how to run the regression checks.
| File | Description |
|---|---|
| eng/helix_xharness.proj | Defaults Windows DotNetCliVersion to the pinned SDK package version to prevent Helix SDK download-path mismatches. |
| eng/helix_xharness.Tests.ps1 | Adds regression tests for SDK/version selection and override behavior. |
| .github/instructions/helix-device-tests.instructions.md | Documents the Windows SDK payload/version mismatch and how to run the new regression tests. |
| It 'uses the pinned Windows SDK package version, not the installed SDK version' { | ||
| $properties = Get-HelixSdkProperties @( | ||
| '-p:TargetOS=windows' | ||
| '-p:HelixTargetQueue=windows.11.amd64.client.open' |
| '-p:XHarnessTargetFramework=net8.0' | ||
| ) | ||
|
|
||
| $properties.DotNetCliVersion | Should -Be '8.0.100' |
|
@dalexsoto stamp |


Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description of Change
Windows device-test submissions to Helix infer the SDK payload version from
NETCoreSdkVersion. Servicing SDK packages can report a shortened release version (10.0.113) while being published under their full package version (10.0.113-servicing.26454.107). The submission therefore fails before tests are sent withUnable to find dotnet cli sdk version 10.0.113 from any of the specified feeds.Default Windows
DotNetCliVersionto the repository'sMicrosoftNETSdkPackageVersion, preserving explicit environment/pipeline and command-line overrides. Other platforms retain XHarness's SDK selection. Add regression checks for version selection, dependency updates, overrides, and unchanged mobile behavior, and document the requirement.Issues Fixed
Fixes the Windows Helix SDK lookup failure seen in main build 1600092. No separate issue has been filed.
Validation
AddDotNetSdkwithNETCoreSdkVersion=10.0.113before the fix.https://ci.dot.net/public/Sdk/10.0.113-servicing.26454.107/dotnet-sdk-10.0.113-win-x64.zipwithout a command-line version override or submitting Helix jobs.git diff --checkpasses.