From a21e0ed8b92953203a5dccc5e4352fcdb2b63c30 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Mar 2026 09:29:50 +0000 Subject: [PATCH 1/2] fix: increase e2e test step timeout on Windows to fix flaky CI Windows CI runners with Git Bash have significantly more overhead for shell startup and process execution. The 20-second per-step timeout was frequently exceeded on Windows, causing flaky failures in tests like "multi task with cache hits shows compact summary" where `[timeout]` appeared instead of actual output. Increase to 60 seconds on Windows while keeping 20 seconds on Unix. https://claude.ai/code/session_01VzFJkUBQ9t6zTmH7ZJFXgt --- crates/vite_task_bin/tests/e2e_snapshots/main.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/main.rs b/crates/vite_task_bin/tests/e2e_snapshots/main.rs index 1b45b81b..f94943d9 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/main.rs +++ b/crates/vite_task_bin/tests/e2e_snapshots/main.rs @@ -17,8 +17,13 @@ use vite_path::{AbsolutePath, AbsolutePathBuf, RelativePathBuf}; use vite_str::Str; use vite_workspace::find_workspace_root; -/// Timeout for each step in e2e tests -const STEP_TIMEOUT: Duration = Duration::from_secs(20); +/// Timeout for each step in e2e tests. +/// Windows CI needs a longer timeout due to Git Bash startup overhead and slower I/O. +const STEP_TIMEOUT: Duration = if cfg!(windows) { + Duration::from_secs(60) +} else { + Duration::from_secs(20) +}; /// Screen size for the PTY terminal. Large enough to avoid line wrapping. const SCREEN_SIZE: ScreenSize = ScreenSize { rows: 500, cols: 500 }; From f0178f4c1894d801b39f6c40ca17d995933dba47 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 15 Mar 2026 10:35:48 +0000 Subject: [PATCH 2/2] style: fix rustfmt formatting for conditional timeout https://claude.ai/code/session_01VzFJkUBQ9t6zTmH7ZJFXgt --- crates/vite_task_bin/tests/e2e_snapshots/main.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/crates/vite_task_bin/tests/e2e_snapshots/main.rs b/crates/vite_task_bin/tests/e2e_snapshots/main.rs index f94943d9..e17d6acd 100644 --- a/crates/vite_task_bin/tests/e2e_snapshots/main.rs +++ b/crates/vite_task_bin/tests/e2e_snapshots/main.rs @@ -19,11 +19,8 @@ use vite_workspace::find_workspace_root; /// Timeout for each step in e2e tests. /// Windows CI needs a longer timeout due to Git Bash startup overhead and slower I/O. -const STEP_TIMEOUT: Duration = if cfg!(windows) { - Duration::from_secs(60) -} else { - Duration::from_secs(20) -}; +const STEP_TIMEOUT: Duration = + if cfg!(windows) { Duration::from_secs(60) } else { Duration::from_secs(20) }; /// Screen size for the PTY terminal. Large enough to avoid line wrapping. const SCREEN_SIZE: ScreenSize = ScreenSize { rows: 500, cols: 500 };