Skip to content

chore(substrate): bump to v1.0.0 and install it from release images images E2E - #561

Merged
yongruilin merged 1 commit into
mainfrom
upgrade
Nov 9, 2026
Merged

yongruilin merged 1 commit into
mainfrom
upgrade

Conversation

@rakyll

@rakyll rakyll commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Bump go.ate.dev/substrate from v1.0.0-rc.1 to v1.0.0. AX code is unchanged. Between rc.1 and 1.0 the Control API changed only in comments, plus three stricter validations:

  • Capabilities.add takes only an allowlist (AX sets none).
  • VolumeMount.mount_path must not be /dev, /proc, /sys or under them (AX mounts only /workspace).
  • SnapshotConfig.storage_location segments may contain only [A-Za-z0-9_-] and may not be "atespaces". AX passes snapshotsBucket through unchecked, so Substrate rejects an invalid value at template creation.

E2E now installs Substrate only from its published release images in ghcr.io/agent-substrate/substrate and never builds it:

  • hack/setup-e2e-kind.sh stops early unless SUBSTRATE_REF is a release tag (vX.Y.Z or vX.Y.Z-rc.N), the Substrate checkout is clean at that tag, its ate-setup supports --image-repo, and every image the install uses exists under the tag. It installs through ATE_IMAGE_REPO/ATE_IMAGE_TAG and pins the WorkerPool worker image by digest, using an anonymous registry token. The ko source build, the local registry cache (SUBSTRATE_IMAGE_CACHE_DIR) and the older install-ate.sh paths are removed. SUBSTRATE_IMAGE_REPO points at a mirror.
  • Makefile: remove test-e2e-head; Substrate main has no published images.
  • e2e.yml: remove the Substrate image cache steps. The nightly run (06:00 UTC) now tests the go.mod release instead of Substrate main. The workflow_dispatch input takes a release tag.

go.ate.dev/substrate must therefore stay on a release tag; a pseudo-version fails E2E setup.

Update test/e2e/README.md and skills/substrate/SKILL.md to match.

…n E2E

Bump go.ate.dev/substrate from v1.0.0-rc.1 to v1.0.0. AX code is
unchanged. Between rc.1 and 1.0 the Control API changed only in
comments, plus three stricter validations:
- Capabilities.add takes only an allowlist (AX sets none).
- VolumeMount.mount_path must not be /dev, /proc, /sys or under them
  (AX mounts only /workspace).
- SnapshotConfig.storage_location segments may contain only
  [A-Za-z0-9_-] and may not be "atespaces". AX passes snapshotsBucket
  through unchecked, so Substrate rejects an invalid value at template
  creation.

E2E now installs Substrate only from its published release images in
ghcr.io/agent-substrate/substrate and never builds it:

- hack/setup-e2e-kind.sh stops early unless SUBSTRATE_REF is a release
  tag (vX.Y.Z or vX.Y.Z-rc.N), the Substrate checkout is clean at that
  tag, its ate-setup supports --image-repo, and every image the install
  uses exists under the tag. It installs through
  ATE_IMAGE_REPO/ATE_IMAGE_TAG and pins the WorkerPool worker image by
  digest, using an anonymous registry token. The ko source build, the
  local registry cache (SUBSTRATE_IMAGE_CACHE_DIR) and the older
  install-ate.sh paths are removed. SUBSTRATE_IMAGE_REPO points at a
  mirror.
- Makefile: remove test-e2e-head; Substrate main has no published
  images.
- e2e.yml: remove the Substrate image cache steps. The nightly run
  (06:00 UTC) now tests the go.mod release instead of Substrate main.
  The workflow_dispatch input takes a release tag.

go.ate.dev/substrate must therefore stay on a release tag; a
pseudo-version fails E2E setup.

Update test/e2e/README.md and skills/substrate/SKILL.md to match.
@rakyll rakyll changed the title chore(substrate): bump to v1.0.0 and install it from release images i… chore(substrate): bump to v1.0.0 and install it from release images images E2C Nov 7, 2026
@rakyll
rakyll marked this pull request as ready for review November 7, 2026 18:53
Comment thread hack/setup-e2e-kind.sh
WORKER_KO_REF="$(awk '$1 == "workerImage:" { print $2; exit }' "${E2E_DIR}/manifests/workerpool.yaml")"
WORKER_IMAGE="${WORKER_KO_REF##*/}"
# Every Substrate image the Kind install and the WorkerPool use.
SUBSTRATE_IMAGES=(ateapi atecontroller atelet atenet "${WORKER_IMAGE}" podcertcontroller objectstore-plugin envoy-dataplane)

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.

v1.0.0's kind install also deploys ate-idp-server. A mirror without it passes this check and then fails mid-install. Add it to the list?

Comment thread skills/substrate/SKILL.md
| `go.ate.dev/substrate` | `v1.0.0` | Control API protos `api/ateapi/v1` (atespaces, actor templates, actors, suspend/resume) | `internal/substrate`, `internal/server`, `internal/controller`, `test/e2e` |
| `github.com/agent-substrate/env` | `v0.0.11-0.20260912052224-4468a200b170` (pseudo-version) | Guest services served inside the sandbox (process exec + file system gRPC) and `proto/ateenv/v1alpha` | `internal/guest`, `internal/metadata` |

There is no `replace` directive for either module. Local hacking against a

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.

This still says "local hacking goes through SUBSTRATE_DIR" in E2E. Maybe drop or reword this?

Comment thread hack/setup-e2e-kind.sh
cd "${SUBSTRATE_WORK_DIR}"
ATE_IMAGE_REPO="${SUBSTRATE_IMAGE_REPO}" ATE_IMAGE_TAG="${SUBSTRATE_REF}" \
go run ./cmd/ate-setup --kind --kind-cluster-name="${KIND_CLUSTER_NAME}" --kubeconfig="${KUBECONFIG}" \
deploy ate-system \

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.

v1.0.0's ate-setup defaults to --sandbox-classes=gvisor,microvm but ur WorkerPool only uses gVisor iiuc. Could we set ATE_INSTALL_SANDBOX_CLASSES=gvisor here?

@yongruilin yongruilin 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.

The bump itself lgtm. I left some comments, but I'm fine to address them as follow-up.

@yongruilin yongruilin changed the title chore(substrate): bump to v1.0.0 and install it from release images images E2C chore(substrate): bump to v1.0.0 and install it from release images images E2E Nov 9, 2026
@yongruilin

Copy link
Copy Markdown
Collaborator

Let's merge this and iterate later.

@yongruilin
yongruilin merged commit ecb75a3 into main Nov 9, 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