Skip to content

ateom-gvisor: take the actor directories from the request - #1865

Merged
Benjamin Elder (BenTheElder) merged 2 commits into
agent-substrate:mainfrom
HavenXia:ateom-gvisor-dirs
Sep 28, 2026
Merged

Benjamin Elder (BenTheElder) merged 2 commits into
agent-substrate:mainfrom
HavenXia:ateom-gvisor-dirs

Conversation

@HavenXia

Copy link
Copy Markdown
Member

This PR let ateom-gvisor reads the per-actor directories from the ActorDirs (added in #1730) in the request instead of deriving them from the actor UID.

The paths ateom-gvisor still builds itself are put into gvisor specific cmd/ateom-gvisor/actorpath.go.

Resetting runsc-state and pidfiles moves from atelet's resetActorDirs to ateom-gvisor's main.go to conduct at beginning of RunWorkload and RestoreWorkload, which empties them at the start of Run and Restore. Atelet doesn't actually read them, so #1730 drops them from ActorDirs.

Added a new ActorDirs validation to reject a request with InvalidArgument when ActorDirs is missing or any directory in it is empty, relative or unclean.

The gVisor paths are removed from internal/ateompath; the rest goes with ateom-microvm in the next PR.

Part of #1604.

@HavenXia
Haven Xia (HavenXia) force-pushed the ateom-gvisor-dirs branch 4 times, most recently from 6b7854d to 3b9b7bb Compare September 25, 2026 21:38
@HavenXia
Haven Xia (HavenXia) marked this pull request as ready for review September 25, 2026 21:39
@HavenXia Haven Xia (HavenXia) changed the title [Stack on #1730] ateom-gvisor: take the actor directories from the request ateom-gvisor: take the actor directories from the request Sep 25, 2026
Comment thread cmd/ateom-gvisor/main.go Resolved
Comment thread cmd/ateom-gvisor/actorpath_test.go Resolved
// durableTarFile is the snapshot file holding the tar of the actor's durable-dir
// volumes. Its entries are <volumeName>/... relative to
// ateompath.DurableDirVolumeMountsDir, so extraction restores the same layout.
// ActorDirs.durable_dir_volume_mounts_dir, so extraction restores the same layout.

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.

still TODO to stop sharing this info entirely.

@BenTheElder
Benjamin Elder (BenTheElder) added this pull request to the merge queue Sep 28, 2026
Merged via the queue into agent-substrate:main with commit 7380e23 Sep 28, 2026
10 of 11 checks passed
@bowei Bowei Du (bowei) added area/node kind/cleanup Small fixes that are not bugs, for example a typo in a code comment labels Sep 29, 2026
@HavenXia
Haven Xia (HavenXia) deleted the ateom-gvisor-dirs branch October 28, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/gvisor area/node kind/cleanup Small fixes that are not bugs, for example a typo in a code comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants