mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-22 15:25:37 +00:00
fix(ci): keep PTY tests observable and wait for completed turns (#117405)
Co-authored-by: Peter Steinberger <steipete@macos.shared>
This commit is contained in:
parent
87be38ea73
commit
deabae48d3
4 changed files with 4 additions and 1 deletions
|
|
@ -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],
|
||||
|
|
|
|||
|
|
@ -573,6 +573,7 @@ async function startLocalModeTui(
|
|||
OPENCLAW_HOME: homeDir,
|
||||
OPENCLAW_CONFIG_PATH: configPath,
|
||||
OPENCLAW_STATE_DIR: stateDir,
|
||||
OPENCLAW_TUI_LOCAL_RUN_SHUTDOWN_GRACE_MS: "500",
|
||||
OPENCLAW_AGENT_DIR: undefined,
|
||||
OPENCLAW_SKIP_PROVIDERS: undefined,
|
||||
XDG_CONFIG_HOME: xdgConfigHome,
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ function createTuiPtyVitestConfig(env?: Record<string, string | undefined>) {
|
|||
exclude,
|
||||
fileParallelism: false,
|
||||
maxWorkers: 1,
|
||||
reporters: ["verbose"],
|
||||
reporters: ["verbose", ...(configEnv.GITHUB_ACTIONS === "true" ? ["github-actions"] : [])],
|
||||
setupFiles: [
|
||||
...new Set(
|
||||
[...(baseTest.setupFiles ?? []), "test/setup-openclaw-runtime.ts"].map(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue