Skip to content

release: publish ax-runner-volume, with a switch to mount it by default - #626

Merged
MushuEE merged 3 commits into
mainfrom
ci/release-runner-volume
Nov 18, 2026
Merged

MushuEE merged 3 commits into
mainfrom
ci/release-runner-volume

Conversation

@MushuEE

@MushuEE MushuEE commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #609. Implements #625.

This is safe to merge now. Releases start publishing ax-runner-volume, but nothing changes for tasks until the AX_RELEASE_RUNNER_VOLUME repository variable is set. Turning it on by default waits on the "Ready when" items in #625.

What

  • Publish ax-runner-volume: releases also build and push ghcr.io/google/ax/ax-runner-volume (Dockerfile.runner-volume, build: add the runner volume image #619) for linux/amd64 and linux/arm64. It goes through the same checks as the other images: existing images are reused, and each platform image is checked for its binary, here /ax-task-runner. The digest is listed in the release notes.
  • Off by default: the rendered ax-server.yaml sets AX_RUNNER_VOLUME_IMAGE to that digest only when the repository variable AX_RELEASE_RUNNER_VOLUME is true. Otherwise it stays empty, and tasks run the runner built into their image, as they do today.
  • Notes: render-manifests.sh records the value it rendered, and the release notes use it to say whether the runner volume is mounted by that release's manifest or is experimental and not enabled (pointing to Release the runner volume image (ax-runner-volume) #625).
  • Dry runs: they also render with the switch on and check that the pinned value lands in the manifest, so both paths run in CI.

After merge

  1. After the first release that pushes ax-runner-volume, an org owner makes the package public.
  2. Once the Release the runner volume image (ax-runner-volume) #625 "Ready when" items are done (including ax install setting it), release manifests mount it by default after gh variable set AX_RELEASE_RUNNER_VOLUME --repo google/ax --body true.

The Claude Code task image stops working when the runner volume is on, because the mount replaces its claude-code-runner. It is out of scope for GA (#625).

Review

A subagent review found no blockers. Its should-fix items are addressed in the second commit: the notes now come from the rendered value, the on path is dry-run, the notes no longer invite opting in, and stale comments are fixed. The ax install gap is tracked in #625.

Testing

  • shellcheck and actionlint are clean. Rendering locally produces value: "" with the switch off and the pinned digest with it on.
  • This PR's dry run (run 44010767095) built all three images, checked that each platform image holds the right binary, reused all three with the same digests on rerun, and rendered the manifest with the runner volume off.

Releases also build and publish ghcr.io/google/ax/ax-runner-volume
(Dockerfile.runner-volume, #619) for linux/amd64 and linux/arm64, with
the same per-platform binary check as the other images, and list its
digest in the release notes.

The rendered ax-server.yaml sets AX_RUNNER_VOLUME_IMAGE to that digest
only when the repository variable AX_RELEASE_RUNNER_VOLUME is true;
otherwise it stays empty and tasks run the runner baked into their
image, as today.

Part of #625.
@MushuEE
MushuEE marked this pull request as ready for review November 17, 2026 03:47
- Release notes read the AX_RUNNER_VOLUME_IMAGE that render-manifests.sh
  rendered (recorded in images.env) instead of parsing the YAML.
- When the runner volume is off, the notes call it experimental and
  point to #625 rather than inviting users to opt in.
- Dry runs also render with the runner volume on and check the pinned
  value, so the switch's on path runs in CI.
- Fix comments and docs that still said the manifest always leaves it
  empty or pins only two images; note that ax install does not set it.
@MushuEE

MushuEE commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator Author

Kind test of the runner volume

Tested at 14e8d15 on a local Kind cluster (node v1.37.0, linux/amd64) with Substrate v1.0.0, set up by make e2e-setup.

Run Runner volume mounted by ax-server Result
1 Built by hack/setup-e2e-kind.sh from Dockerfile.runner-volume make e2e-run: 11/11 pass
2 Built by this PR's hack/release/publish-images.sh (multi-platform index, v0.0.0-dryrun, pushed to the Kind registry) make e2e-run: 11/11 pass

For run 2, I set AX_RUNNER_VOLUME_IMAGE on the ax-server deployment to the index digest the release script pushed (ax/ax-runner-volume@sha256:b3565b73170ea3cf68bb2ffda824841f7e1784a4020a26eb6603cf683dd0ea62) and reran the suite.

In both runs every task ran the runner from the mounted volume. TestE2E_PureImageLauncher checks the mount directly, on an image with no runner in it:

  • there is no /usr/local/bin/ax-task-runner in the image
  • ax-task-runner is executable at the runner mount path
  • the mount is read-only
  • the launcher ran with the goal and session, and its output survived suspend and resume without the launcher running again

Also checked locally, against a throwaway registry:

  • The ax-runner-volume image holds only /ax-task-runner: an x86-64 binary in the linux/amd64 image and an aarch64 binary in the linux/arm64 image.
  • A rerun of publish-images.sh reused all three images with the same digests.
  • render-manifests.sh renders value: "" with the switch off and the pinned digest with AX_RENDER_RUNNER_VOLUME=true; that line is the only difference between the two manifests.

Limits of this test:

  • Only linux/amd64 was mounted and run. The arm64 image was inspected but not run.
  • This was Kind only, not a cloud cluster.
  • On my machine publish-images.sh exits 1 at its per-platform binary check, after pushing all three images: docker create --platform linux/arm64 <index digest> fails with cannot overwrite digest once the amd64 image for the same digest has been pulled. My Docker daemon uses the classic overlay2 image store. The check passes in this PR's CI dry run, and the check predates this PR. I verified the binaries per platform by manifest digest instead.

@aprajitaarora13 aprajitaarora13 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Safe to merge with AX_RELEASE_RUNNER_VOLUME off by default, and the image build, per-platform binary verification, and rerun checks look solid. A few minor non-blocking comments inline (doc wording cleanup + post-#634 note, sed -i portability on macOS, and covering both switch states in dry runs).

Comment thread docs/releasing.md Resolved
Comment thread docs/releasing.md Resolved
Comment thread hack/release/render-manifests.sh Resolved
Comment thread .github/workflows/release.yml Resolved
Comment thread hack/release/create-release.sh Resolved
@MushuEE

MushuEE commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator Author

Just validating against a non-kind GKE cluster for final checks. Then will cover nits and merge.

@MushuEE

MushuEE commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator Author

GKE test of the runner volume

Tested at 14e8d15 on a GKE cluster (1.37.1, linux/amd64 nodes) with Substrate v1.0.0, gVisor sandboxes. TestE2E_PureImageLauncher passes, and a manual check in a task shows PID 1 is the runner from the mounted volume.

The images were built and pushed by this PR's hack/release/publish-images.sh, and ax-server was deployed from the manifest hack/release/render-manifests.sh renders with AX_RENDER_RUNNER_VOLUME=true, so this is the "switch on" path of a release.

Setup, test output, and manual check

Setup

  • Substrate v1.0.0 installed with ate-setup deploy ate-system from its published images, --sandbox-classes=gvisor, with ax-system/ax-server as a bootstrap owner and in the ingress SPIFFE allowlist.

  • publish-images.sh v0.0.0-pr626 pushed ax-server, ax-task-runner, and ax-runner-volume (linux/amd64 and linux/arm64) to a private registry.

  • AX_RENDER_RUNNER_VOLUME=true render-manifests.sh rendered ax-server.yaml. The deployed ax-server had:

    image=<registry>/ax-server@sha256:9d12bf890d29a9a3367b6c29a9c0454e2972592a1773d8cde83bbe20ca2c7927
    AX_DEFAULT_TASK_IMAGE=<registry>/ax-task-runner@sha256:41e3116e65b6df0d927cc8766aa1389604d38d59d5e9cdda372db707119b06be
    AX_RUNNER_VOLUME_IMAGE=<registry>/ax-runner-volume@sha256:3fa74f78b6d75772c7916a61f59a649690a0da1d0caba72fdebee9f895d2b42d
    
  • A WorkerPool of 2 gVisor workers, and deploy/postgres.yaml with a storage class set (the cluster has no default class).

Test

=== RUN   TestE2E_PureImageLauncher
--- PASS: TestE2E_PureImageLauncher (11.83s)
PASS
ok  	github.com/google/ax/test/e2e	15.158s

The test runs a task on an image with no runner in it and checks that the runner is mounted, executable, and read-only, and that the launcher's output survives suspend and resume without the launcher running again.

Manual check

A task on the same no-runner image, with debug: true, then ax ssh:

# ls -la /opt/ax
total 14349
drwxr-xr-x 2 root root     4096 Nov 18 21:43 .
drwxr-xr-x 1 root root     4096 Nov 18 21:46 ..
-rwxr-xr-x 1 root root 14684320 Nov 18 21:30 ax-task-runner
# ls /usr/local/bin/ax-task-runner
ls: cannot access '/usr/local/bin/ax-task-runner': No such file or directory
# touch /opt/ax/x
touch: cannot touch '/opt/ax/x': Read-only file system
# cat /workspace/.ax/output
goal=summarize-the-repo
session=session-manual
# cat /proc/1/cmdline | tr '\0' ' '; echo
/opt/ax/ax-task-runner

Limits

  • Only TestE2E_PureImageLauncher was run on GKE, not the full suite. TestE2E_GatewayEgress needs setup (credential policy, echo server, CA trust) that was not done on this cluster.
  • Only linux/amd64 was run. The arm64 image has not been mounted or run anywhere.
  • publish-images.sh exited 1 at its per-platform binary check after pushing all three images, for the local Docker reason in my earlier comment.

- render-manifests.sh rewrites images.env through a temp file instead of
  sed -i, which differs between GNU and BSD (macOS) sed.
- create-release.sh unsets AX_RUNNER_VOLUME_IMAGE before sourcing
  images.env and reads it without a default, so an images.env that
  render-manifests.sh has not updated fails instead of taking an
  exported value.
- Dry runs render with the runner volume off and on and check the
  recorded value and the manifest for each, so both paths stay covered
  whichever way AX_RELEASE_RUNNER_VOLUME is set.
- docs/releasing.md: ax install can opt in with --runner-volume-image
  (#634) but does not enable it by default; fix the repeated clause in
  the package visibility note.
@MushuEE
MushuEE merged commit 1e27c97 into main Nov 18, 2026
12 checks passed
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