Skip to content

atelet: return Canceled when Run or Restore fails to reset actor dirs - #3063

Merged
Luiz Oliveira (laoj2) merged 1 commit into
agent-substrate:mainfrom
zoez7:atelet-reset-dirs-canceled
Oct 22, 2026
Merged

Luiz Oliveira (laoj2) merged 1 commit into
agent-substrate:mainfrom
zoez7:atelet-reset-dirs-canceled

Conversation

@zoez7

@zoez7 Zoe Zhao (zoez7) commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

A resetActorDirs failure is an error related to atelet or the node's disk, not the actor.
Return Canceled so ate-api-server does not crash the actor.

AI use: AI-assisted, I reviewed and tested it.

  • Tests pass
  • Docs updated

@zoez7
Zoe Zhao (zoez7) marked this pull request as ready for review October 21, 2026 16:16
@zoez7
Zoe Zhao (zoez7) force-pushed the atelet-reset-dirs-canceled branch from faf1bd1 to 254d5f8 Compare October 21, 2026 22:11
t.Run(tc.name, func(t *testing.T) {
if err := tc.call(t); status.Code(err) != codes.Canceled {
t.Errorf("%s = %v (code %s), want %s", tc.name, err, status.Code(err), codes.Canceled)
}

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.

can we add a retry call, where with now files that will make resetActorDirsKeepingVolumes succeed to make sure the retries are safe?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in c32bb96.

A ResetActorDirsKeepingVolumes failure points at atelet or the node's
disk, not the actor. It returned code Unknown, so ate-api-server crashed
the actor. Return Canceled so ate-api-server retries instead.
@laoj2
Luiz Oliveira (laoj2) added this pull request to the merge queue Oct 22, 2026
Merged via the queue into agent-substrate:main with commit 06a1f3b Oct 22, 2026
15 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.

2 participants