Registry Mirror
Skip to content

Conversation

@orangeCatDeveloper

@orangeCatDeveloper NekoPunch (orangeCatDeveloper) commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #794

A crashed actor makes --delete-all abort mid-teardown, leaving the ActorTemplate, atespace and ate-system behind; the next --deploy-demo-counter keeps the existing template, so the cluster goes on serving the stale golden snapshot.

prepare_actor_for_delete treats STATUS_CRASHED as unexpected and returns 1, which errexit turns into a hard abort, even though DeleteActor accepts CRASHED and is idempotent for an actor already marked DELETING (workflow_delete.go). Teardown now treats crashed and already-deleting actors as deletable as-is.

The demo flag dispatch had the mirror-image defect: handlers ran from an if condition, which suppresses errexit for their whole call tree, so this same teardown and failed deploys like the issue's immutable-spec apply exited 0. Handlers now run as plain commands and report an unclaimed flag through ate_demo_flag_unhandled; the Jupyter handler follows the same contract.

Repro: deploy the counter demo, resume an actor, delete its worker pod, wait for the syncer to mark it STATUS_CRASHED, then run --delete-all.

@orangeCatDeveloper
NekoPunch (orangeCatDeveloper) force-pushed the issue-794-teardown-crashed-actors branch from 40c7936 to e869172 Compare August 14, 2026 10:26

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.

Added one comment, otherwise looks good to me!

Comment thread hack/install-ate.sh Resolved
@orangeCatDeveloper
NekoPunch (orangeCatDeveloper) force-pushed the issue-794-teardown-crashed-actors branch from 76fd66d to 5f710c6 Compare August 17, 2026 08:39

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.

Thanks!

@orangeCatDeveloper

Copy link
Copy Markdown
Contributor Author

Thanks!

Could you help trigger the CI workflow? Thank you!

@orangeCatDeveloper
NekoPunch (orangeCatDeveloper) force-pushed the issue-794-teardown-crashed-actors branch 4 times, most recently from f7838f6 to ba56757 Compare August 18, 2026 01:59
@krisztianfekete

Copy link
Copy Markdown
Collaborator

Hey, I don't have those kind of permission, but now I see that someone triggered them!

Teardown stopped at a crashed actor and left an immutable template behind for the next deploy. DeleteActor accepts crashed actors, so teardown can remove them before redeployment. Run demo handlers outside conditional context so deployment failures retain errexit behavior.
DeleteActor is idempotent for actors already being deleted, so an interrupted workflow should not abort the next teardown.
@krisztianfekete
Krisztian F (krisztianfekete) merged commit fda35d0 into agent-substrate:main Sep 7, 2026
9 checks passed
@orangeCatDeveloper
NekoPunch (orangeCatDeveloper) deleted the issue-794-teardown-crashed-actors branch September 7, 2026 10:14
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.

install-ate.sh: a crashed golden actor makes --delete-all keep the old golden snapshot

2 participants