Repository navigation
Conversation
fd23607 to
33d0fb8
Compare
mayawang
left a comment
There was a problem hiding this comment.
LGTM as a start. Non-blocking: it needs #6/#7 first (fakes/mock-gemini), isn't wired into CI yet, and drives Substrate with a stand-in for AX rather than AX itself, so the HTTPS/egress-CA path the demo uses isn't exercised. Also, create errors go to /dev/null under set -e, so a failed create stops the suite silently.
|
Thanks! Pushed two quick updates:
|
The real-Gemini E2E sets AGY_RUNTIME_INSTALL=true, verifies the answer lands in AX_OUTPUT_FILE, and drops the auto-updater host from the egress policy since install-agy.sh now only downloads from storage.googleapis.com.
MushuEE
left a comment
There was a problem hiding this comment.
Agree with Maya that this is fine as a start, and that driving it through AX can come later. Two things I noticed reading run_e2e.sh at 5e21804 against google/ax main. I haven't run the suite.
1. The commands detection looks in the wrong file. Lines 51-57 grep pkg/apis/v1alpha1/ax.proto for repeated string commands, but on main that field is in task.proto. So against a current AX checkout the script picks command, which the runner no longer reads.
2. The goal doesn't reach the harness the way AX delivers it. The suite writes the goal as a Workspace file, points AX_GOAL_FILE at it through spec.env, and runs the harness as an explicit command. On main the runner always writes its own goal file from spec.goal.text and appends AX_GOAL_FILE=/run/ax/goal.md after the task's env (runner/runner.go, cmd.Env = append(commandEnv(...), files.env...)), so I'd expect the harness to see an empty goal and exit 2.
One change fixes both: set spec.goal.text and spec.config in the Task YAML and drop the explicit command. The runner then starts /usr/local/bin/ax-harness itself, which is the path real tasks use.
Adds
e2e/antigravity/, a portable KinD + Agent Substrate (gVisor) end-to-end test suite exercisingagents/antigravity(#8, #9) with a staticax-task-runnermounted read-only at/opt/ax(ImageVolumeSource) against an out-of-sandboxfakes/mock-geminiDeployment (#6, #7):ax-e2e):GEMINI_API_KEYdirect:streamGenerateContent?alt=ssestream →MOCK_OK)400rejected, non-zero exit)0authorized calls, non-zero exit)EgressPolicy→0calls reachmock-gemini)k8s.ioprovider injectsax-test/mock-gemini[key]onx-goog-api-key; verifies/proc/1/environinside the sandbox never holds the key)write_filefunctionCallwriting/workspace/tool_ok.txt+outputFilewriting/workspace/answer.mdFAULT=503transient retry and recovery viaPOST /_mock/confige2e/antigravity/k8s/mock-gemini.yaml,egress-policy-http.yaml,egress-policy-inject.yaml) and setup/usage docs (e2e/antigravity/README.md).