Skip to content

chore(substrate): bump substrate to v1.0.0-rc.1 and adapt to Substrate 1.0 changes - #553

Merged
siyuanfoundation merged 1 commit into
google:mainfrom
siyuanfoundation:bump
Nov 2, 2026
Merged

siyuanfoundation merged 1 commit into
google:mainfrom
siyuanfoundation:bump

Conversation

@siyuanfoundation

@siyuanfoundation siyuanfoundation commented Nov 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Upgrade go.ate.dev/substrate from v0.6.0 to v1.0.0-rc.1 (the published release tag of Substrate 1.0) and adapt AX's client, server, test fixtures, and E2E harness to breaking changes introduced in Substrate 1.0.

Why & What Changed

  1. Control API Package Migration (pkg/proto/ateapipb -> api/ateapi/v1):

    • Why: In Substrate 1.0 (#2996), public APIs were restructured under api/<api-name>/v1 with Go package package ateapi.
    • What: Updated imports across internal/substrate, internal/server, internal/controller, and test/e2e to go.ate.dev/substrate/api/ateapi/v1.
  2. CRD Version Promotion (ate.dev/v1alpha1 -> ate.dev/v1):

    • Why: Substrate 1.0 graduated WorkerPool, SandboxConfig, and CSIDriverConfig CRDs to ate.dev/v1 and no longer serves v1alpha1.
    • What: Updated test/e2e/manifests/workerpool.yaml to apiVersion: ate.dev/v1.
  3. Per-Template snapshotConfig.storageLocation Prohibition & Cleanup:

    • Why: In Substrate 1.0 (#3357), setting snapshotConfig.storageLocation on an ActorTemplate is forbidden (InvalidArgument: Forbidden) unless the PerTemplateSnapshotLocation preview gate is enabled. All workloads are intended to use the cluster-wide --snapshot-location.
    • What: Updated substrate.BuildActorTemplate to omit StorageLocation by default. Removed the obsolete and unused DefaultSnapshotsBucket constant. Updated unit and E2E assertions to verify SnapshotConfig presence and VOLUMES fidelity without requiring non-empty storage location.
  4. Kind Deployment CLI Migration (ate-setup --kind):

    • Why: In Substrate 1.0 (#3354), hack/install-ate-kind.sh was removed in favor of go run ./cmd/ate-setup --kind.
    • What: Updated hack/setup-e2e-kind.sh to call go run ./cmd/ate-setup --kind while maintaining fallback support if hack/install-ate-kind.sh is present.
  5. Contract & Documentation:

    • What: Updated docs/installation.md, internal/substrate/client.go (BuildActorTemplate), skills/substrate/SKILL.md, and test/e2e/README.md to explicitly clarify that snapshotsBucket / template-level snapshot storage can only be specified when Substrate's PerTemplateSnapshotLocation preview feature gate is enabled, otherwise Substrate rejects template creation with actor_template.snapshot_config.storage_location: Forbidden.

@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 for the thorough writeup! One cleanup, here or in a follow-up: AX_SNAPSHOTS_BUCKET does nothing now, so it can come out of deploy/ax-server.yaml, the e2e script and the install guide, along with DefaultSnapshotsBucket. Heads up this and #552 will need a small rebase whichever lands second.

…e 1.0

- Bump go.ate.dev/substrate from v0.6.0 to v1.0.0-rc.1.
- Migrate proto imports from pkg/proto/ateapipb to api/ateapi/v1.
- Promote WorkerPool manifest apiVersion from ate.dev/v1alpha1 to ate.dev/v1.
- Remove obsolete DefaultSnapshotsBucket constant and AX_SNAPSHOTS_BUCKET
  configuration from manifests, scripts, and docs.
- Omit StorageLocation by default in BuildActorTemplate so Substrate uses its
  cluster-wide snapshot location; document that setting snapshotsBucket requires
  the Substrate PerTemplateSnapshotLocation preview feature gate.
- Update hack/setup-e2e-kind.sh to use ate-setup --kind for Substrate 1.0.
- Update skills/substrate/SKILL.md, docs, and E2E assertions.
@siyuanfoundation

Copy link
Copy Markdown
Collaborator Author

AX_SNAPSHOTS_BUCKET

I have cleaned up AX_SNAPSHOTS_BUCKET and DefaultSnapshotsBucket.

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