Skip to content

Add opt-in scriptless Alpine 3.24 AMD64 Helix image - #1835

Open
wfurt wants to merge 2 commits into
mainfrom
wfurt/alpine-324-scriptless-poc
Open

wfurt wants to merge 2 commits into
mainfrom
wfurt/alpine-324-scriptless-poc

Conversation

@wfurt

@wfurt wfurt commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Purpose

Add an opt-in scriptless Alpine 3.24 AMD64 Helix image, rather than removing dependencies from images already used by other repositories. Following the discussion with Rich, this PR now leaves existing image names and behavior unchanged.

This remains a focused proof of concept on the path to removing embedded helix-scripts where consumers are ready. The broad change in #1647 is intentionally left unchanged. Related reporting work: dotnet/arcade#16774 and dotnet/arcade#16775.

Scope

  • Add src/alpine/3.24/helix-scriptless/amd64/Dockerfile and the new tag alpine-3.24-helix-scriptless-amd64.
  • Keep Python, the final-image OS packages, the helixbot user, and mount-access setup; omit the embedded Helix Python virtual environment.
  • Restore src/alpine/3.24/helix/Dockerfile exactly to the PR base. Existing Alpine 3.24 Helix tags, ARM variants, and derived LLVM images are unchanged.
  • Add the manifest entry, CODEOWNERS coverage, and documentation for the new AMD64-only variant. No consumer is switched automatically by this PR.

The published opt-in reference will be mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.24-helix-scriptless-amd64.

Validation and merge gate

Existing consumers stay on their unchanged images. Consumers choosing the new tag must validate their reporting path and any other dependencies on helix-scripts.

This update

  • pwsh -NoProfile -File ./run-tests.ps1: passed all 6 repository tests, including manifest path/tag and CODEOWNERS validation.
  • git -c core.whitespace=cr-at-eol diff --cached --check: passed, preserving CODEOWNERS' existing CRLF line endings.
  • Verified that all existing manifest entries and Helix/LLVM Dockerfiles are unchanged relative to the PR base.
  • az acr build --registry wfurthelixpoc --platform linux/amd64 --image dotnet-buildtools/prereqs:alpine-3.24-helix-scriptless-amd64 src/alpine/3.24/helix-scriptless/amd64 --no-logs: succeeded (ACR run cc3).
  • The resulting temporary ACR image is anonymously pullable at digest sha256:85c0676d0f8285ee11039929ec8d59e7d478fe6a12216fd77ac1e859b4f689be.
  • Smoke testing that exact digest succeeded (ACR run cc4): python is available, the user is UID 1000, /root is traversable, the old virtual environment is absent, and importlib.util.find_spec("helix") returns None.
  • The repository's local ImageBuilder command was not run because this machine has no Docker executable/daemon. PR CI will validate the updated manifest/build wiring.

Earlier runtime end-to-end evidence

The new Dockerfile is byte-for-byte identical to the scriptless Dockerfile tested in the initial version of this PR (commit b907036c). That candidate, digest sha256:9ac64c8156672650af15a7c41dd015bfc186dd7e662044e5eed5143bbf405f43, was pinned in dotnet/runtime#138025.

  • Its Alpine Helix job passed all 260 library test work items, plus the controller work item.
  • Azure DevOps test run 47260662 contains 137,838 individual results: 136,154 passed, 1,684 not executed, and 0 failed. A passing result and a skipped result were checked against their original work-item xUnit XML.
  • That run used the standalone Helix job monitor to publish XML. It did not exercise the Python worker's portable __test_report_v2.json reporting path. Failure details, attachments, retries, and other reporting paths have not been established by this PoC.
  • The full runtime suite has not been rerun on the newly rebuilt 85c0676d... digest. The runtime PoC remains pinned to its original tested image.

These limitations apply to adoption of the new variant, not to existing consumers, whose images retain their dependencies.

Note

This PR description and change were prepared with GitHub Copilot.

Limit the scriptless-container experiment to the Alpine 3.24 Helix image family. Preserve OS dependencies and user setup while removing the Helix Python build stage and virtual environment.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Restore the existing Helix Dockerfile so current tags and LLVM images retain their dependencies. Add the validated scriptless Dockerfile under a separate AMD64 variant with its own manifest tag, ownership, and documentation.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@wfurt
wfurt requested review from a team as code owners November 21, 2026 01:42
@wfurt wfurt changed the title [PoC] Remove embedded Helix scripts from Alpine 3.24 [PoC] Add opt-in scriptless Alpine 3.24 AMD64 Helix image Nov 21, 2026
@wfurt wfurt changed the title [PoC] Add opt-in scriptless Alpine 3.24 AMD64 Helix image Add opt-in scriptless Alpine 3.24 AMD64 Helix image Nov 21, 2026
@richlander

Copy link
Copy Markdown
Member

Why keep Python and the dev tools? I would assume we'd want to stop this image down a lot further.

@wfurt

wfurt commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

Why keep Python and the dev tools? I would assume we'd want to stop this image down a lot further.

we may shed some more packages but lot of the test workloads do depend on python ... like XUnit or various helper functions. so I would prefer to separate helix-scrip removal from other package changes. Maybe do it as opprtunity when Alpine 3.25 comes around.

@richlander

Copy link
Copy Markdown
Member

Works. We can wait until Alpine 3.25. That will be soon enough.

@wfurt

wfurt commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

I would still like to move forward with this so we can verify the Helix part. We can do the package reduction on the upgrade, or opportunistically at any time.

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