Skip to content

hack/hero-demo: follow tasks to completion in Steps 3, 4 and 5 - #671

Merged
yongruilin merged 1 commit into
google:mainfrom
yongruilin:ax-fix-demo
Nov 20, 2026
Merged

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

Conversation

@yongruilin

Copy link
Copy Markdown
Collaborator

A live run of the hero demo always failed at the starter task: since #639 a task ends when its command exits, and a finished task refuses ax ssh, ax suspend and ax resume. The harness now waits on each task's state.

  • Starter task (Step 3): waits until the task is Completed with output. The suspend/resume after its turn is removed, because a finished task refuses it.
  • Custom image task (Step 4): now runs, in a plain Python image. It is suspended and resumed while still running, then runs the workspace's unit tests.
  • Promotion (Step 5): also waits until the promoted task has completed on the remote cluster.

Note: workspace.yaml changed (git init is optional, since setup also runs in the Python image), so delete an existing hero-demo-ws once. Run live on two Kind clusters, three times in a row without a failure.

A finished task refuses ax ssh, ax suspend and ax resume, so the steps
wait on its state. Step 4 now runs, and suspends its task mid-run.

@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 Yongrui! This is the fix the demo needs, nice to see Step 4 live too

@yongruilin
yongruilin merged commit 2701b10 into google:main Nov 20, 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.

2 participants