Skip to content

docs: fix the quick start (WorkerPool, resume after apply) and examples - #505

Merged
mayawang merged 8 commits into
google:mainfrom
cloudonly:docs/quick-start-workerpool-and-examples
Nov 4, 2026
Merged

mayawang merged 8 commits into
google:mainfrom
cloudonly:docs/quick-start-workerpool-and-examples

Conversation

@mayawang

Copy link
Copy Markdown
Collaborator

Opened on behalf of @cloudonly while PR creation is limited to collaborators (#448). All commits are theirs. @eren23 verified the branch on a kind cluster.

Fixes #437 (the quick start never creates a WorkerPool, so the first Task fails with ResourceExhausted), #426 (the quick start shows Running, but new tasks start Suspended) and #425 (docs/manifests.md links to an example that doesn't exist):

Docs and examples only.

@cloudonly

Copy link
Copy Markdown
Contributor

Thanks for opening this and for the schema fix in f93cf54 — that covered the singular binding. I pushed one small follow-up (cf42be4): the header comment still claimed the filename keeps the docs/manifests.md link resolving, but #496 removed that link, so it now points at "Binding a workspace" and examples/task.yaml instead.

On the docs/manifests.md paragraph: #496 already rewrote it on main, so I don't think this PR needs to touch it — nothing left to adjust there from my side.

One heads-up while checking: demo.sh on main still uses the workspaces: list (line 133; untouched by this PR — our demo.sh change is only the header outline). Looks like a #496 leftover worth a pass whenever convenient.

@rakyll

rakyll commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

An alternative idea: Allow an actor template when starting a Task so the user can bring all the custom configuration through the template and we don't have to replicate the Substrate API into AX.

See #491.

@mayawang

Copy link
Copy Markdown
Collaborator Author

@cloudonly #508 replaced ko with make images and touched the README and Makefile, so this needs a rebase on main now. Thanks!

@cloudonly

Copy link
Copy Markdown
Contributor

Rebased onto main (677da8d); the branch is now up to date and mergeable. Changes since the last review:

  • examples/workerpool.yaml is updated for Substrate v0.6.0: it names sandboxClasses (required by the CRD), uses ko://go.ate.dev/substrate/cmd/ateworker-gvisor, and drops the ate.dev/substrate-version nodeSelector. I checked the manifest against the v0.6.0 CRD schema, but I have not applied it on a real cluster, so the nodeSelector removal is unverified there.
  • README: the WorkerPool step is now step 4 and "Run your first task" is step 5, matching the new quick start.
  • demo.sh: only the header comment is left; demo.sh: use spec.workspace and the server's default task image #533 already fixed the workspace: binding.

The Go / E2E / Check Binaries workflows are waiting for approval ("action required") on this fork PR. Could someone approve them? Thanks @mayawang.

@mayawang

Copy link
Copy Markdown
Collaborator Author

Thanks for rebasing! Since a task takes one workspace now, multi-workspace.yaml is just a repo example. Could you rename it (repo-workspace.yaml?) or drop it, since examples/task.yaml covers the same thing?

@mayawang

Copy link
Copy Markdown
Collaborator Author

Small update: we're consolidating the examples around one realistic one (#513), so please drop multi-workspace.yaml rather than rename it. The WorkerPool example and the rest look good.

@cloudonly
cloudonly force-pushed the docs/quick-start-workerpool-and-examples branch from 677da8d to 92cedf0 Compare October 30, 2026 08:13
@cloudonly

Copy link
Copy Markdown
Contributor

Done — dropped examples/multi-workspace.yaml and rebased onto main (92cedf0). The WorkerPool example is unchanged. Thanks!

@mayawang

mayawang commented Nov 2, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks for sticking with this! One more round now that #513 landed: it replaces examples/task.yaml with simple.yaml, so the quick start should use that. And since the README is meant to stay the short path, could the WorkerPool step be a couple of lines pointing to examples/workerpool.yaml and the install guide, instead of the ko walkthrough? The resume fix is great as is.

…ti-workspace example

The quick start jumped from deploying the control plane straight to running
a task, but nothing creates a WorkerPool: the first ax resume fails with
ResourceExhausted (no free workers available) until one is applied. Add a
step that applies examples/workerpool.yaml, with guidance on the
ate.dev/substrate-version nodeSelector label and the ko apply flow from a
Substrate checkout.

New tasks are stored Suspended and only start on ax resume, so the quick
start now resumes task123 after applying it instead of showing Running
straight away, and notes that a slow first resume does not mean failure.

docs/manifests.md links to examples/multi-workspace.yaml, which did not
exist; add it as a Task binding two Workspaces (one git-backed, one built
from inlined files).
google#496 moves AX to one workspace per task, so the example linked from
docs/manifests.md now shows a Task bound to a single git-backed
Workspace instead of composing two. The filename is kept so the link
keeps resolving.
google#496 removed the docs/manifests.md link to this file, so the header
comment no longer needs to claim the filename keeps that link
resolving.
Substrate v1.0.0-rc.1 serves WorkerPool only as ate.dev/v1.
… step

examples/task.yaml was replaced by simple.yaml in google#513. The WorkerPool step
now links to examples/workerpool.yaml and the installation guide instead of
walking through ko.
@cloudonly
cloudonly force-pushed the docs/quick-start-workerpool-and-examples branch from 92cedf0 to e1bbcb9 Compare November 3, 2026 07:13
@cloudonly

Copy link
Copy Markdown
Contributor

Thanks @mayawang, updated and rebased onto main (1dd2e92, head e1bbcb9):

  • The quick start now uses examples/simple.yaml (ax resume task simple-task after apply).
  • The WorkerPool step is two lines pointing to examples/workerpool.yaml and the install guide; the ko walkthrough is gone.
  • Also changed examples/workerpool.yaml to apiVersion: ate.dev/v1, since the Substrate v1.0.0-rc.1 bump only serves WorkerPool as v1. I checked this against the rc.1 source, not on a live cluster.

AI disclosure: These changes and this reply were prepared with assistance from Claude.

@mayawang

mayawang commented Nov 3, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks @cloudonly, this reads really well now. Re-checked, LGTM!

@mayawang
mayawang merged commit 2187dd4 into google:main Nov 4, 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.

Quick start never creates or mentions a WorkerPool, so the first Task fails with ResourceExhausted

3 participants