Skip to content

Move Wasm devcontainers to Ubuntu 26.04 - #136348

Merged
akoeplinger merged 1 commit into
mainfrom
steveisok-wasm-devcontainer-modernization
Oct 23, 2026
Merged

akoeplinger merged 1 commit into
mainfrom
steveisok-wasm-devcontainer-modernization

Conversation

@steveisok

Copy link
Copy Markdown
Member

Summary

Update 8.0-noble to the published 11.0-resolute base in the Dockerfile defaults and build arguments for the standard and multithreaded Wasm devcontainers. This is four line replacements across four files; no package, lifecycle, threading, architecture, Node-policy or V8-version changes are included.

The image changes the bootstrap SDK, not the repository-pinned SDK/framework versions. Repository .dotnet/.dotnet-tools-global PATH precedence, vscode user, features, extensions, lifecycle hooks and ports are preserved.

This addresses only the Wasm portion of D1 in #136313; it does not close that issue or complete D1. Android remains deferred, and the standard/libraries migration in #136336 is separate.

Validation

The actual published mcr.microsoft.com/devcontainers/dotnet:11.0-resolute linux/amd64 manifest was pulled and used for both builds:

sha256:5ca289aefffd9a753687cfae8ea5c253a806b4e07dc27b54d088faed1fac69e8

The resulting environments report Ubuntu 26.04.1, dpkg architecture amd64 and uname -m of x86_64. All local target-image validation was AMD64 emulation on an ARM64 Mac running Docker Desktop 4.47.0, not native x64 or native ARM64 validation.

Check, performed for both configurations Result
Complete feature-enabled devcontainer build --platform linux/amd64 using the external validation-only emulator setup described below Passed, exit 0
Separate container startup and execution as vscode; actual repository-local SDK PATH precedence, passwordless sudo and GitHub CLI feature 2.103.0 Passed
Node 24.22.1/npm 11.19.1: JavaScript, actual Wasm execution returning 42, shared Wasm memory/Atomics, and a worker thread updating shared memory Passed
Existing V8/d8 10.8.168: actual JavaScript/Wasm/shared-memory/Atomics execution Passed
ldd for d8, Chromium, Firefox and Firefox libxul.so No missing libraries
Repository-pinned Linux x64 Chromium snapshot 1697601 (155.0.8059.0): headless DOM with an execution-produced JavaScript/Wasm PASS marker Passed
Repository-pinned Firefox 155.0.1: headless screenshot of the same page, with the JavaScript/Wasm PASS marker visually verified Passed
JSONC parse/deep configuration-invariant checks; bash -n .devcontainer/scripts/onCreateCommand.sh .devcontainer/scripts/postCreateCommand.sh; git diff --check Passed

Existing browser package installation succeeded unchanged; no package substitutions were needed. The base bootstrap SDK reports 11.0.100-rc.1.26425.128; the repository SDK pin remains 11.0.100-rc.1.26420.103. This did not install or execute the repository-local pinned SDK.

Local emulator qualification

Unwrapped builds on this Docker Desktop host still fail at the unchanged nvm install --lts: Resolute GNU tar needs openat2, which the default AMD64 emulator returns as ENOSYS. A nested archive reproducer and a direct x86-64 syscall probe confirmed the limitation.

Successful builds used temporary, external CLI-generated Dockerfile wrappers with read-only BuildKit QEMU 10.2.3 mounts. The original Dockerfile RUN commands executed through QEMU; feature scripts used normal Desktop emulation with the identical GNU tar dispatched through a temporary QEMU mount. Original build instruction payloads were compared unchanged. The final images retained their original /bin/bash -c shell and contained no emulator or tar shim. No Docker/binfmt/kernel settings, extractor, tar version or Node policy were changed. All wrappers and generated Dockerfiles stayed outside tracked source.

Both final images were then started and all runtime smoke checks above ran under normal Docker Desktop AMD64 emulation, without an explicit QEMU invocation. Temporary validation containers/images and downloaded browser binaries were cleaned up; logs, DOM output and screenshots were retained locally outside the repository.

Remaining coverage and existing CI

Startup used temporary prebuilt-image/read-only-workspace overrides and --skip-post-create --skip-post-attach. Neither lifecycle hook was executed or modified: onCreateCommand would run the full Wasm build, and postCreateCommand performs a hard reset to the prebuilt SHA. Full Wasm/AOT builds, browser/debugger suites, native-x64 execution, hosted validation of this change, VS Code extension interaction and port forwarding remain unverified.

These were minimal headless browser checks, not sandbox/GPU/desktop-session validation. Chromium used --no-sandbox, --disable-gpu and --disable-dev-shm-usage; Firefox emitted a user-namespace sandbox warning but rendered successfully.

The existing Dev Environment Prebuilds workflow actually builds the standard Wasm devcontainer and runs its creation hook on main: confirmed prebuild job. That successful historical run used 8.0-noble and does not validate this patch. The 46 public prebuild runs inspected since 2026-09-22 covered standard Wasm and libraries only; no multithreaded Wasm prebuild was observed. Ordinary runtime/Wasm product CI is not a devcontainer image test, and runtime.yml explicitly excludes .devcontainer/* from its path triggers. No CI configuration changes or manual CI triggers are included.

Note

This change and PR description were prepared with GitHub Copilot.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: c62d6794-320d-447b-b16d-e285ee5e2f16
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
15 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@akoeplinger
akoeplinger merged commit be5a62f into main Oct 23, 2026
25 checks passed
@akoeplinger
akoeplinger deleted the steveisok-wasm-devcontainer-modernization branch October 23, 2026 10:31
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants