fix(ci): kill timed tui pty test runs

This commit is contained in:
Vincent Koc
2026-05-26 18:42:47 +02:00
parent 6c18c212e9
commit 081e29595e
2 changed files with 11 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ const CI_CHECK_TESTBOX_WORKFLOW = ".github/workflows/ci-check-testbox.yml";
const CRABBOX_HYDRATE_WORKFLOW = ".github/workflows/crabbox-hydrate.yml";
const CRABBOX_CONFIG = ".crabbox.yaml";
const SCHEDULED_LIVE_CHECKS_WORKFLOW = ".github/workflows/openclaw-scheduled-live-checks.yml";
const TUI_PTY_WORKFLOW = ".github/workflows/tui-pty.yml";
const CI_HYDRATE_LIVE_AUTH_SCRIPT = "scripts/ci-hydrate-live-auth.sh";
const UPGRADE_SURVIVOR_RUN_SCRIPT = "scripts/e2e/lib/upgrade-survivor/run.sh";
@@ -1299,4 +1300,13 @@ describe("package artifact reuse", () => {
);
expect(readFileSync(LIVE_E2E_WORKFLOW, "utf8")).toContain("live-cache attempt ${attempt}/2");
});
it("kills timed TUI PTY workflow runs after the grace period", () => {
const job = workflowJob(TUI_PTY_WORKFLOW, "tui-pty");
const step = workflowStep(job, "Run TUI PTY tests");
expect(step.run).toBe(
"timeout --kill-after=30s 120s node scripts/run-vitest.mjs run --config test/vitest/vitest.tui-pty.config.ts",
);
});
});