fix(ci): keep PTY tests observable and wait for completed turns (#117405)

Co-authored-by: Peter Steinberger <steipete@macos.shared>
(cherry picked from commit deabae48d3)
This commit is contained in:
Peter Steinberger
2026-08-01 07:46:46 -07:00
committed by Vincent Koc
parent f5df4bab02
commit 2969f3d1c3
4 changed files with 4 additions and 0 deletions
+1
View File
@@ -40,6 +40,7 @@ const GATEWAY_SERVER_VITEST_CONFIG = "test/vitest/vitest.gateway-server.config.t
const GATEWAY_VITEST_CONFIG = "test/vitest/vitest.gateway.config.ts";
export const VITEST_CONFIG_NO_OUTPUT_TIMEOUT_MS = new Map([
["test/vitest/vitest.e2e.config.ts", DEFAULT_LONG_RUNNING_VITEST_NO_OUTPUT_TIMEOUT_MS],
["test/vitest/vitest.tui-pty.config.ts", DEFAULT_LONG_RUNNING_VITEST_NO_OUTPUT_TIMEOUT_MS],
[GATEWAY_VITEST_CONFIG, DEFAULT_LONG_RUNNING_VITEST_NO_OUTPUT_TIMEOUT_MS],
["test/vitest/vitest.ui-e2e.config.ts", DEFAULT_LONG_RUNNING_VITEST_NO_OUTPUT_TIMEOUT_MS],
["test/vitest/vitest.full-agentic.config.ts", DEFAULT_LONG_RUNNING_VITEST_NO_OUTPUT_TIMEOUT_MS],
+1
View File
@@ -586,6 +586,7 @@ async function startLocalModeTui(
OPENCLAW_HOME: homeDir,
OPENCLAW_CONFIG_PATH: configPath,
OPENCLAW_STATE_DIR: stateDir,
OPENCLAW_TUI_LOCAL_RUN_SHUTDOWN_GRACE_MS: "500",
XDG_CONFIG_HOME: xdgConfigHome,
XDG_DATA_HOME: xdgDataHome,
XDG_CACHE_HOME: xdgCacheHome,
+1
View File
@@ -524,6 +524,7 @@ describe("scripts/run-vitest", () => {
for (const configArg of [
"--config=test/vitest/vitest.e2e.config.ts",
"--config=test/vitest/vitest.tui-pty.config.ts",
"--config=test/vitest/vitest.gateway.config.ts",
"--config=./test/vitest/vitest.ui-e2e.config.ts",
"--config=test/vitest/vitest.full-agentic.config.ts",
+1
View File
@@ -40,6 +40,7 @@ function createTuiPtyVitestConfig(env?: Record<string, string | undefined>) {
exclude,
fileParallelism: false,
maxWorkers: 1,
reporters: ["verbose", ...(configEnv.GITHUB_ACTIONS === "true" ? ["github-actions"] : [])],
setupFiles: [
...new Set(
[...(baseTest.setupFiles ?? []), "test/setup-openclaw-runtime.ts"].map(