From 32c23370955d33ea0e65e6d42a0c138c1eb2ebe9 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 29 Apr 2026 07:24:33 +0100 Subject: [PATCH] test(ci): tolerate slow live provider cleanup --- .github/workflows/install-smoke.yml | 4 ++-- extensions/openai/openai.live.test.ts | 12 ++++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/install-smoke.yml b/.github/workflows/install-smoke.yml index 2b0848dfe1d..380b8e6be76 100644 --- a/.github/workflows/install-smoke.yml +++ b/.github/workflows/install-smoke.yml @@ -353,7 +353,7 @@ jobs: needs: [preflight] if: needs.preflight.outputs.run_fast_install_smoke == 'true' || needs.preflight.outputs.run_full_install_smoke == 'true' runs-on: blacksmith-16vcpu-ubuntu-2404 - timeout-minutes: 8 + timeout-minutes: 12 env: DOCKER_BUILD_SUMMARY: "false" DOCKER_BUILD_RECORD_UPLOAD: "false" @@ -378,4 +378,4 @@ jobs: env: OPENCLAW_BUNDLED_CHANNEL_DEPS_E2E_IMAGE: openclaw-bundled-channel-fast:local OPENCLAW_BUNDLED_CHANNEL_DOCKER_RUN_TIMEOUT: 90s - run: timeout 240s pnpm test:docker:bundled-channel-deps:fast + run: timeout 480s pnpm test:docker:bundled-channel-deps:fast diff --git a/extensions/openai/openai.live.test.ts b/extensions/openai/openai.live.test.ts index 6038e8b25be..c8ac13cc087 100644 --- a/extensions/openai/openai.live.test.ts +++ b/extensions/openai/openai.live.test.ts @@ -171,6 +171,10 @@ async function createTempAgentDir(): Promise { return await fs.mkdtemp(path.join(os.tmpdir(), "openai-plugin-live-")); } +async function removeTempAgentDir(agentDir: string): Promise { + await fs.rm(agentDir, { recursive: true, force: true, maxRetries: 5, retryDelay: 100 }); +} + function normalizeTranscriptForMatch(value: string): string { return value.toLowerCase().replace(/[^a-z0-9]+/g, ""); } @@ -407,7 +411,7 @@ describeLive("openai plugin live", () => { expect(generated.images[0]?.mimeType).toBe("image/png"); expect(generated.images[0]?.buffer.byteLength).toBeGreaterThan(1_000); } finally { - await fs.rm(agentDir, { recursive: true, force: true }); + await removeTempAgentDir(agentDir); } }, 240_000); @@ -444,7 +448,7 @@ describeLive("openai plugin live", () => { expect(edited.images[0]?.mimeType).toBe("image/png"); expect(edited.images[0]?.buffer.byteLength).toBeGreaterThan(1_000); } finally { - await fs.rm(agentDir, { recursive: true, force: true }); + await removeTempAgentDir(agentDir); } }, 240_000); @@ -485,7 +489,7 @@ describeLive("openai plugin live", () => { expect((description?.text ?? "").toLowerCase()).toContain("orange"); } finally { - await fs.rm(agentDir, { recursive: true, force: true }); + await removeTempAgentDir(agentDir); } - }, 75_000); + }, 240_000); });