Skip to content

fix: skip daemon-pty-adapter tests on Windows#7158

Open
sudoeren wants to merge 1 commit into
stablyai:mainfrom
sudoeren:fix/skip-daemon-pty-tests-windows
Open

fix: skip daemon-pty-adapter tests on Windows#7158
sudoeren wants to merge 1 commit into
stablyai:mainfrom
sudoeren:fix/skip-daemon-pty-tests-windows

Conversation

@sudoeren

@sudoeren sudoeren commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

The entire \DaemonPtyAdapter\ test suite relies on
ode:net\ Unix socket semantics (unlinkSync, socket file cleanup, respawn-on-death checks) that don't map to Windows named pipes. This causes ~61 test failures on Windows.

Change

  • Replaced \const itOnPosix\ with \const describeOnPosix\ at the module level, matching the pattern in \shell-ready.test.ts\
  • Changed \describe(...)\ to \describeOnPosix(...)\ to skip the entire suite on Windows
  • Converted the 2 existing \itOnPosix\ tests back to regular \it\ (already covered by the describe-level skip)

Verification

  • Tests continue to run on Linux/macOS (CI) as before
  • No functional change — only test infrastructure

Cross-platform notes

  • Windows: this is the fix — the suite is now skipped instead of failing
  • macOS/Linux: unchanged, all tests still run
  • The daemon PTY infrastructure is exercised through the terminal-perf E2E suite on Ubuntu CI

@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 068b2a50-fc73-42e9-b924-f9349ab93635

📥 Commits

Reviewing files that changed from the base of the PR and between 2b2cf23 and cb756fb.

📒 Files selected for processing (1)
  • src/main/daemon/daemon-pty-adapter.test.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/main/daemon/daemon-pty-adapter.test.ts

📝 Walkthrough

Walkthrough

Changes

This change refactors the POSIX-only test gating in daemon-pty-adapter.test.ts. A new describeOnPosix helper wraps the entire DaemonPtyAdapter (IPtyProvider) suite to skip it on Windows, replacing the previous per-test itOnPosix helper. Two tests that previously used itOnPosix were updated to use it directly, since they now inherit the suite-level platform skip.

Compact Metadata

  • Type: Test refactor
  • Scope: Single test file
  • Impact: No production code changes; test gating mechanism only

Related PRs: None identified.

Suggested labels: tests, refactor

Suggested reviewers: None identified.

Poem
A rabbit hopped through test-file grass,
Found skips per-test, said "let this pass" —
One gate for all, atop the suite,
Windows steps aside, tests execute,
Hop, hop, cleaner code at last.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers summary, change, verification, and cross-platform notes, but misses required Screenshots, Testing, AI Review Report, Security Audit, and Notes sections. Add the missing template sections, especially Testing, AI Review Report, Security Audit, Screenshots, and Notes, with concrete details.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly states the main change: skipping daemon-pty-adapter tests on Windows.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.

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.

…ket)

The entire suite relies on node:net Unix socket semantics (unlinkSync,
socket file cleanup, respawn-on-death checks) that don't map to Windows
named pipes. Skipping at the describe level, matching shell-ready.test.ts.
@sudoeren sudoeren force-pushed the fix/skip-daemon-pty-tests-windows branch from 2b2cf23 to cb756fb Compare July 3, 2026 15:51
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