Repository navigation
Add Azure Linux 4 .NET 10 and 11 Chrome test images - #1838
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
richlander
enabled auto-merge (squash)
November 25, 2026 03:29
Restore the .NET 10 managed-base package and retain inherited sudo in the .NET 11 AOT layer. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
akoeplinger
approved these changes
Nov 25, 2026
This was referenced Nov 25, 2026
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.
Summary
Add Azure Linux 4 x64 Chrome test-image variants for .NET 10 and .NET 11:
azurelinux-4.0-net10.0-build-aot-test-chrome-amd64azurelinux-4.0-net11.0-build-aot-test-chrome-amd64Add the missing supporting images: the .NET 10 managed-build base and the .NET 10/11 host-native AOT test layers. Register all five additions in the Azure Linux manifest. Existing CODEOWNERS patterns already cover them.
The managed-build recipe matches the existing Azure Linux 4 .NET 11 base, including
sudo. The AOT and Chrome recipes match their .NET 12 counterparts except for the version-specificFROMreferences. The earlier sudo removal has been reverted: .NET 10 installs it in the new managed-build base, and .NET 11 retains it from the existing managed-build base. Existing managed-build bases are unchanged. Chrome and ChromeDriver remain pinned to 158.0.8127.36, and both Chrome images include thelibatomicfix.Node defaults to the latest Node 24 packages available from Azure Linux at image build time, not an upstream patch-version pin. The sudo-restoration builds reused cached layers containing Node 24.22.1 and npm 11.19.1; the earlier sudo-free rebuilds contained Node 24.22.3. Release-branch consumer migrations should use this packaged default instead of overriding it with the existing
UseNode24.14.1 pin.This extends the image family introduced in #1825 and corrected in #1836:
#1825
#1836
These variants prepare for separate ASP.NET Core release-branch browser-container migrations, following the main-branch consumer:
dotnet/aspnetcore#70689
Validation
Latest validation: sudo restored
docker build --progress=plainfor all five exact Dockerfiles, using tagscopilot/al4-release-sudo-4830:net10-build,:net10-aot,:net10-chrome,:net11-aot, and:net11-chrome. BuildKit reused cached layers; dependent builds used--build-context <original-FROM-reference>=docker-image://<rebuilt-local-parent>without changing recipes or shared MCR tags.docker run --rm --network none --entrypoint bash <image> -ec 'rpm -q sudo; sudo -n true; sudo -n -u nobody id -un | grep -x nobody'in all five rebuilt images. Each containssudo-1.9.17-12.p2.azl4; root invocation and switching tonobodyboth succeed. The sudo execution requirement fails as expected in both preceding sudo-free Chrome images.libatomicremains installed.docker run --rm -i --entrypoint hadolint hadolint/hadolint:v2.12.0 --failure-threshold error - < <Dockerfile>for both modified recipes, andgit diff --check. Existing Hadolint warnings remain.hadolintexecutable; rerunning with the explicit entry point passed. The first tooling probe treatedCHROMEWEBDRIVERas an executable rather than a directory; rerunning with$CHROMEWEBDRIVER/chromedriverpassed. No source changes were needed for either harness correction.Historical sudo-free validation (superseded by restoration)
docker build --progress=plain, taggedcopilot/al4-release-nosudo-4830:net10-build,:net10-aot,:net10-chrome,:net11-aot, and:net11-chrome. Dependent builds use--build-context <original-FROM-reference>=docker-image://<rebuilt-local-parent>to consume rebuilt parents without changing recipes or shared MCR tags. The existing .NET 11 managed base is unchanged.docker run --rm --network none --entrypoint bash <image> -c '! command -v sudo && ! rpm -q sudo'for all five rebuilt images. The same absence check fails for both original Chrome images, which containsudo-1.9.17-12.p2.azl4.libatomicremains installed.EXPECTED_NODE_VERSION=v24.22.3 node /tmp/al4-release-chrome-probe.mjsas the non-root named userchromeprobein both rebuilt Chrome images. The existing probe asserts Chrome/ChromeDriver 158.0.8127.36, browser navigation, title and body content. The probe accepts an explicit expected Node version; its original 24.22.1 default is unchanged.hadolint --failure-threshold error src/azurelinux/4.0/net10.0/build/amd64/Dockerfile src/azurelinux/4.0/net11.0/build-aot-test/amd64/Dockerfileusing the existing Hadolint v2.12.0 container, andgit diff --check. Existing warnings remain unchanged.During the superseded sudo-free experiment, the first .NET 11 rebuild failed because Azure Linux protects
sudofrom package-manager removal; the temporary removal command overrode that protection and disabled automatic dependency cleanup. That removal command is no longer present. The initial browser probes could not read the host-owned fixture directory as the non-root user; copying the fixture to a readable file inside each disposable container corrected the harness prerequisite without changing host permissions. Full Azure Pipelines agent/job execution without sudo was not verified.Earlier pre-removal validation
Passed: direct
docker buildof all five new Dockerfiles in dependency order; the existing .NET 11 managed base was pulled from MCR. The repository'sbuild.ps1/ImageBuilder wrapper was not run.Passed: both final images start Git, self-contained PowerShell 7.7.0, and Azure Linux's packaged Node 24.22.1 and npm 11.19.1;
libatomicis installed.Passed: real non-root, named-user WebDriver sessions in both images with the packaged Node default, using
TEST_CHROME_BINARYandCHROMEWEBDRIVER. Temporary probes asserted Node and Chrome/driver versions, page navigation, title, and body content.Passed: secondary compatibility checks with the release branches' existing Node 24.14.1 and npm 11.11.0, including the same named-user WebDriver assertions. This older version was supplied only for validation; it is not the image default.
Passed: .NET 10 and .NET 11 NativeAOT console publication in the corresponding AOT layers, with SDKs supplied only for validation. Each native executable then ran in its unmodified AOT image without an installed SDK.
Passed: Hadolint on all five new recipes using
hadolint --failure-threshold error -. Existing recipe warnings remain unchanged.Passed: repository metadata/CODEOWNERS tests via the command below. TRX verified: Passed: 6, Failed: 0, Skipped: 0.
docker run --rm \ --mount type=bind,src="$(pwd)",dst=/repo \ -w /repo mcr.microsoft.com/dotnet/sdk:11.0 \ pwsh -NoProfile -File ./run-tests.ps1Passed: manifest parsing, unique new tags, recipe parity, and
git diff --cached --check.Scope
No existing images or ASP.NET Core consumers change. Azure Linux 3 Chrome variants, Nginx variants, release-branch E2E qualification, and main-branch browser-failure investigation are separate work. These host-native test images do not change shipping NativeAOT ABI requirements.