ci: run shader_cfg_tests on every platform #2281
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!2281
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2281"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Nawid3333 on GitHub · 2026-11-14 18:57 UTC · original
Nawid3333:ci/run-shader-cfg→main· +94 −33 · 4 files · 4 commits · openDepends on #2280 and #2205. This branch holds their commits; the new commit is the last one (
shader_cfgadded tokyty_ci_tests). I will rebase it when they are merged.shader_cfg_tests(tests/shaderCfgTests.cpp) runs the recompiler end to end (CFG, translation, resource planning, SPIR-V emission) on many reduced shaders, but CI never builds or runs it. #2016 left it out because it is a full-emulator test: one more build of the emulator sources and one more emulator-sized link per job.Change
shader_cfgjoinskyty_ci_tests, so Windows, Linux and macOS build and run it.On macOS it needs #2205: without it,
TestGpuProducedWritableDescriptoraborts there because the runner has the test's fake SRT address mapped (details in #2205).Cost
Fork CI, same base, warm build cache, with and without
shader_cfg_testsin the build: the Build step takes 69% longer on Linux, 37% longer on macOS, and no longer on Windows, one run each: https://github.com/Nawid3333/KytyPS5/actions/runs/43624664554 (an earlier version of #2280 that also builtshader_cfg_tests) against https://github.com/Nawid3333/KytyPS5/actions/runs/43625508597 (#2280). Linux had no full-emulator test target before; Windows and macOS already buildshader_recompiler_compute_tests.Testing
Fork CI on this branch: Windows, Linux and macOS pass,
shader_cfgincluded (https://github.com/Nawid3333/KytyPS5/actions/runs/43625717475).Written with Claude Code (AI): Claude Code wrote the change and checked the fork CI runs.
🤖 Generated with Claude Code
@coderabbitai[bot] on GitHub · 2026-11-14 19:04 UTC · original · edited 2026-11-23 17:05 UTC
No actionable comments were generated in the recent review.
Walkthrough
CMake now defines a
ci_teststarget and labels its selected testsci. Windows, macOS, and Linux workflows build that target and run tests by label, with platform-specific settings. A test memory helper now reserves an address range and derives addresses with a requested low word. The writable descriptor test uses this helper and checks the high-word update after a low-word carry.Suggested reviewers:
nmzik,mrbigbritches,pipe530Change: Other
Merge Risk:
Minimal · up to
95d87This change makes CI build and run the shader configuration tests on every platform and makes one descriptor test use a reserved address range. No concrete merge-blocking risk was found. The main cost is longer Linux and macOS build times.
Pre-merge checks:
4
#2205for macOS, the build-time cost measurements, and t…Full details: Title check
Explanation
The title names the main change: adding shader_cfg_tests to the CI test set so it runs on every platform. It is a conventional-commit style title that matches the changeset, which adds shader_cfg to kyty_ci_tests in CMakeLists.txt. The title is specific enough to be understood from history.
Full details: Description check
Explanation
The description states that shader_cfg_tests joins kyty_ci_tests so Windows, Linux and macOS build and run it. It also covers the dependency on
#2205for macOS, the build-time cost measurements, and the fork CI test results. These all relate to the changeset, which adds the ci_tests target, the ci labels, and the FakeGuestAddressSpace test changes.Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
17f07a06-8ad9-428c-90c2-dc48d4d86865Reviewing files that changed from the base of the PR and between
bce9c9eca1and95d87fa2ae..github/workflows/build.ymlCMakeLists.txttests/SrtWalkerTestMemory.htests/shaderCfgTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.