Repository navigation
release: publish ax-runner-volume, with a switch to mount it by default - #626
Conversation
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.
- 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.
Kind test of the runner volumeTested at 14e8d15 on a local Kind cluster (node v1.37.0, linux/amd64) with Substrate v1.0.0, set up by
For run 2, I set In both runs every task ran the runner from the mounted volume.
Also checked locally, against a throwaway registry:
Limits of this test:
|
aprajitaarora13
left a comment
There was a problem hiding this comment.
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).
|
Just validating against a non-kind GKE cluster for final checks. Then will cover nits and merge. |
GKE test of the runner volumeTested at 14e8d15 on a GKE cluster (1.37.1, linux/amd64 nodes) with Substrate v1.0.0, gVisor sandboxes. The images were built and pushed by this PR's Setup, test output, and manual checkSetup
TestThe 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 checkA task on the same no-runner image, with Limits
|
- 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.
Part of #609. Implements #625.
This is safe to merge now. Releases start publishing
ax-runner-volume, but nothing changes for tasks until theAX_RELEASE_RUNNER_VOLUMErepository variable is set. Turning it on by default waits on the "Ready when" items in #625.What
ax-runner-volume: releases also build and pushghcr.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.ax-server.yamlsetsAX_RUNNER_VOLUME_IMAGEto that digest only when the repository variableAX_RELEASE_RUNNER_VOLUMEistrue. Otherwise it stays empty, and tasks run the runner built into their image, as they do today.render-manifests.shrecords 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).After merge
ax-runner-volume, an org owner makes the package public.ax installsetting it), release manifests mount it by default aftergh 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 installgap is tracked in #625.Testing
shellcheckandactionlintare clean. Rendering locally producesvalue: ""with the switch off and the pinned digest with it on.