Skip to content

[release/11.0] Cross-build Linux x64 against the sysroot; move Linux agents and tests to Azure Linux 3 - #70703

Merged
wtgodbe merged 1 commit into
release/11.0from
dev/richlander/release11-azurelinux3
Nov 19, 2026
Merged

wtgodbe merged 1 commit into
release/11.0from
dev/richlander/release11-azurelinux3

Conversation

@richlander

Copy link
Copy Markdown
Member

[release/11.0] Cross-build Linux x64 against the sysroot; move Linux agents and tests to Azure Linux 3

Cross-build Linux x64 NativeAOT tools; make Azure Linux 3 the primary Linux OS.

Description

Azure Linux 3 carries all current production Azure Linux traffic, so released branches keep it as the primary Linux test OS. Ubuntu stays as secondary coverage. This adapts the main-branch changes (#70558, #70560, #70637, #70688) to release/11.0, using Azure Linux 3 rather than main's Azure Linux 4.

  • Linux x64 build (ci.yml, ci-public.yml, ci-unofficial.yml): runs in azurelinux-3.0-net11.0-cross-amd64 with ROOTFS_DIR=/crossrootfs/x64 and -p:CrossBuild=true. That's the same pattern the ARM, ARM64, musl and source-build jobs already use. The bundled dotnet-dev-certs, dotnet-user-secrets and dotnet-user-jwts tools publish NativeAOT (aspnetcoretools). This job previously linked them against the agent's own glibc, so changing the agent OS would have changed the shipped binary's requirements. The image's x64 sysroot is Ubuntu 18.04 (bionic, glibc 2.27), the same as main's. This change has to land with the agent move.
  • Default Linux agents (jobs/default-build.yml): Build.Ubuntu.2204.Amd64[.Open] → build.azurelinux.3.amd64[.open]. The use1ESUbuntu path (Components E2E) is unchanged.
  • Locale (jobs/default-build.yml): Linux jobs use C.UTF-8, which Azure Linux provides, instead of en_US.UTF-8 (as in Use C.UTF-8 for Linux build jobs #70560).
  • Linux platform tests (ci.yml, ci-public.yml, ci-unofficial.yml) and quarantined Linux tests (quarantined-pr.yml) run in azurelinux-3.0-net11.0-build-aot-test-nginx-amd64. That image supplies Nginx from the Azure Linux feed, so the jobs no longer build Nginx from source on the agent. The inotify step runs on the host (target: host). macOS still uses install-nginx.sh.

Not in this PR: the Helix PR queue (Ubuntu.2404.Amd64.Open) and the Helix matrix are unchanged.

Customer Impact

Protects the shipped Linux x64 NativeAOT tools from picking up the build agent's glibc requirements. Otherwise CI infrastructure only.

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

CI-only, except that the Linux x64 tools are now linked against the same glibc 2.27 sysroot as the other Linux RIDs. The same changes are already merged on main.

Verification

  • Manual (required)
  • Automated

Edited pipeline YAML parses, and git diff --check passes. I confirmed the image's x64 sysroot is bionic. The Linux x64 aspnetcoretools binary's GLIBC_ symbol versions still need checking in this PR's build output.

Packaging changes reviewed?

  • Yes
  • No
  • N/A

…s to Azure Linux 3

- Linux x64 build runs in azurelinux-3.0-net11.0-cross-amd64 with
  ROOTFS_DIR=/crossrootfs/x64 and -p:CrossBuild=true, like the ARM, ARM64,
  musl and source-build jobs. Its NativeAOT aspnetcoretools binary then
  targets the Ubuntu 18.04 (glibc 2.27) sysroot instead of the agent's OS.
- Default Linux build agents: Build.Ubuntu.2204.Amd64[.Open] -> build.azurelinux.3.amd64[.open].
- Linux build jobs use the C.UTF-8 locale, which Azure Linux provides.
- Linux platform and quarantined tests run in the published
  azurelinux-3.0-net11.0-build-aot-test-nginx-amd64 image, which supplies
  Nginx instead of building it from source on the agent.

Adapted from main (#70558, #70560, #70637, #70688). Azure Linux 3 stays the
primary Linux test OS for this released branch.

Co-authored-by: Copilot <[email protected]>
@richlander
richlander requested review from a team and wtgodbe as code owners November 18, 2026 18:27
Copilot AI balanced review requested due to automatic review settings November 18, 2026 18:27

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.

🔵 Needs a closer look

The Linux x64 NativeAOT linker migration leaves shipped aspnetcoretools GLIBC compatibility unverified, requiring binary symbol inspection and confirmation of successful release/11.0 containerized CI.

No open issues 🎉

What changed in this PR

Adapts the main-branch Linux CI migration for release/11.0, using Azure Linux 3 while keeping shipped Linux x64 NativeAOT tools linked against a fixed compatibility sysroot.

Changes:

  • Cross-build Linux x64 tools with /crossrootfs/x64 and CrossBuild=true.
  • Switch default Linux agents to Azure Linux 3 and use C.UTF-8, preserving the Components E2E Ubuntu agent path.
  • Run regular and quarantined Linux tests in an Azure Linux 3 container with preinstalled Nginx; run regular tests’ inotify configuration on the host.
File Description
.azure/​pipelines/​quarantined-pr.yml Moves quarantined Linux tests into the Azure Linux test container.
.azure/​pipelines/​jobs/​default-build.yml Updates default Linux agent images and locale settings.
.azure/​pipelines/​ci.yml Enables official Linux x64 cross-builds and containerized platform tests.
.azure/​pipelines/​ci-unofficial.yml Applies cross-build and test-container changes to unofficial CI.
.azure/​pipelines/​ci-public.yml Applies cross-build and test-container changes to public CI.

Review effort: Balanced

@wtgodbe wtgodbe added the tell-mode Indicates a PR which is being merged during tell-mode label Nov 19, 2026
@wtgodbe
wtgodbe merged commit 11fefdf into release/11.0 Nov 19, 2026
34 checks passed
@wtgodbe
wtgodbe deleted the dev/richlander/release11-azurelinux3 branch November 19, 2026 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tell-mode Indicates a PR which is being merged during tell-mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants