Skip to content

Let eight console tests run on a Windows host - #438

Merged
jbearak merged 1 commit into
mainfrom
t3/windows-console-tests
Nov 20, 2026
Merged

jbearak merged 1 commit into
mainfrom
t3/windows-console-tests

Conversation

@jbearak

@jbearak jbearak commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Eight console tests fail on a Windows host and pass on macOS and Linux. All eight are assumptions in the tests; none shows a fault in the product. No product code changes.

Test Why it failed on Windows Change
Four under "integrated terminal first-send reliability" The block never pinned the platform. On Windows the extension opens the console pane, not the Stata CLI terminal these tests cover. Pin the platform to linux, as the other blocks in the file pin theirs.
locate_stata > skips a dangling symlink Creating a symlink needs administrator rights or Developer Mode (EPERM). Skipped on Windows.
History > persists entries with private permissions… Windows has no POSIX mode bits and reports 0o666. Only the two mode assertions are skipped on Windows; the rest of the test runs.
run_console > runs Stata directly when not attached to a terminal The stand-in Stata is a #!/bin/sh script. Skipped on Windows.
sight console under Node > passes piped input straight to Stata The Windows console refuses --stata by design and exits 2. Skipped on Windows.

The pane's behaviour on local Windows has its own test block, which already passes on Windows.

Proof

  • macOS: the three files pass with the same counts and no new skips; check:line-endings, typecheck, lint and bun test ./tests pass.
  • Windows 11, at 7f90b0b, each file on its own: send-to-stata-integrated-terminal 72 pass, 0 fail (was 68 pass, 4 fail); setup 15 pass, 2 skip, 0 fail (was 14 pass, 3 fail); console-pty 10 skip, 0 fail (was 9 skip, 1 fail).

The first-send tests cover the Stata CLI terminal but never pinned the
platform, so on Windows they got the console pane. Three tests use a
symlink, a shell script and POSIX mode bits, and one pipes to a Stata
that the Windows console refuses by design. Pin the platform for the
first, and skip or narrow the others on Windows. Nothing changes on
macOS or Linux.
@coderabbitai

coderabbitai Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

Next included review available in 50 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 90 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

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: 2694ec2c-b3b4-4575-8597-0c90e6e785ab
Commits

Reviewing files that changed from the base of the PR and between ae05149 and 7f90b0b.

Files selected for processing: 3

  • tests/integration/console/console-pty.test.ts
  • tests/integration/send-to-stata-integrated-terminal.test.ts
  • tests/unit/console/setup.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@jbearak
jbearak merged commit d4dc8cf into main Nov 20, 2026
20 of 21 checks passed
@jbearak
jbearak deleted the t3/windows-console-tests branch November 20, 2026 01:55
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