Skip to content

feat(runners): agent images for linux/arm64 - #755

Merged
NOX73 merged 5 commits into
developfrom
feature/agent-images-arm64
Nov 14, 2026
Merged

NOX73 merged 5 commits into
developfrom
feature/agent-images-arm64

Conversation

@NOX73

@NOX73 NOX73 commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator

What

Agent images for linux/arm64 (task #226).

  • Runner (runner/internal/docker): container.start pulls the daemon's own platform (from /info) and falls back to linux/amd64 only when the pull says the image lacks that platform ("no matching manifest" / "does not provide the specified platform"). Other pull failures are not retried. The agent container, the proxy sidecar and the scrub container are created for the platform of the image the daemon holds (ImageInspect), replacing the fixed linux/amd64 of fix(sessions): name the connection a blocked launch is waiting on #227.
  • Registry: optional platforms field in config/agent_runtimes.json (default both). No runtime sets it: every CLI installs for arm64 (Dockerfiles already map TARGETARCH; npm packages of Codex, Grok, Copilot ship linux-arm64; Kiro, Antigravity have arm64 checksums; Claude/AWS CLI/Cursor mapped by arch). Registry test validates the field.
  • CI: docs/operations/patches/images-arm64.patch changes images.yml (QEMU, platforms per runtime from the registry, a cache scope per image, 60 min timeouts). It is a patch because agents can't push .github/workflows/. Apply with git apply docs/operations/patches/images-arm64.patch.
  • Docs: DESIGN.md §6.9.3 and a §15 row, the runners user guide, the registry doc, CHANGELOG.

How to test

  • cd runner && go test ./internal/docker/ (new cases: amd64 daemon, unspecified daemon, arm64 daemon with and without arm64 image, no retry on a refused pull).
  • Until the patch is applied, published images stay amd64-only; arm64 machines run them under emulation as before. After it and an image build, check each manifest lists both platforms, and run a session on an arm64 machine.

@aixle-com aixle-com Bot 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.

Reviewed head 5e73450 against the task, DESIGN.md §6.9.3/§15, the registry doc and the repo's runner patterns. No remarks that need PR comments. The runner falls back to amd64 only on a missing-platform pull error. Containers are created for the platform of the image the daemon holds. The arm64 probe skip is documented in the Dockerfile. Tests cover the amd64, unspecified, arm64 and amd64-only-image cases, and a refused pull is not retried.

@NOX73
NOX73 merged commit d2d67b1 into develop Nov 14, 2026
17 checks passed
@NOX73
NOX73 deleted the feature/agent-images-arm64 branch November 14, 2026 16:27
artempartos added a commit that referenced this pull request Dec 2, 2026
…#983)

The agent images and aixle-runner have been multi-arch since #755, but the
other three images a release publishes were amd64 only, so an arm64 host ran
them under emulation.

The Go images cross-compile on the build platform and need QEMU only for the
final stage's user setup. The web image builds natively per platform, arm64 on
GitHub's arm64 runner because a Rails build under QEMU would not finish in the
job's time, pushes by digest, and a Publish Web job tags the index once both
builds pass. Each image gets its own GHA cache scope instead of sharing the
default one.

Signed-off-by: Artem Petrov <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

1 participant