From 1e39bff6f9f190c79a4e2217f3dbc3a4457a9562 Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Tue, 28 Apr 2026 00:24:11 -0700 Subject: [PATCH] fix(windows-ci): catch ./bin/ direct path spawns --- scripts/test-free-shards.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test-free-shards.ts b/scripts/test-free-shards.ts index 8d990c4b..5be84a1f 100755 --- a/scripts/test-free-shards.ts +++ b/scripts/test-free-shards.ts @@ -71,7 +71,7 @@ const WINDOWS_FRAGILE_PATTERNS: Array<{ pattern: RegExp; reason: string }> = [ // - path.join(ROOT, 'bin', 'script-name') — typical // - join(import.meta.dir, '..', 'bin', 'name') — destructured (diff-scope) // - path.join(ROOT, 'bin') — bare BIN constant (brain-sync) - { pattern: /,\s*['"]bin['"]\s*[,)]/, reason: 'spawns bin/ shebang script (Windows CreateProcess does not parse shebangs)' }, + { pattern: /,\s*['"]bin['"]\s*[,)]|['"]\.?\/?bin\/[a-z][\w-]+['"]/, reason: 'spawns bin/ shebang script (Windows CreateProcess does not parse shebangs)' }, // Tests that launch a real Playwright browser. The windows-free-tests CI job // runs a curated subset that intentionally does NOT install Chromium — // browser bring-up on Windows is a separate concern (see PR #1238). Tests