From 27ec71970f458d27cf2d8b9d2d5c2bbcdf5ab5e3 Mon Sep 17 00:00:00 2001 From: Jinwoo Hong <73622457+Jinwoo-H@users.noreply.github.com> Date: Sat, 30 May 2026 13:19:07 -0400 Subject: [PATCH] test: allow slower windows e2e builds (#3790) --- tests/e2e/global-setup.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/e2e/global-setup.ts b/tests/e2e/global-setup.ts index 8513f41b038..d37927bf988 100644 --- a/tests/e2e/global-setup.ts +++ b/tests/e2e/global-setup.ts @@ -18,6 +18,7 @@ import os from 'os' /** Temp file where the test repo path is stored for the fixture to read. */ export const TEST_REPO_PATH_FILE = path.join(os.tmpdir(), 'orca-e2e-test-repo-path.txt') +const ELECTRON_E2E_BUILD_TIMEOUT_MS = 300_000 export default function globalSetup(): void { const root = process.cwd() @@ -34,7 +35,9 @@ export default function globalSetup(): void { execSync('npx electron-vite build --mode e2e', { cwd: root, stdio: 'inherit', - timeout: 120_000 + // Why: Windows renderer builds can exceed 120s on local/CI hosts even + // when healthy; global setup should not fail before specs can run. + timeout: ELECTRON_E2E_BUILD_TIMEOUT_MS }) console.log('[e2e] Build complete.') }