Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions test/e2e/live/sandbox-survival.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ test(
"install and register the OpenClaw sandbox",
"prove baseline sandbox access and inference",
"write persistent OpenClaw markers",
"restart the gateway and reconnect the sandbox",
"restart the gateway and recover the sandbox",
"recheck state and inference after restart",
"destroy the sandbox and confirm registry removal",
],
Expand Down Expand Up @@ -404,7 +404,7 @@ test(
await stateValidation.writeSandboxMarkers(instance, markers);
await stateValidation.expectSandboxMarkers(instance, markers, "pre-restart-marker-read");

progress.phase("restart the gateway and reconnect the sandbox");
progress.phase("restart the gateway and recover the sandbox");
await captureSurvivalDiagnostics(host, "before-gateway-restart", [apiKey]);
await lifecycle.restartGatewayRuntime({
delayMs: 5_000,
Expand All @@ -415,6 +415,14 @@ test(
attempts: 60,
intervalMs: 5_000,
});
await captureSurvivalDiagnostics(host, "before-recover", [apiKey]);
const recovery = await host.nemoclaw([SANDBOX_NAME, "recover"], {
artifactName: "post-restart-nemoclaw-recover",
env: buildAvailabilityProbeEnv(),
timeoutMs: 240_000,
});
await captureSurvivalDiagnostics(host, "after-recover", [apiKey]);
assertExitZero(recovery, `recover sandbox ${SANDBOX_NAME}`);

progress.phase("recheck state and inference after restart");
await sandbox.expectListed(SANDBOX_NAME, {
Expand Down