Repository navigation
[release/11.0] Cross-build Linux x64 against the sysroot; move Linux agents and tests to Azure Linux 3 - #70703
Merged
Conversation
…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]>
Contributor
There was a problem hiding this comment.
🔵 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/x64andCrossBuild=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
approved these changes
Nov 19, 2026
4 tasks
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.
[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.
ci.yml,ci-public.yml,ci-unofficial.yml): runs inazurelinux-3.0-net11.0-cross-amd64withROOTFS_DIR=/crossrootfs/x64and-p:CrossBuild=true. That's the same pattern the ARM, ARM64, musl and source-build jobs already use. The bundleddotnet-dev-certs,dotnet-user-secretsanddotnet-user-jwtstools 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.jobs/default-build.yml):Build.Ubuntu.2204.Amd64[.Open]→build.azurelinux.3.amd64[.open]. Theuse1ESUbuntupath (Components E2E) is unchanged.jobs/default-build.yml): Linux jobs useC.UTF-8, which Azure Linux provides, instead ofen_US.UTF-8(as in Use C.UTF-8 for Linux build jobs #70560).ci.yml,ci-public.yml,ci-unofficial.yml) and quarantined Linux tests (quarantined-pr.yml) run inazurelinux-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 usesinstall-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?
Risk
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
Edited pipeline YAML parses, and
git diff --checkpasses. I confirmed the image's x64 sysroot is bionic. The Linux x64aspnetcoretoolsbinary'sGLIBC_symbol versions still need checking in this PR's build output.Packaging changes reviewed?