Skip to content
Source
Sign inSign up
pingdotgg/t3code

test(server): skip posix executable fixtures on a Windows host #9565

Mergedjuliusmarmingemerged 1 commit intowindows-tests/path-platform fromrefs/pull/9565/headmerged by juliusmarminge View on GitHub

juliusmarmingecommented

externalLauncher, providerMaintenance, AntigravityInstallation, and ResourceMonitorBinary write #!/bin/sh stubs (or chmod 0o755 files) into a real temp dir and resolve them under a linux/darwin platform mock. On a Windows host the temp path carries a drive letter, so the posix ':' PATH split shatters it, and NTFS never reports the exec bits the linux branch checks. Skip those tests there; the win32-mocked siblings already cover the Windows branches with .cmd fixtures.

Part of the Windows test-suite stack rooted at #9564; the manual Windows lane comes from #9538.

Model: Claude Fable 5 in Claude Code.

🤖 Generated with Claude Code

Note

Skip POSIX executable fixture tests on Windows host

Macroscope summarized ebe89b2.

Note

Low Risk Test-only conditional skips; no runtime behavior changes. Coverage for skipped paths still runs on non-Windows hosts and via existing win32-mocked tests where noted.

Overview Makes the server test suite pass on Windows CI/dev machines by skipping cases that cannot run there, without changing production code or altering assertions on macOS/Linux.

Each affected suite adds a windowsHost guard (HostProcessPlatform.defaultValue() === "win32") and wraps selected tests with it.effect.skipIf(windowsHost) / it.live.skipIf(windowsHost). Those tests still create real temp dirs with #!/bin/sh stubs (or chmod 0o755) and resolve them under a linux/darwin platform mock; on Windows the temp path’s drive letter breaks POSIX PATH splitting on :, and NTFS does not expose the exec bits the Linux branch checks.

externalLauncher.test.ts skips the bulk of macOS/Linux/WSL file-manager and xdg-mime scenarios; win32-mocked tests (e.g. .CMD fixtures, Explorer/PowerShell reveal) stay enabled. providerMaintenance.test.ts skips four PATH-walk capability tests that use shell stubs. AntigravityInstallation.test.ts skips one explicit-path resolve test. ResourceMonitorBinary.test.ts skips two override tests that depend on POSIX exec bits under a Linux mock.

Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit ebe89b26382b49528fe5db4e4843d3c2d4b6e5df. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. github-actions[bot](GitHub profile, opens in a new tab)commented

      Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ℹ️ No successful main baseline artifact is available yet. This run establishes the initial measurement.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire—13.6 KiB—15.1 KiB✅
      CodexThread snapshot wire—7.0 KiB—7.3 KiB✅
      CodexLive turn WebSocket wire—6.6 KiB—7.8 KiB✅
      CodexLive turn WebSocket decoded—57.1 KiB—66.4 KiB✅
      CodexLive turn messages—10—21✅
      ClaudeTotal thread wire—13.6 KiB—15.1 KiB✅
      ClaudeThread snapshot wire—7.0 KiB—7.3 KiB✅
      ClaudeLive turn WebSocket wire—6.6 KiB—7.8 KiB✅
      ClaudeLive turn WebSocket decoded—57.9 KiB—66.4 KiB✅
      ClaudeLive turn messages—10—21✅

      Baseline: unavailable · PR result: ebe89b2 · Source CI: success

      Scenario and decoded snapshot size

      10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

      • Codex decoded thread snapshot: 113.8 KiB
      • Claude decoded thread snapshot: 114.5 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

    3. macroscopeapp[bot](GitHub profile, opens in a new tab)commented

      Approvability

      Verdict: Approved at e359f23

      Macroscope's review found this PR approvable — This is a localized test-only compatibility change across four test files, skipping POSIX fixture tests on Windows without modifying production code or customer-facing behavior. It adds no product-default changes or static-analysis suppressions.

      Notes:

      • No code objects were reviewed. Approvability was decided on eligibility alone.

      No code changes detected at ebe89b2. Prior analysis still applies.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. juliusmarminge merged this4701041

    5. juliusmarminge closed this

Sign in to join this conversation.