Skip to content

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

Merged
ivall merged 3 commits into
xcl-dev:mainfrom
tiagonleal:ci/windows-build-test
Nov 23, 2026
Merged

ivall merged 3 commits into
xcl-dev:mainfrom
tiagonleal:ci/windows-build-test

Conversation

@tiagonleal

Copy link
Copy Markdown
Contributor

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

Copilot AI balanced review requested due to automatic review settings November 23, 2026 15:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@ivall

ivall commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

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).

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.

3 participants