Skip to content

Fix Windows device-test Helix SDK version resolution - #38692

Merged
kubaflo merged 1 commit into
mainfrom
kubaflo-windows-helix-sdk-fix
Sep 21, 2026
Merged

kubaflo merged 1 commit into
mainfrom
kubaflo-windows-helix-sdk-fix

Conversation

@kubaflo

@kubaflo kubaflo commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

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 with Unable to find dotnet cli sdk version 10.0.113 from any of the specified feeds.

Default Windows DotNetCliVersion to the repository's MicrosoftNETSdkPackageVersion, 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

  • The original investigation reproduced the exact missing-SDK error using AddDotNetSdk with NETCoreSdkVersion=10.0.113 before the fix.
  • Confirmed in this clean worktree that the fixed project resolves https://ci.dot.net/public/Sdk/10.0.113-servicing.26454.107/dotnet-sdk-10.0.113-win-x64.zip without a command-line version override or submitting Helix jobs.
  • All nine Pester regression cases pass.
  • git diff --check passes.
  • Full Windows device tests require CI; not run locally.

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>
Copilot AI lite review requested due to automatic review settings September 19, 2026 22:57
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 38692

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 38692"

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@kubaflo

kubaflo commented Sep 19, 2026

Copy link
Copy Markdown
Contributor Author

/azp run maui-pr-devicetests

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 Medium severity · 1 Low severity

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 DotNetCliVersion to MicrosoftNETSdkPackageVersion for 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'
@kubaflo

kubaflo commented Sep 20, 2026

Copy link
Copy Markdown
Contributor Author

@dalexsoto stamp

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — cf4074a8 Deployed Sep 19, 2026 by kubaflo via conclusion #1976
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants