Skip to content

Run the unit test suites on a Windows runner in CI - #1146

Merged
jeremydmiller merged 3 commits into
mainfrom
ci/windows-test-job
Nov 8, 2026
Merged

jeremydmiller merged 3 commits into
mainfrom
ci/windows-test-job

Conversation

@jeremydmiller

@jeremydmiller jeremydmiller commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Adds a windows job to dotnet.yml. It runs on windows-latest and executes the same test targets as the Linux build job, through ./build.ps1:

compile, test-core, test-codegen, test-codegen-fsharp, test-command-line, test-events, test-event-store, test-source-generators, test-aspire, test-microsoft-extensions-ai

Like the Linux job, every step runs even when an earlier one fails, so a single run shows every Windows-specific failure.

Why: #1143 was a Windows-only bug: AssemblyFinder looked for "/runtimes" with a forward slash. Linux CI can't catch that kind of path or platform assumption.

Notes

  • core.autocrlf is set to false before checkout. Tests that compare generated code with committed fixtures then see the same bytes as on Linux. The aim is to test JasperFx on Windows, not git's line-ending conversion.
  • Left out: the CLI smoke tests, smoke-test-aot and the aot-cli gate (Run the JasperFx command line from a Native AOT binary; gate it in CI (#1141) #1142). They are about the command line and native publish, not platform paths.
  • The job has a 40-minute timeout, because Windows runners are noticeably slower.

Opened as a draft: this is the first time these suites run on Windows, so the first run may turn up real Windows failures. Those will be fixed here or split out before this is marked ready.

First Windows run

Every suite passed except test-command-line, which had one failure on both frameworks. override_the_content_root used /bin as the content root. That folder exists on Linux and macOS, but on Windows it resolves to a missing D:\bin\, and the host's PhysicalFileProvider throws. The test now uses a fresh temp directory. This was a test problem, not a library one.

🤖 Generated with Claude Code

Linux CI cannot catch platform assumptions such as the '/'-only path check in
AssemblyFinder (#1143). The new `windows` job runs the same test targets as the
Linux `build` job through build.ps1, with the committed line endings kept on
checkout. The CLI and AOT smoke tests stay Linux-only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jeremydmiller and others added 2 commits November 8, 2026 11:11
override_the_content_root used "/bin", which exists on Linux and macOS but
resolves to a missing D:\bin\ on the Windows runner, where the host's
PhysicalFileProvider throws DirectoryNotFoundException. Use a fresh temp
directory instead. This was the only failure in the first Windows CI run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jeremydmiller
jeremydmiller marked this pull request as ready for review November 8, 2026 17:22
@jeremydmiller
jeremydmiller merged commit 0f68d38 into main Nov 8, 2026
3 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.

1 participant