Skip to content

Fix unit tests that fail on Windows CI - #523

Merged
jtklein merged 1 commit into
AntonelliLab:masterfrom
jtklein-agents:fix-windows-unit-tests
Nov 24, 2026
Merged

jtklein merged 1 commit into
AntonelliLab:masterfrom
jtklein-agents:fix-windows-unit-tests

Conversation

@jtklein-agents

Copy link
Copy Markdown
Contributor

Summary

Two test-only fixes for the windows-latest unit test job (seen failing on the dependabot PRs, e.g. #522).

Store tests: the test bridge's host followed the CI machine, so on Windows the store loaded the .exe binary list.

 // src/test/setup.ts
 const host: HostInfo = {
-  windows: process.platform === 'win32',
+  windows: false,   // host.test.ts still covers the Windows list

runProcess test: on Windows the args go through cmd.exe, which strips the quotes in the stand-in node -e script → syntax error, exit 1.

-['-e', `process.stdout.write(${JSON.stringify( line )}); process.exit(255)`]
+vi.stubEnv( 'RAXMLGUI_TEST_STDOUT', line )
+['-e', 'process.exitCode=255,process.stdout.write(process.env.RAXMLGUI_TEST_STDOUT)']

Evidence

  • Before: windows-latest unit tests: 20 failed | 464 passed

    • Run.computeds, alignmentStore, Part, pageStoreGaps, RunSimpleOptions, substitutionOptions: binaries.filter(name === 'raxmlHPC')[0] is undefined
    • processHelpers: expected Exited with code 255 / isUserFix, got Exited with code 1

    After: macOS locally: 485 passed. This PR's Windows CI run is the check for Windows.

Merge Danger

Door: two-way

Blast Radius: tests

Test files only. The store tests no longer run against the Windows binary list on Windows hosts; host.test.ts covers that list explicitly.

🤖 Generated with Claude Code

The test bridge's host followed the machine running the tests, so on
Windows the store loaded the .exe binary list while the store tests
expect raxml-ng and raxmlHPC. Pin the default test host off Windows;
host.test.ts still covers the Windows list.

runProcess goes through cmd.exe on Windows, which strips the quotes
from the stand-in node -e script, so node exited 1 with a syntax error.
Pass the printed line through the environment and keep the script free
of quotes and spaces.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jtklein
jtklein merged commit 8ca091d into AntonelliLab:master Nov 24, 2026
6 checks passed
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.

2 participants