Skip to content

fix(ci): keep Electron probes out of the node-server suites again - #26046

Merged
OrcaWin merged 1 commit into
OrcaWin/node-rt-phase3from
OrcaWin/node-rt-phase3-sync-node-server-electron
Oct 7, 2026
Merged

OrcaWin merged 1 commit into
OrcaWin/node-rt-phase3from
OrcaWin/node-rt-phase3-sync-node-server-electron

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 7, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 0 0 0 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​34 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​26

Summary

Fixes the orcad-template linux_glibc_floor and linux_musl jobs, both arches, that broke the ad hoc build (run 37557811831) on phase3 f25f6cc. All four failed on src/main/persistence/profile-state/profile-state-writer-stall.electron.test.ts with Error: spawn xvfb-run ENOENT. For the musl jobs this was the error inside "Verify native Alpine artifact and persistence".

Cause

The main sync brought two sides together. config/scripts/run-node-server-tests.mjs (Phase 3) kept Electron probes out of the headless server suites by passing --exclude '**/*.electron.test.ts' to Vitest. Main's #25967 moved config/vitest.config.ts to inline projects (node, bun, node-runtime), each with its own exclude, which overrides a CLI --exclude. The runner's directory selectors, such as src/main/persistence/profile-state, then selected the Electron test again. Confirmed locally: vitest list … --exclude '**/*.electron.test.ts' still lists it under [node].

Fix

The runner asks Vitest for the exact files its selectors match (vitest list --filesOnly --json), using the same runtime and config. It then drops *.electron.test.ts, and the cross-runtime tests unless --cross-runtime is set, and runs that explicit list. Selection is otherwise unchanged, including prefix matches, so no node-server test is lost. Main's vitest.config.ts is not touched. The runner fails loudly if listing fails or selects nothing.

Verification

  • pnpm test:node-server: 96 files (95 passed, 1 skipped), with no .electron.test.ts selected
  • oxlint on the script passes. --artifact needs a built out/orcad package, so it runs in CI. It shares this same file selection.

The runner excluded *.electron.test.ts with a CLI --exclude, but main's switch to Vitest inline
projects (#25967) gave each project its own exclude list, which overrides the CLI one. The
directory selectors then pulled profile-state-writer-stall.electron.test.ts into the glibc-floor
and musl orcad-template jobs, which have no xvfb. Resolve the exact files with vitest list and
drop Electron and cross-runtime ones before running.
@OrcaWin
OrcaWin merged commit f133a63 into OrcaWin/node-rt-phase3 Oct 7, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant