Repository navigation
CI: build and tests on a Windows runner (no GPU) - #143
Merged
Merged
Conversation
…runner); test.ps1 passes its arguments to the tests
…ut 32- or 64-lane waves (WARP)
Collaborator
|
Merged (main 6da33fa). Checked on an RX 9070 (RDNA4) with the 22 PRs merged together on main eaa36b6: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
From the note on #125: "CI for build + non-GPU tests … worth doing".
.github/workflows/ci.ymlruns on every push tomainand 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: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
System32\xgameruntime.dll) and only the Microsoft Basic Render Driver (WARP: 4-lane waves). The launcher warns about both, andtest_title_runs_and_game_folder_is_untouchedtreats anyWARNINGas a failure. That one test is skipped in CI (the reason is in the workflow) and still runs inscripts/test.ps1on a PC.scripts/test.ps1passes 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, asgpu_ready()does). On a GPU they run as before (checked on the RTX 5070 Ti).XCL_ADAPTER=warp cargo test --workspacenow 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. WithXCL_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_signatureonly records the console layout and never binds a PC root signature, andgraphics_boundleaves 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