Skip to content

Move Android devcontainer to Ubuntu 26.04 - #136379

Merged
akoeplinger merged 1 commit into
mainfrom
steveisok-android-devcontainer-modernization
Oct 27, 2026
Merged

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

Conversation

@steveisok

Copy link
Copy Markdown
Member

Summary

Move only the Android devcontainer's Dockerfile default and build.args.VARIANT from 8.0-noble to the published mcr.microsoft.com/devcontainers/dotnet:11.0-resolute Ubuntu 26.04 image.

This addresses the Android devcontainer portion of D1 in #136313, not the separate Android Helix VM/queue migration. It does not close the tracking issue or complete all of D1.

Android NDK r27c, command-line SDK 13114758_latest, API level 35, build tools 35.0.0, the x86_64 system image selection and both archive SHA-256 checksums are unchanged. Packages (including OpenJDK 17), features, developer user/settings, lifecycle hooks, KVM configuration and repository SDK/framework pins are also unchanged. The newer base changes the image's bootstrap SDK; the repository-pinned .dotnet PATH precedence is retained. No package/setup workaround is included.

Validation

Passed static checks:

  • node "$EVIDENCE_DIR/validate-config.cjs" — passed. The external validation script parses JSONC and compares the complete configuration and Dockerfile with the original HEAD, asserting that only the two approved base selections changed and that exactly those two tracked files differ. EVIDENCE_DIR refers to the retained local session evidence directory; this script is not added to the repository.
  • bash -n .devcontainer/scripts/onCreateCommand.sh .devcontainer/scripts/postCreateCommand.sh .devcontainer/android/postStartCommand.sh — passed.
  • git diff --check — passed.

Before building, the published base's Linux AMD64 manifest was verified as sha256:5ca289aefffd9a753687cfae8ea5c253a806b4e07dc27b54d088faed1fac69e8 (multi-platform index sha256:e6f76375a860ad18bbc54f748d78406395af240cae0453030c12adf1bfe8142f). A disposable base-only container reported Ubuntu 26.04.1 and amd64; this was not a completed Android devcontainer smoke test.

Attempted the actual configured feature-enabled image build on an ARM64 Mac using Docker Desktop 4.47.0 Linux AMD64 emulation, not native x64 or ARM64 validation:

npm exec --yes --package @devcontainers/[email protected] -- devcontainer build \
  --workspace-folder "$PWD" \
  --config "$PWD/.devcontainer/android/devcontainer.json" \
  --platform linux/amd64 \
  --image-name copilot-android-6cfcbeee:validation --no-lockfile

Result: failed, exit 1. Package setup, including OpenJDK 17, both pinned archive checksum checks, NDK extraction, SDK license acceptance and platform-tools/API 35/build-tools 35.0.0 installation completed. The build then failed committing the x86_64 system-image layer with Docker BuildKit storage/metadata I/O errors:

write /var/lib/docker/buildkit/metadata_v2.db: input/output error

No complete feature-enabled image was produced; KVM group setup and feature installation stages were not reached. No devcontainer startup, lifecycle execution, Java/NDK runtime or compiler smoke, shared-library smoke, emulator/AVD execution, KVM validation or full Android product build coverage was established. Destructive/heavy/emulator hooks were inspected but not invoked. No emulation workaround or Docker recovery change was made.

The user explicitly waived further local validation to review and publish this focused patch. The waiver does not turn the failed or unexecuted checks into passes. Ordinary runtime/Android product CI is not evidence that this devcontainer builds, and emulator execution still requires separate validation on a KVM-capable Linux host.

Note

This pull request was prepared with GitHub Copilot assistance.

Update only the two Android base image selectors to 11.0-resolute.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 6cfcbeee-ea04-433c-aed4-4fe00fafc5d7
@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 84feb12 into main Oct 27, 2026
25 checks passed
@akoeplinger
akoeplinger deleted the steveisok-android-devcontainer-modernization branch October 27, 2026 11:11
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 28, 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.

4 participants