Skip to content

fix(ci): actually exclude Electron probes from the headless node-server lanes - #26093

Merged
Jinwoo-H merged 3 commits into
mainfrom
fix/node-server-electron-exclude
Oct 7, 2026
Merged

Jinwoo-H merged 3 commits into
mainfrom
fix/node-server-electron-exclude

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​12 $\color{#cf222e}{\Huge{\mathbf{−}}}$​9 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​3

ELI5

A CI check that runs the server's storage tests inside a bare Linux container kept failing on every PR that touches storage code. One test in that set needs a virtual screen to open an Electron window, and the container has none. The test runner was supposed to skip that test there, but the skip never took effect. Now it does.

What Changed

config/scripts/run-node-server-tests.mjs used to hand vitest folder selectors plus --exclude '**/*.electron.test.ts'. Vitest 5 does not apply a command-line --exclude to projects defined inline in the config (config/vitest.config.ts defines node with extends: false), so the exclude was silently ignored. profile-state-writer-stall.electron.test.ts (added in #25318) therefore ran in the linux_glibc_floor container and failed with spawn xvfb-run ENOENT. The same no-op affected the cross-runtime exclusions.

The runner now lists the test files itself (same include patterns as the unit suite, same substring matching vitest uses for selectors), drops Electron probes and, outside cross-runtime lanes, the cross-runtime tests, and passes the explicit file list to vitest.

Before/after in CI: linux_glibc_floor goes from red to green on any PR that touches persistence code. The Electron probe still runs in the desktop jobs in pr.yml that already list it.

Why

Making the existing intent work at the place it is declared is the smallest fix. Alternatives considered: making the test skip itself when xvfb-run is missing (would hide a broken desktop setup as a pass), or adding a new env-driven exclude to the shared vitest config (a new mechanism for one script).

Linked Issue

N/A (main-wide CI break, seen on #26088).

Visual Proof

N/A, CI-only change.

Testing

Compared vitest list --project node for the old and new arguments in all three lane shapes (artifact+cross-runtime, artifact only, neither). The only differences are the intended ones: the Electron probe is dropped everywhere, and profile-state-cross-runtime.integration.test.ts is dropped outside cross-runtime lanes (100→99, 99→97, 93→91 files). The resolved file list equals what vitest then selects. node-server-change-scope, node-server-concurrency and node-server-qualification tests pass.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below (CI lane itself is the check)

Review

Agent skill upstream boundary

  • Not applicable

Notes

Windows paths from globSync are normalized to forward slashes before matching.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • N/A for visuals with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered
  • CI will cover lint/typecheck/test/build

…er lanes

vitest 5 does not apply a CLI --exclude to inline projects, so the glibc floor
container ran profile-state-writer-stall.electron.test.ts and failed with
'spawn xvfb-run ENOENT'. Resolve the selectors to files and filter them before
vitest sees them.
@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b650502a-cf50-459f-a691-cf44a7ea1704
📥 Commits

Reviewing files that changed from the base of the PR and between 69a30dd and 5c5ac53.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ad9681da-727f-4afd-b015-a28558266988
📥 Commits

Reviewing files that changed from the base of the PR and between 0acf039 and e13d2e5.

📒 Files selected for processing (1)
  • config/scripts/run-node-server-tests.mjs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.


📝 Walkthrough

Walkthrough

The test runner now resolves selectors against paths found by globSync(UNIT_INCLUDE). It filters out Electron tests and, unless crossRuntime is enabled, cross-runtime test paths. It passes the resulting file paths to Vitest instead of passing selectors and --exclude arguments.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to e13d2

The supported Node-server lanes continue to select tests; no actionable merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the CI fix and the Electron probes excluded from headless node-server lanes.
Description check ✅ Passed The description explains the problem, the change, the rationale, the testing, and why visual proof is not applicable. The linked-issue section says N/A and mentions #26088, but does not provide an iss…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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