test(e2e): keep tui pty smoke off arm gateway runs · openclaw/openclaw@7dead65
vincentkoc
·
2026-06-05
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,9 @@ env:
|
27 | 27 | jobs: |
28 | 28 | tui-pty: |
29 | 29 | runs-on: ubuntu-24.04 |
30 | | -timeout-minutes: 5 |
| 30 | +timeout-minutes: 8 |
| 31 | +env: |
| 32 | +OPENCLAW_TUI_PTY_INCLUDE_LOCAL: "1" |
31 | 33 | steps: |
32 | 34 | - name: Checkout |
33 | 35 | uses: actions/checkout@v6 |
@@ -38,4 +40,4 @@ jobs:
|
38 | 40 | install-bun: "false" |
39 | 41 | |
40 | 42 | - name: Run TUI PTY tests |
41 | | -run: timeout --kill-after=30s 120s node scripts/run-vitest.mjs run --config test/vitest/vitest.tui-pty.config.ts |
| 43 | +run: timeout --kill-after=30s 240s node scripts/run-vitest.mjs run --config test/vitest/vitest.tui-pty.config.ts |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -22,6 +22,10 @@ describe("e2e vitest config", () => {
|
22 | 22 | "src/gateway/sessions-history-http.test.ts", |
23 | 23 | BUNDLED_PLUGIN_E2E_TEST_GLOB, |
24 | 24 | ]); |
| 25 | +expect(e2eConfig.test?.exclude).toContain("src/tui/tui-pty-harness.e2e.test.ts"); |
| 26 | +const excludesTuiPtyLocal = |
| 27 | +e2eConfig.test?.exclude?.includes("src/tui/tui-pty-local.e2e.test.ts") ?? false; |
| 28 | +expect(excludesTuiPtyLocal).toBe(process.arch === "arm64"); |
25 | 29 | expect(e2eConfig.test?.pool).toBe("threads"); |
26 | 30 | expect(e2eConfig.test?.isolate).toBe(false); |
27 | 31 | expect(normalizeConfigPath(e2eConfig.test?.runner)).toBe("test/non-isolated-runner.ts"); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1544,8 +1544,10 @@ describe("package artifact reuse", () => {
|
1544 | 1544 | const job = workflowJob(TUI_PTY_WORKFLOW, "tui-pty"); |
1545 | 1545 | const step = workflowStep(job, "Run TUI PTY tests"); |
1546 | 1546 | |
| 1547 | +expect(job.env?.OPENCLAW_TUI_PTY_INCLUDE_LOCAL).toBe("1"); |
| 1548 | +expect(job["timeout-minutes"]).toBe(8); |
1547 | 1549 | expect(step.run).toBe( |
1548 | | -"timeout --kill-after=30s 120s node scripts/run-vitest.mjs run --config test/vitest/vitest.tui-pty.config.ts", |
| 1550 | +"timeout --kill-after=30s 240s node scripts/run-vitest.mjs run --config test/vitest/vitest.tui-pty.config.ts", |
1549 | 1551 | ); |
1550 | 1552 | }); |
1551 | 1553 | }); |
| Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,14 @@ const { projects: _projects, ...baseTest } = baseTestWithProjects as {
|
24 | 24 | projects?: string[]; |
25 | 25 | setupFiles?: string[]; |
26 | 26 | }; |
27 | | -const exclude = (baseTest.exclude ?? []).filter((p) => p !== "**/*.e2e.test.ts"); |
| 27 | +const tuiPtyExcludes = [ |
| 28 | +"src/tui/tui-pty-harness.e2e.test.ts", |
| 29 | + ...(process.arch === "arm64" ? ["src/tui/tui-pty-local.e2e.test.ts"] : []), |
| 30 | +]; |
| 31 | +const exclude = [ |
| 32 | + ...(baseTest.exclude ?? []).filter((p) => p !== "**/*.e2e.test.ts"), |
| 33 | + ...tuiPtyExcludes, |
| 34 | +]; |
28 | 35 | |
29 | 36 | export default defineConfig({ |
30 | 37 | ...base, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。