Repository navigation
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
PR Review — Quality: 5.0 / 5 · Review load: Broad
At 5.0 / 5 this is ready to merge from a code-review perspective: I am approving. The change extends the Electron compatibility matrix to Windows via a Server 2022 container workflow, makes build/test scripts portable (including Yarn/npm invocation without a shell), fixes WASM chunk detection on Windows paths, and hardens crash and telemetry scenarios for headless Windows environments. The added unit and integration coverage matches the new surfaces. Review load is Broad because container orchestration, command bootstrap semantics, and packaging behavior land together—worth a second pair of eyes on Windows CI, even though I have no blocking findings.
Customer impact: Low — default SDK behavior is unchanged; the rollup path normalization fixes Windows packaging for the WASM chunk, and the rest is CI, fixtures, and test infrastructure.
| Concern | |
|---|---|
| Windows container CI (image, workspace copy, GitLab matrix jobs) | Risky |
Portable command() / Yarn and npm JavaScript entry-point resolution on Windows |
Risky |
Rollup WASM manualChunks path normalization and package allowlist checks |
Risky |
| Playwright reporting, crash predicates, and display-count assertions | Routine |
| YAML-based compatibility pipeline generation and filters | Routine |
Quality — 5.0: The design is coherent end to end: host run.ps1 keeps Docker scope narrow, in-container preparation reuses the same yarn targets as Linux/macOS, and exclusions in copyWindowsContainerWorkspace mirror compatibility materialization. Command invocation and logged retries are well tested; the WASM regression test exercises real Rollup output; crash tests now filter on is_crash, which addresses realistic intake noise on Windows.
Review load — Broad: Three risky boundaries (CI containers, bootstrap commands, Windows packaging) ship in one stack, though commits separate them logically. A Windows-runner owner should sanity-check the first real matrix jobs; nothing here blocks on that alone.
Suggested split
Not required for merge. If you ever need to land pieces independently: (1) portable scripts + rollup WASM fix + chunk tests, (2) Playwright/scenario hardening, (3) Windows container + GitLab matrix enablement last (depends on 1–2). Commits e4284b57 / 048a83be / 9d852f08 / 1b989df7 / b674ee7d already follow that rough order.
Sent by Cursor Automation: electron-sdk reviews
4a6731e to
d0d53ee
Compare
d0d53ee to
8da4e56
Compare
8da4e56 to
cf9dd2c
Compare


Motivation
The compatibility workflow currently covers Linux and macOS. This PR adds Windows coverage across the same Electron targets, reusing the existing E2E and integration suites.
Windows introduces differences in command execution, filesystem paths, dependency packaging, and container display availability. These changes let the suites run on shared Windows runners and add regression coverage for Windows packaging failures.
This PR is stacked on
carlosnogueira/RUM-15522/electron-os-and-version-test, with the diff starting after9b408f3e.Changes
The Windows workflow has three steps:
windows-v2:2022runner. The image supplies Node, Yarn, Git, 7-Zip, and the Visual C++ runtime. No dedicated AMI or published image is required.C:\w, and run the existing compatibility preparation and test commands. Host dependencies and previous build artifacts are excluded.Windows adds seven jobs to the compatibility matrix, bringing the full Linux/macOS/Windows matrix to 21 jobs. Existing default-branch, manual, scheduled, filtering, and nightly failure policies continue to apply.
Supporting changes:
The Windows payload regression checks that default-copy
dd-tracepaths would exceedMAX_PATHat a long temporary destination, while output built withcopyRuntimeDependencies: falseextracts completely using Windows PowerShell 5.1. Separate packaging assertions verify dependency placement inapp.asar. This covers the extraction regression without running a full MSIX build or signing pipeline.Review guide
The main commits separate portable commands, WASM packaging, test changes, container execution, and CI integration. Suggested reading order:
scripts/lib/commandInvocation.ts,scripts/lib/command.ts, and the SDK/fixture build scripts.rollup.config.mjsandscripts/check-sdk-chunks.spec.ts.e2e/playwright.config.ts, the crash scenarios, ande2e/integration/scenarios/windows-payload-extraction.scenario.ts.ci/windows/run.ps1,scripts/run-windows-container-tests.ts, andscripts/lib/windowsContainer.ts.scripts/lib/compatibilityCi.tsande2e/compatibility/config.json.Test instructions
On a Windows host with Docker configured for Windows containers, use a regular Git clone:
Process isolation is the default. Hosts that require and support Hyper-V isolation can add
-Isolation hyperv.To run the regular suites through the same container:
To exercise the compatibility workflow in GitLab, manually start a pipeline with:
Leave the target filter empty to run all configured Electron versions on Windows.