Skip to content

demo.sh: use spec.workspace and the server's default task image - #533

Merged
yongruilin merged 1 commit into
google:mainfrom
yongruilin:ax-demo-fix
Oct 29, 2026
Merged

yongruilin merged 1 commit into
google:mainfrom
yongruilin:ax-demo-fix

Conversation

@yongruilin

Copy link
Copy Markdown
Collaborator

demo.sh still declared the spec.workspaces list that #496 replaced with a single spec.workspace, so ax apply rejected the demo Task with unknown field "workspaces".

  • Bind the demo workspace with spec.workspace. The path: "/workspace" override is dropped, since /workspace is now the default.
  • Stop pinning gcr.io/dberkov-gke-dev3/ax-task-runner@sha256:c81cfd6e…. The image can't be pulled anonymously, and its runner predates api,runner: bind at most one workspace per task #496 and exits on the workspace field the server now sends in AX_TASK_YAML. The demo now sets spec.image only when AX_TASK_IMAGE is given, so by default the server runs its default task image, which make deploy and the kind e2e setup set to the ax-task-runner they pushed. AX_IMAGE_REPO no longer affects the demo.

Updates #424.

ax apply rejected the demo Task: google#496 replaced spec.workspaces with
spec.workspace. The pinned runner image predates google#496 and fails on the
new field, so leave spec.image unset unless AX_TASK_IMAGE is given.

@mayawang mayawang 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, thanks! Using the server's default task image here is nice now that make deploy pins it.

@yongruilin
yongruilin merged commit 8440ae6 into google:main Oct 29, 2026
10 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.

3 participants