ci: run shader_cfg_tests on every platform #2281

Open
github-bot wants to merge 4 commits from github-bot/gh-2281 into main AGit
Owner

@⁠Nawid3333 on GitHub · 2026-11-14 18:57 UTC · original
Nawid3333:ci/run-shader-cfg → main · +94 −33 · 4 files · 4 commits · open

Depends on #2280 and #2205. This branch holds their commits; the new commit is the last one (shader_cfg added to kyty_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_cfg joins kyty_ci_tests, so Windows, Linux and macOS build and run it.

On macOS it needs #2205: without it, TestGpuProducedWritableDescriptor aborts 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_tests in 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 built shader_cfg_tests) against https://github.com/Nawid3333/KytyPS5/actions/runs/43625508597 (#2280). Linux had no full-emulator test target before; Windows and macOS already build shader_recompiler_compute_tests.

Testing

Fork CI on this branch: Windows, Linux and macOS pass, shader_cfg included (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

**@⁠Nawid3333** on GitHub · 2026-11-14 18:57 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2281) `Nawid3333:ci/run-shader-cfg` → `main` · +94 −33 · 4 files · 4 commits · open Depends on #2280 and #2205. This branch holds their commits; the new commit is the last one (`shader_cfg` added to `kyty_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_cfg` joins `kyty_ci_tests`, so Windows, Linux and macOS build and run it. On macOS it needs #2205: without it, `TestGpuProducedWritableDescriptor` aborts 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_tests` in 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 built `shader_cfg_tests`) against https://github.com/Nawid3333/KytyPS5/actions/runs/43625508597 (#2280). Linux had no full-emulator test target before; Windows and macOS already build `shader_recompiler_compute_tests`. ## Testing Fork CI on this branch: Windows, Linux and macOS pass, `shader_cfg` included (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](https://claude.com/claude-code)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:18:04 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-14 19:04 UTC · original · edited 2026-11-23 17:05 UTC

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

CMake now defines a ci_tests target and labels its selected tests ci. 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, pipe530

Change: Other

Merge Risk: Minimal · up to 95d87

This 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: Passed 4

Check name Status Explanation
Title check Passed 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 k…
Description check Passed 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 #2205 for macOS, the build-time cost measurements, and t…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
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 #2205 for 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.

Warning

Some tools did not complete. Review the errors below.

Cppcheck (2.22.0)

Cppcheck (2.22.0) exceeded its 180-second time budget. Findings from completed work are retained; remaining checks are incomplete.

tests/shaderCfgTests.cpp

Cppcheck interrupted; analysis of this file is incomplete

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between bce9c9eca1 and 95d87fa2ae.

Files selected for processing: 4

  • .github/workflows/build.yml
  • CMakeLists.txt
  • tests/SrtWalkerTestMemory.h
  • tests/shaderCfgTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-14 19:04 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2281#issuecomment-6882693704) · edited 2026-11-23 17:05 UTC <!-- coderabbit-ai-generated:v1 --> <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/2281?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg" alt="Explain Change →" height="32"></picture></a> <!-- review_stack_entry_end --> <!-- recent_review_status_start --> No actionable comments were generated in the recent review. <!-- recent_review_status_end --> <!-- walkthrough_start --> <details> <summary><strong>Walkthrough</strong></summary> <dl> <dd> <br> CMake now defines a `ci_tests` target and labels its selected tests `ci`. 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`, `pipe530` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> <!-- change_assessment_commit:"95d87fa2ae7417f98e7f514b025894541462af4e" --> <!-- change_assessment_priority:{"version":1,"urgency":"p2","manual":false} --> **Change:** Other <!-- change_assessment_end --> <details> <summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-unassessed-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minimal</strong> · up to <code>95d87</code></summary> <dl> <dd> <br> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **⚪ Minimal** · up to `95d87` --> <!-- final_review_risk_coverage:{"sourceCommitId":"95d87fa2ae7417f98e7f514b025894541462af4e","coveredCommitId":"95d87fa2ae7417f98e7f514b025894541462af4e","kind":"reviewed"} --> This 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. <!-- final_review_risk_end --> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_start --> <details> <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 4</strong></summary> <dl> <dd> <br> | Check name | Status | Explanation | | :------------------------ | :--------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | 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 k… | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | 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 `#2205` for macOS, the build-time cost measurements, and t… | | Linked Issues check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | <details> <summary><strong>Full details: Title check</strong></summary> <dl> <dd> <br> **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. </dd> </dl> </details> <details> <summary><strong>Full details: Description check</strong></summary> <dl> <dd> <br> **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 `#2205` for 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. </dd> </dl> </details> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- operational_warnings_start --> <!-- This is an auto-generated comment: all tool run failures by coderabbit.ai --> > [!WARNING] > Some tools did not complete. Review the errors below. > > <details> > <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/wrench-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/wrench.svg" width="16" height="16" align="absmiddle" alt=""></picture> Cppcheck (2.22.0)</strong></summary> > <dl> > <dd> > <br> > > Cppcheck (2.22.0) exceeded its 180-second time budget. Findings from completed work are retained; remaining checks are incomplete. > > <details> > <summary><strong>tests/shaderCfgTests.cpp</strong></summary> > <dl> > <dd> > <br> > > Cppcheck interrupted; analysis of this file is incomplete > > </dd> > </dl> > </details> > > </dd> > </dl> > </details> <!-- end of auto-generated comment: all tool run failures by coderabbit.ai --> <!-- operational_warnings_end --> <!-- tips_start --> Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=2281)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary><strong>Share</strong></summary> <dl> <dd> <br> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </dd> </dl> </details> <!-- tips_end --> <!-- recent_review_start --> <h6> <details> <summary><strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Recent review info</strong></summary> <dl> <dd> <br> <!-- review_info_content --> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/578f2d43fe5d018617afaad94b1c90a07f6d9acc/.coderabbit.yaml>) - **Commit**: [578f2d4](<https://github.com/KytyPS5/KytyPS5/commit/578f2d43fe5d018617afaad94b1c90a07f6d9acc>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `17f07a06-8ad9-428c-90c2-dc48d4d86865` </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</strong></summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between bce9c9eca1ae73c122995c20d77abb49ae64747c and 95d87fa2ae7417f98e7f514b025894541462af4e. </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 4</strong></summary> <dl> <dd> <br> * `.github/workflows/build.yml` * `CMakeLists.txt` * `tests/SrtWalkerTestMemory.h` * `tests/shaderCfgTests.cpp` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. </dd> </dl> </details> </h6> <!-- recent_review_end -->
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2281/head:github-bot/gh-2281'
git switch 'github-bot/gh-2281'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2281'
git switch 'github-bot/gh-2281'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2281'
git switch 'github-bot/gh-2281'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2281'
git switch 'main'
git merge --squash 'github-bot/gh-2281'
git switch 'main'
git merge --ff-only 'github-bot/gh-2281'
git switch 'main'
git merge 'github-bot/gh-2281'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.