Skip to content

hack/hero-demo: check the warm workspace snapshot in Step 2 - #663

Merged
YoyinZyc merged 1 commit into
google:mainfrom
YoyinZyc:pre-warm
Nov 20, 2026
Merged

YoyinZyc merged 1 commit into
google:mainfrom
YoyinZyc:pre-warm

Conversation

@YoyinZyc

Copy link
Copy Markdown
Collaborator

Workspace pre-warming is on by default since #651, so Step 2 of the hero demo no longer has to be a stub.

  • cleanup: drop temporary feature gate firstUnimplementedWorkspaceField.
  • docs/manifests.md: spec.profile and spec.setup.gateway are available; add a section on how pre-warming works.
➜  ax git:(pre-warm) ✗ RUN_LIVE_STEPS=1 ./hack/hero-demo/run.sh --step 2
==> [Step 2] Warm Workspace Snapshot

================================================================================
 AX v0.1 HERO DEMO SCOREBOARD (live)
================================================================================
  2. Warm Workspace Snapshot         | 🟢 PASS | Workspace hero-demo-ws is Ready; spec.setup is captured in snapshot tag ws-979fe3c1ed8396bb-c31e1ab661cd5f8a-r1
================================================================================

Workspace pre-warming is on by default since google#651, so Step 2 of the hero
demo no longer has to be a stub.

- hack/hero-demo: workspace.yaml gets a spec.profile that matches
  task-starter.yaml, so the starter task starts from the workspace's
  snapshot. run.sh waits for the apply, which pre-warms, and passes when
  the workspace reports SnapshotReady. STARTER_IMAGE now applies to both
  manifests.
- ax apply: CreateWorkspace returns only once the workspace is pre-warmed,
  so it gets lifecycleRPCTimeout (5m) instead of the 30s shared by the
  rest of the apply.
- ax-server: drop firstUnimplementedWorkspaceField. It rejected
  spec.profile and spec.setup.gateway until the SetupCoordinator was
  wired, which it now is whenever the runner server is on.
- docs/manifests.md: spec.profile and spec.setup.gateway are available;
  add a section on how pre-warming works.

@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 Yuchen! Great to see Step 2 go green. Approving now, fine to merge once CI passes

@YoyinZyc
YoyinZyc merged commit b33d8cf into google:main Nov 20, 2026
12 checks passed
@rakyll rakyll mentioned this pull request Nov 21, 2026
4 of 6 tasks
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