Skip to content

Run the tests on a Windows host in CI - #439

Merged
jbearak merged 3 commits into
mainfrom
t3/windows-test-job
Nov 20, 2026
Merged

jbearak merged 3 commits into
mainfrom
t3/windows-test-job

Conversation

@jbearak

@jbearak jbearak commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Adds a "Tests on Windows" job that runs bun run test:ci on windows-latest. Nothing in CI ran the suite on Windows before, which is how about 200 Windows test failures and a broken sight check went unseen (fixed in #440 and #441).

Changes

  • CI: the new job, limited to 30 minutes. It takes about four minutes.
  • Bun version: the Windows job uses Bun 1.4.4. With the pinned 1.3.13 the run hangs at send-to-stata-app-temp-file-lifecycle.test.ts on the Windows runner; the cause is not known. The other jobs keep 1.3.13.
  • Pseudo-terminal console tests: skipped on Windows. That backend is for macOS and Linux; on the runner Bun's terminal is available, so the tests ran against a console that refuses --stata there.
  • Three disk-heavy tests get a 30-second limit (two deep oracle properties and the help-file negative-cache eviction test). They write or probe thousands of files and took over 5 seconds on the runner against under 1 second on Ubuntu. No speed budget is changed.
  • binary-command-name test: now expects the test command twice in ci.yml.

Proof

  • Native Windows runner at ddc50f2: 0 failures (see the "Tests on Windows" job).
  • The formatter, lexer, debounce and context-lookup speed tests that fail in an emulated ARM64 Windows VM all pass on the runner, so none was changed.
  • macOS: typecheck, lint and the changed test files pass.

Summary by CodeRabbit

  • Chores

    • Added automated Windows checks to the continuous integration process, extending verification across supported platforms.
  • Tests

    • Improved the reliability of automated checks across different operating systems and runtimes by allowing additional time for longer-running tests and adjusting platform-specific test coverage. These changes strengthen confidence in build and test results without changing application behavior.

@coderabbitai

coderabbitai Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The CI workflow adds a Windows test job. The test changes skip pseudo-terminal tests on Windows and extend timeouts for selected tests. A unit test now expects the additional CI test command.

Changes: Windows CI test coverage

Layer / File(s) Summary
Windows test compatibility
tests/integration/console/console-pty.test.ts, tests/property/forward-call-out-of-scope-oracle.prop.test.ts, tests/unit/resolve-sthlp-file.test.ts
Pseudo-terminal tests now require a non-Windows platform. Three deep-graph properties and the negative-cache eviction test use 30-second timeouts.
Windows CI job
.github/workflows/ci.yml, tests/unit/binary-command-name.test.ts
The workflow runs bun run test:ci on Windows when server or client paths change. The workflow assertion expects two CI test commands.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Possibly related PRs

  • jbearak/sight#441: Both PRs address the timing-sensitive Windows negative-cache eviction test.
  • jbearak/sight#341: This PR defines the platform scope of the pseudo-terminal backend that the Windows test skip reflects.
Merge Risk: Minimal · up to ddc50

This PR adds Windows test coverage to CI and makes small test adjustments for Windows. It does not change shipped behavior, and the risk of merging is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Run the tests on a Windows host in CI" matches the main change. The raw summary and objectives show a new CI job that runs bun run test:ci on windows-latest. The other changes (pseudo-t…
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.
Full details: Title check

Explanation

The title "Run the tests on a Windows host in CI" matches the main change. The raw summary and objectives show a new CI job that runs bun run test:ci on windows-latest. The other changes (pseudo-terminal test gating, longer timeouts, and the updated binary-command-name expectation) support that CI addition. The title is short, specific, and free of noise.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Team
  • Run ID: 24e6fd4e-147b-493f-91a7-63fe09dc9284
Commits

Reviewing files that changed from the base of the PR and between 52149c2 and ddc50f2.

Files selected for processing: 5

  • .github/workflows/ci.yml
  • tests/integration/console/console-pty.test.ts
  • tests/property/forward-call-out-of-scope-oracle.prop.test.ts
  • tests/unit/binary-command-name.test.ts
  • tests/unit/resolve-sthlp-file.test.ts

Included review availability: This review used your included allowance. 1 included review remains after this review. Your included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.

@jbearak
jbearak force-pushed the t3/windows-test-job branch from 3359157 to fa0fd3b Compare November 20, 2026 12:51
@jbearak
jbearak force-pushed the t3/windows-test-job branch from fa0fd3b to 2741641 Compare November 20, 2026 13:23
…eavy oracle properties 30 seconds

On a native Windows runner Bun's terminal is available, so the
pseudo-terminal tests ran against a console that refuses --stata
there. The deep oracle properties write a chain of files per run and
took over 5 seconds on the runner.
Its thousand missed lookups probe the disk several thousand times,
which takes over 5 seconds on a Windows runner.
@jbearak
jbearak marked this pull request as ready for review November 20, 2026 13:40
@jbearak
jbearak merged commit 4245c14 into main Nov 20, 2026
17 checks passed
@jbearak
jbearak deleted the t3/windows-test-job branch November 20, 2026 16:05
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