Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Skill Burger tests: say what Windows CI showed for the skipped shell-replay cases

milind-soniecf6abe3d224
diff --git a/server/skill-burger/numeric-rules.test.ts b/server/skill-burger/numeric-rules.test.ts
index 2b6096e073..c56047673d 100644
--- a/server/skill-burger/numeric-rules.test.ts
+++ b/server/skill-burger/numeric-rules.test.ts
@@ -13,7 +13,8 @@ import { createSkillBurgerRoutes } from "./routes.ts";
import type { RunEnvelope } from "./runner.ts";
import { createSkillBurgerRuns, RESUME_PATH, RUN_PATH } from "./runs.ts";
-// Each case reads its count from a shell step, which the command executor runs as the bot on POSIX only (executors.test.ts).
+// The replayed shell steps are quoted for /bin/sh. Under cmd.exe on Windows CI they left no file and no output while the run
+// still reported ok, so these cases skip Windows like the other shell-replay tests (working-directory, recorded-inputs).
const POSIX_ONLY = process.platform === "win32";
const roots: string[] = [];
const servers: Server[] = [];
diff --git a/server/skill-burger/pi-writes.test.ts b/server/skill-burger/pi-writes.test.ts
index b7d545261b..9079d32685 100644
--- a/server/skill-burger/pi-writes.test.ts
+++ b/server/skill-burger/pi-writes.test.ts
@@ -25,7 +25,8 @@ afterEach(async () => {
roots.splice(0).forEach((root) => rmSync(root, { recursive: true, force: true }));
});
-// The replayed shell steps run as the bot, which the Skill Burger command executor does on POSIX only (executors.test.ts).
+// The replayed shell steps are quoted for /bin/sh. Under cmd.exe on Windows CI they left no file and no output while the run
+// still reported ok, so these cases skip Windows like the other shell-replay tests (working-directory, recorded-inputs).
async function replay(content: string, name = "write", path = "report.txt") {
const home = mkdtempSync(join(tmpdir(), "burger-pi-write-"));
roots.push(home);