test(release): retry staged runtime mirror races

This commit is contained in:
Peter Steinberger
2026-04-29 00:01:06 +01:00
parent 78853d9adc
commit 18f65c2d58
4 changed files with 24 additions and 4 deletions

View File

@@ -110,6 +110,13 @@ describe("scripts/openclaw-cross-os-release-checks", () => {
new Error("document-extract failed to stage bundled runtime deps after 463ms"),
),
).toBe(true);
expect(
shouldRetryCrossOsAgentTurnError(
new Error(
"PluginLoadFailureError: plugin load failed: qqbot: Error: ENOENT: no such file or directory, open '/tmp/home/.openclaw/plugin-runtime-deps/openclaw-2026.4.27-beta.1/dist/console-DnTGmMkY.js'",
),
),
).toBe(true);
expect(shouldRetryCrossOsAgentTurnError(new Error("Agent output did not contain OK."))).toBe(
false,
);

View File

@@ -54,4 +54,11 @@ describe("Parallels smoke model selection", () => {
expect(script).toContain("deadline=$((SECONDS + TIMEOUT_GATEWAY_S))");
expect(script).toContain("gateway status --deep --require-rpc --timeout 30000");
});
it("runs the macOS agent turn through the logged guest runner", () => {
const script = readFileSync("scripts/e2e/parallels-macos-smoke.sh", "utf8");
expect(script).toContain('agent_log="/tmp/openclaw-parallels-agent-turn.log"');
expect(script).toContain("run_logged_guest_current_user_sh");
});
});