Skip to content

Upgrade to Substrate v0.6.0 - #25

Merged
igooch merged 2 commits into
mainfrom
substrate-v0.6.0
Oct 27, 2026
Merged

igooch merged 2 commits into
mainfrom
substrate-v0.6.0

Conversation

@igooch

@igooch igooch commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Bumps go.ate.dev/substrate to v0.6.0 and fixes what the upgrade broke. No Go API changes were needed.

Fixes #19

Changes

  • Label the ate-ant Namespace ate.dev/api-access=true. ate-system now ships NetworkPolicies that only let labeled namespaces reach ateapi. Without the label, every ateapi call from the controller (and loadgen) times out.
  • benchmarks/install.sh: pass the flags ate-setup deploy ate-system now requires.
    • --credential-provider='{"name":"k8s.io"}': needed for egress key injection.
    • --ingress-allowed-spiffe-ids: the router only admits listed clients. Defaults to the controller's router-client identity.
    • --snapshot-transfer-gsa-name: GCS snapshot transfers now run as a dedicated service account. The script creates it and grants bucket access.
    • --preview=PerTemplateSnapshotLocation: needed because our ActorTemplate sets its own snapshot bucket.
  • README: list these install flags under prerequisites.
  • benchmarks/README.md: add an "Upgrade Agent Substrate" section. It scales the WorkerPool to 0 before the upgrade, because v0.6.0's ateapi crash-loops on worker records written by older releases. Its install.sh step uses CREDS_SECRET and the credential provider restart from benchmarks: make install.sh reproduce credential and template rotations #34.
  • Makefile: make push now prints the image digest with Docker as well as Podman.

Testing

Follow-ups

  • Part of Update to the latest Substrate version #17.
    • To finish it, rebuild the ate-ant and ateworker-gvisor images with ./benchmarks/build-images.sh, which updates the digests pinned in install.sh and the README.
    • Until then, install.sh's default images predate v0.6.0, and the old worker image likely won't register with a v0.6.0 atelet.

- Label the ate-ant Namespace ate.dev/api-access=true. ate-system's
  NetworkPolicies only admit ateapi clients from labeled namespaces, so
  the controller's ateapi calls otherwise time out.
- install.sh: pass the flags `ate-setup deploy ate-system` now requires
  (--credential-provider, --ingress-allowed-spiffe-ids,
  --snapshot-transfer-gsa-name, and the PerTemplateSnapshotLocation
  preview gate), and create the snapshot transfer service account.
- README: document the required Substrate install flags.
- Makefile: read the pushed digest from RepoDigests so `make push`
  reports it with Docker, not only Podman.
Scale the WorkerPool to 0 before upgrading. A new ateapi can crash-loop
on worker records written by an older release.
@igooch
igooch merged commit 530c592 into main Oct 27, 2026
igooch added a commit that referenced this pull request Oct 27, 2026
Fixes #26. Stacked on #25.

`Manager.Resume` logged `ResumeActor` errors at Debug and returned nil.
When no worker had room, the controller went on to notify the actor, the
router parked the request and retried the resume, and the capacity
failure surfaced only as a slow or failed notify.

`ResumeActor` succeeds for an actor that is already running, so `Resume`
now returns every error. Callers already handle it. The controller
retries the event, and loadgen records the failure.

New actors still start through the router on their first `/work`.
Calling `ResumeActor` after `CreateActor` would surface capacity
failures on that path too. It's left out to keep this change small.

#27 depends on this to recognize a capacity failure.

Drafted with Claude Code, which wrote the change, the test, and this
description.
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.

Update the benchmarking demo cluster to the latest version of Substrate

2 participants