Repository navigation
feat(antigravity): add pure Dockerfile and multi-arch build/verify CI - #9
Conversation
b612253 to
4a7fc6d
Compare
mayawang
left a comment
There was a problem hiding this comment.
Before merge, two decisions: (1) the default image has no agy, so every task downloads it at start. Under the demo's Gateway (generativelanguage only) that fails, and allowing storage.googleapis.com opens all of GCS. Preinstalling a pinned version is cleaner, but that ships the agy binary in a public image, so we need a licensing answer first. (2) The image has no ax-task-runner or ENTRYPOINT, and expects AX to mount a runner at /opt/ax and write AX_GOAL_FILE, which AX main doesn't do yet. Let's agree that contract with @itssimrank (runner injection) before a ghcr name is published. Non-blocking: route inputs.agy_version through env:, and CI builds latest, so builds aren't reproducible.
|
Update: the Antigravity runner approach is being worked out separately (@rakyll and @aprajitaarora13 are on it), so let's hold off on shipping the agy binary in the image until that lands. |
61a4cc1 to
dfa51ae
Compare
MushuEE
left a comment
There was a problem hiding this comment.
The image shape matches what the mounted runner expects on google/ax main: no runner in the image and the launcher at /usr/local/bin/ax-harness. Three things that would help us get to an image we can validate. I'm not weighing in on preinstall versus runtime install here, since that is on hold with the runner discussion.
1. Put the runtime install directory on PATH in the image. The harness adds ${PWD}/.ax/bin to PATH only for its own process. AX doesn't run the harness for a task with no goal, and an ax ssh shell never goes through it (google/ax#632), so a runtime-installed agy isn't found in an interactive session. Could the Dockerfile set it, for example ENV PATH=/workspace/.ax/bin:${PATH}? That assumes the workspace is mounted at /workspace, which is the default but can be changed per task.
2. Say in the README that the image needs the runner volume. The image only starts when ax-server is configured with a runner volume image (AX_RUNNER_VOLUME_IMAGE). google/ax#626 publishes ax-runner-volume but leaves it off in the release manifests by default. Without it AX starts /usr/local/bin/ax-task-runner, which this image doesn't have, and the task fails to start with an error that doesn't point at the cause.
3. Add a minimal Task example for the default image. With no agy in the image, a task has to set AGY_RUNTIME_INSTALL=true in spec.env and have egress to storage.googleapis.com. A short example in the README (image by digest, spec.goal.text, that env var, and the egress it needs) would give us one known-good way to validate the image end to end.
|
Thanks @MushuEE , all three done in 9ec8bf5:
|
|
Following up on my earlier review, where I left preinstall versus runtime install open. For the first pass I think we will likely need to bake Why: with runtime install, every task needs Suggested changes:
Still open: shipping the |
|
Status: ready for review. All of @MushuEE's points are in:
Published images stay runtime-install until #15 is answered (#11 builds antigravity with Merge order for the rc: this first, then #11. |
|
Tested the pinned agy (1.5.10) end to end against real Gemini with my API key on KinD, from this PR's head (5ee9b46). Both builds ran the hero-demo task: "Add a subtract(a, b) function to /workspace/app/math_utils.py and a unit test in test_math.py."
Note: this used the E2E stand-in runner. The full current-AX run comes with the hero demo validation (#16) after the rc tag. |
MushuEE
left a comment
There was a problem hiding this comment.
Looks great, now, thanks for validating in test.
The merge-base changed after approval.
The merge-base changed after approval.
…X usage - Dockerfile: add /workspace/.ax/bin to PATH so ax ssh sessions, which never run the launcher, find a runtime-installed agy. - README: the image needs ax-server's runner volume, a minimal Task and Gateway example for the default image, and how to set up agy in an ax ssh session.
… on PATH, verify both builds - Dockerfile: ARG AGY_VERSION defaults to the pinned version and is recorded as AGY_VERSION and an io.agentexecutor.agy.version label. CI checks it equals PINNED_VERSION in install-agy.sh. - /workspace/.ax/bin goes after the system paths in the image and in ax-harness, so a leftover runtime install never shadows an agy installed in the image. - verify_image.sh checks a built image (bundled or runtime); CI builds and verifies both explicitly, independent of the Dockerfile default. - README covers both builds and notes that published images are runtime-install until agentexecutor#15 is answered.
The default build installs the pinned agy into /usr/local/bin, so tasks need no storage.googleapis.com egress and ax ssh sessions have agy right away. Published images stay runtime-install (release.yaml builds PREINSTALL_AGY=false) until agentexecutor#15 is answered.
5ee9b46 to
05d0142
Compare
Trial: a task on the published
|
Adds
agents/antigravity/Dockerfileand extends.github/workflows/antigravity.yamlwith nativelinux/amd64andlinux/arm64build and purity verification (no image push yet):ax-task-runnerbaked in and no forcedENTRYPOINT, ready for AX to mount the static runner read-only at/opt/ax.ARG PREINSTALL_AGY=false): Ships onlydebian:bookworm-slimpackages,/usr/local/share/ax/install-agy.sh, and/usr/local/bin/ax-harness(AGY_CLI_DISABLE_AUTO_UPDATE=true) so no proprietary binary is bundled in the default image (ax-harnessinstallsAGY_VERSIONon startup).--build-arg PREINSTALL_AGY=true): Pre-installsagyat build time with SHA-512 verification for local/airgapped E2E test environments.ubuntu-24.04+ubuntu-24.04-arm, build-only): Verifies the default image contains neitherax-task-runnernoragy, smoke-testsax-harness/install-agy.sh/git/python3, and runs an ephemeral localPREINSTALL_AGY=truebuild (agy --version, removed at job end).