diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9401414bf..6ede40eab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -407,6 +407,16 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + # pnpm only runs build scripts for allow-listed packages + # (pnpm-workspace.yaml), so electron's postinstall never fetches + # its binary. `require('electron')` then downloads it lazily, and + # parallel Jest workers that spawn Electron race on the same + # download: one executes the half-written binary (ETXTBSY). + # Fetch it once before any test runs; install.js skips an + # existing binary. + - name: Install the Electron binary + run: node node_modules/electron/install.js + - name: Validate agent guidance run: pnpm run agents:validate