Skip to content

Helix SDK: treat 'armarch' queues as arm64 for DotNetCliRuntime selection - #17181

Merged
missymessa merged 2 commits into
dotnet:mainfrom
missymessa:fix-helix-armarch-dotnetcli-runtime
Jul 24, 2026
Merged

missymessa merged 2 commits into
dotnet:mainfrom
missymessa:fix-helix-armarch-dotnetcli-runtime

Conversation

@missymessa

Copy link
Copy Markdown
Member

Problem

The Helix SDK's DotNetCli.props selects the IncludeDotNetCli payload runtime by substring-matching the target queue name. Queues named with the armarch suffix (e.g. dnceng's ubuntu.2204.armarch) contain neither arm64 nor arm32, so they fall through to the Otherwise (linux-x64) branch. That ships an x64 .NET CLI to an arm64 host, so dotnet fails with dotnet: exec format error.

Container variants of the same queues (e.g. [email protected]/dotnet-buildtools/prereqs:ubuntu-22.04-helix-arm64v8) worked only by accident, because the arm64v8 suffix happens to match the arm64 substring check and gets linux-arm64.

This is the root cause of dotnet/dnceng#5018, which forced dnceng to disable host-VM E2E test execution on all *.armarch queues.

Fix

Treat armarch as an alias for arm64 (aarch64) across the windows, osx, alpine, and generic Linux branches of the runtime-selection Choose. armarch queues in dnceng are always aarch64/glibc, and the change is additive (only affects queue names that previously fell through to the x64 default).

Testing

The DotNetCliRuntime selection in this props file has no existing unit coverage. Verified by inspection that ubuntu.2204.armarch now resolves to linux-arm64 while existing arm64/arm32/x64 queue names are unaffected.

Fixes dotnet/dnceng#5018

…tion

Queues named with the 'armarch' suffix (e.g. dnceng's ubuntu.2204.armarch)
matched neither 'arm64' nor 'arm32' in DotNetCli.props, so IncludeDotNetCli
fell through to the linux-x64 default and shipped an x64 .NET CLI to an
arm64 host, producing 'dotnet: exec format error'. Container variants worked
only because their 'arm64v8' suffix happened to match 'arm64'.

Treat 'armarch' as an alias for 'arm64' (aarch64) across the windows, osx,
alpine, and generic Linux branches.

Fixes dotnet/dnceng#5018

Co-authored-by: Copilot <[email protected]>
Copilot-Session: a6d29074-06bd-4b3c-b815-31cf361de842
Copilot AI review requested due to automatic review settings July 23, 2026 19:56

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.

Pull request overview

Updates the Helix SDK’s DotNetCliRuntime auto-selection logic so queues suffixed with armarch (e.g. ubuntu.2204.armarch) are treated as arm64, preventing the SDK from shipping an x64 .NET CLI to arm64 hosts (which causes exec format error).

Changes:

  • Treat armarch as an alias for arm64 across Windows, macOS, Alpine, and generic Linux queue matching in DotNetCli.props.
  • Add an in-file note explaining why armarch needs special handling, with a link to the tracked issue.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings July 23, 2026 23:50
@missymessa
missymessa requested a review from mmitche July 23, 2026 23:50

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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@missymessa
missymessa merged commit 29182c9 into dotnet:main Jul 24, 2026
15 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-rc1 milestone Jul 26, 2026
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.

Get Success.Tests working on Ubuntu ArmArch VMs

3 participants