Skip to content

[release/11.0] Run Components E2E in Azure Linux 4 Chrome image - #70839

Open
richlander wants to merge 1 commit into
release/11.0from
dev/richlander/release11-al4-browser-image
Open

richlander wants to merge 1 commit into
release/11.0from
dev/richlander/release11-al4-browser-image

Conversation

@richlander

@richlander richlander commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

[release/11.0] Run Components E2E in Azure Linux 4 Chrome image

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Use the published .NET 11 Azure Linux 4 Chrome image for browser tests.

Description

Replace the Components E2E job's Ubuntu 22.04 host opt-in with azurelinux-4.0-net11.0-build-aot-test-chrome-amd64. Use its packaged Node 24 rather than installing Node 24.14.1 over it. The shared template already forwards the container in public/internal pipelines and uses existing Azure Linux 3 build-host pools when the Ubuntu opt-in is absent.

Add "azurelinux4-x64" to both the exact and fallback node_modules cache keys. Otherwise the existing node24/Agent.OS=Linux key could restore Ubuntu-generated native modules into the new container. Disabling the shared Node installation also disables its separate old-version node cache; retain the E2E job's cache and miss-handling logic.

Only .azure/pipelines/jobs/components-e2e-test-job.yml changes. Preserve CoreCLR (UseMonoRuntime=false), Mono client/WebAssembly and Mono server legs, filters, minimum test counts (500/1000/1300), restore/build arguments, quarantine handling and result publication. The internal entrypoint remains unchanged. This is test tooling, not a change to shipping build images, sysroots or AL3-primary release Helix coverage. Ubuntu Helix testing remains on 26.04 LTS in #70800.

The images were published after dotnet/dotnet-buildtools-prereqs-docker#1838 restored sudo. This is the branch-matching consumer follow-up to #70689, not a backport of its test-source changes. No product bug is closed by this pipeline-only change.

Validation

  • python3 /home/rich/.copilot/session-state/4830e609-9e05-4d58-835f-2eecf31c4b62/files/validate-release-browser-consumers.py - passed for both release branches. YAML parsing/source-contract checks confirm the intended parameters, public/internal forwarding, disabled UseNode gate, cache isolation and unchanged entrypoints/other steps. This is not Azure's hosted template expansion.
  • docker pull mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-4.0-net11.0-build-aot-test-chrome-amd64 - passed; published digest sha256:2326c41ee3e0f260c4ebff0951c2e0e2a5dd269aca5a8761c4390cae3a3d0d18. Packaged-tool execution passed: sudo 1.9.17, libatomic, Node 24.22.3, npm 11.19.1, Git 2.56.1, PowerShell 7.7.0 and matching Chrome/ChromeDriver 158.0.8127.36.
  • The exact browser smoke command below passed. A temporary session-only Node probe uses W3C WebDriver to navigate, click a real button and assert changed DOM text as UID 10001, with no external network. It does not execute Blazor or the .NET 11 E2E suite.
docker run --rm --cpus=1 --network none -v /home/rich/.copilot/session-state/4830e609-9e05-4d58-835f-2eecf31c4b62/files/probe-published-release-chrome.mjs:/probe.mjs:ro --entrypoint bash mcr.microsoft.com/dotnet-buildtools/prereqs@sha256:2326c41ee3e0f260c4ebff0951c2e0e2a5dd269aca5a8761c4390cae3a3d0d18 -ec 'useradd -m -u 10001 browser-probe; sudo -n -H -u browser-probe env TEST_CHROME_BINARY="$TEST_CHROME_BINARY" CHROMEWEBDRIVER="$CHROMEWEBDRIVER" node /probe.mjs'

The first probe attempt omitted those two environment variables across sudo and failed before starting ChromeDriver (undefined/chromedriver). Explicitly forwarding them fixed the probe; no image or repository workaround was needed.

Hosted qualification pending: run aspnetcore-components-e2e on this head before treating the migration as qualified. Local checks do not prove branch-specific application behavior, locale expectations or full hosted agent/container setup.

Use the published version-matching browser image and its packaged Node 24, preserving all runtime/filter/count gates. Isolate the existing release11 node_modules cache by container OS and architecture.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@richlander
richlander requested review from a team and wtgodbe as code owners November 25, 2026 15:00
Copilot AI balanced review requested due to automatic review settings November 25, 2026 15:00

Copilot AI commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

One or more custom setup steps configured for this repository failed during this Copilot code review run:

Build solution

Setup steps run before each review. If the review above is missing context, or no review was posted at all, the failing step above may be the cause. See the workflow run for failure details, fix your setup steps configuration, and re-request a review.

Note

You can configure setup steps for Copilot code review separately from Copilot cloud agent with a copilot-code-review.yml file. Read the docs for details.

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

Hosted aspnetcore-components-e2e qualification on this release/11.0 head remains pending, leaving full-suite compatibility and public/internal agent-container setup unverified by static checks and standalone browser smoke tests.

No open issues 🎉

What changed in this PR

Moves the release/11.0 Components browser E2E job to the published .NET 11 Azure Linux 4 Chrome container without changing shipping images or Helix coverage.

Changes:

  • Replaces the Ubuntu host opt-in with the Chrome container and uses its packaged Node 24.
  • Adds azurelinux4-x64 to exact and fallback cache keys to prevent reuse of Ubuntu-generated native modules.
  • Preserves runtime legs, test filters, minimum test counts, and result handling.

Hosted qualification through aspnetcore-components-e2e remains pending.

File Description
.azure/​pipelines/​jobs/​components-e2e-test-job.yml Selects the Chrome container, disables Node installation, and isolates the Node cache.

Review effort: Balanced

This branch has not been deployed

No deployments
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.

2 participants