Repository navigation
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the orcad-template
linux_glibc_floorandlinux_musljobs, both arches, that broke the ad hoc build (run 37557811831) on phase3 f25f6cc. All four failed onsrc/main/persistence/profile-state/profile-state-writer-stall.electron.test.tswithError: 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 movedconfig/vitest.config.tsto inline projects (node,bun,node-runtime), each with its ownexclude, which overrides a CLI--exclude. The runner's directory selectors, such assrc/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-runtimeis set, and runs that explicit list. Selection is otherwise unchanged, including prefix matches, so no node-server test is lost. Main'svitest.config.tsis 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.tsselectedoxlinton the script passes.--artifactneeds a builtout/orcadpackage, so it runs in CI. It shares this same file selection.