CI: build and tests on a Windows runner (no GPU) #143

Manually merged
github merged 3 commits from gh-pr/143/head into gh-pr/143/base 2026-11-26 04:12:22 +00:00
Owner

@⁠tiagonleal on GitHub · 2026-11-23 15:08 UTC · original
tiagonleal:ci/windows-build-test → main · +70 −1 · 3 files · 3 commits · merged 2026-11-23 21:08 UTC

From the note on #125: "CI for build + non-GPU tests … worth doing".

.github/workflows/ci.yml runs on every push to main and on every pull request, on a GitHub Windows runner (windows-2025, about 2 minutes with the cargo cache). It runs ./scripts/test.ps1, so CI and a PC run the same thing. What it checks:

  • the workspace builds (MSVC, stable);
  • all unit / integration tests pass;
  • the recompiler's HLSL compiles with the runner's DXC (Windows SDK 10.0.26100).

GPU tests skip as they do on any adapter without the hardware (SKIPPED …, counted at the end). Tests on game data pass without running.

Validated on my fork (three runs, the last one green): 559 passed, 0 failed, 76 GPU tests skipped (no wave64).

What the runner has – and the three changes it needed

  • No Gaming Services (System32\xgameruntime.dll) and only the Microsoft Basic Render Driver (WARP: 4-lane waves). The launcher warns about both, and test_title_runs_and_game_folder_is_untouched treats any WARNING as a failure. That one test is skipped in CI (the reason is in the workflow) and still runs in scripts/test.ps1 on a PC.
  • scripts/test.ps1 passes its arguments to the test binaries (.\scripts\test.ps1 --skip <name>). Without arguments it does what it did before.
  • gpu_compute_e2e's two PSO-hook tests checked only for a real D3D12 device. On WARP the driver rejects the translated program, so they failed. They now skip without 32- or 64-lane waves (runner::wave64_programs_supported, as gpu_ready() does). On a GPU they run as before (checked on the RTX 5070 Ti). XCL_ADAPTER=warp cargo test --workspace now passes locally too (559 / 0).

Found on the way: the test title crashes on WARP

With only WARP, the test title ends with an access violation inside d3d10warp.dll. With XCL_D3D12_DEBUG=1, the debug layer shows draws with no root signature set: 13 of them on an RTX 5070 Ti too, where the driver tolerates it. These are draws with untranslated (PC / fallback) pipelines. bind::set_graphics_root_signature only records the console layout and never binds a PC root signature, and graphics_bound leaves untranslated pipelines to "their own root signature". That is a separate fix; I'll look at it next.

Permissions: contents: read. Third-party actions: none (actions/checkout, actions/cache).

AI-assisted.

🤖 Generated with Claude Code

**@⁠tiagonleal** on GitHub · 2026-11-23 15:08 UTC · [original](https://github.com/xcl-dev/xcl/pull/143) `tiagonleal:ci/windows-build-test` → `main` · +70 −1 · 3 files · 3 commits · merged 2026-11-23 21:08 UTC From the note on #125: "CI for build + non-GPU tests … worth doing". `.github/workflows/ci.yml` runs on every push to `main` and on every pull request, on a GitHub Windows runner (`windows-2025`, about 2 minutes with the cargo cache). It runs `./scripts/test.ps1`, so CI and a PC run the same thing. What it checks: - the workspace builds (MSVC, stable); - all unit / integration tests pass; - the recompiler's HLSL compiles with the runner's DXC (Windows SDK 10.0.26100). GPU tests skip as they do on any adapter without the hardware (`SKIPPED …`, counted at the end). Tests on game data pass without running. Validated on my fork (three runs, the last one green): **559 passed, 0 failed, 76 GPU tests skipped (no wave64)**. ### What the runner has – and the three changes it needed - **No Gaming Services** (`System32\xgameruntime.dll`) and **only the Microsoft Basic Render Driver** (WARP: 4-lane waves). The launcher warns about both, and `test_title_runs_and_game_folder_is_untouched` treats any `WARNING` as a failure. That one test is skipped in CI (the reason is in the workflow) and still runs in `scripts/test.ps1` on a PC. - `scripts/test.ps1` passes its arguments to the test binaries (`.\scripts\test.ps1 --skip <name>`). Without arguments it does what it did before. - `gpu_compute_e2e`'s two PSO-hook tests checked only for a real D3D12 device. On WARP the driver rejects the translated program, so they failed. They now skip without 32- or 64-lane waves (`runner::wave64_programs_supported`, as `gpu_ready()` does). On a GPU they run as before (checked on the RTX 5070 Ti). `XCL_ADAPTER=warp cargo test --workspace` now passes locally too (559 / 0). ### Found on the way: the test title crashes on WARP With only WARP, the test title ends with an access violation inside `d3d10warp.dll`. With `XCL_D3D12_DEBUG=1`, the debug layer shows draws with no root signature set: 13 of them on an RTX 5070 Ti too, where the driver tolerates it. These are draws with untranslated (PC / fallback) pipelines. `bind::set_graphics_root_signature` only records the console layout and never binds a PC root signature, and `graphics_bound` leaves untranslated pipelines to "their own root signature". That is a separate fix; I'll look at it next. Permissions: `contents: read`. Third-party actions: none (`actions/checkout`, `actions/cache`). _AI-assisted._ 🤖 Generated with [Claude Code](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:12:20 +00:00
github manually merged commit 8e2aec97a1 into gh-pr/143/base 2026-11-26 04:12:22 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-23 21:09 UTC · original

Merged (main 6da33fa). Checked on an RX 9070 (RDNA4) with the 22 PRs merged together on main eaa36b6: cargo build --workspace && cargo test --workspace -- --test-threads=4 - 582 unit tests passed, 0 failed (20 ignored), the integration and e2e tests passed too; and the retail game still reaches its first menu (646 frames in 30 s, no device removal).

**@⁠ivall** on GitHub · 2026-11-23 21:09 UTC · [original](https://github.com/xcl-dev/xcl/pull/143#issuecomment-7114071809) Merged (main 6da33fa). Checked on an RX 9070 (RDNA4) with the 22 PRs merged together on main eaa36b6: `cargo build --workspace && cargo test --workspace -- --test-threads=4` - 582 unit tests passed, 0 failed (20 ignored), the integration and e2e tests passed too; and the retail game still reaches its first menu (646 frames in 30 s, no device removal).
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-11-23 15:08 UTC · original · reviewed

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

**@⁠copilot-pull-request-reviewer[bot]** on GitHub · 2026-11-23 15:08 UTC · [original](https://github.com/xcl-dev/xcl/pull/143#pullrequestreview-6024036987) · **reviewed** Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
This discussion has been locked. Commenting is limited to contributors.
No description provided.