ci: run the recompiler unit tests #447

Manually merged
github merged 1 commit from gh-pr/447/head into gh-pr/447/base 2026-11-26 09:21:19 +00:00
Owner

@⁠MehmetCambaz on GitHub · 2026-09-01 21:27 UTC · original
MehmetCambaz:ai/work/ci-shader-tests → main · +11 −4 · 1 files · 1 commits · merged 2026-09-25 23:00 UTC

Why

The Windows, macOS, and Linux jobs build and run an explicit subset of CTest. Several CPU-only shader recompiler tests were absent, allowing regressions in those paths to pass CI.

What this adds

Each job now builds and runs these four tests:

  • resource_tracking — resource specialization and validation
  • scalar_provenance — scalar and SRT provenance
  • resource_materialization — resource materialization
  • shader_vertex_metadata — vertex metadata

The executables are EXCLUDE_FROM_ALL, so each appears in both the explicit cmake --build --target list and the CTest -R filter. Existing selections, including lru_cache, remain in place. The Vulkan-dependent shader_recompiler_compute suite and the full-emulator shader_cfg target remain outside this change.

The original version selected shader_stage_runtime. Commit 98200fe on main removed that test and introduced resource_materialization; this PR is rebased onto current main and uses the replacement.

Validation

  • Workflow YAML parses.
  • All selected test names and explicit test targets match current CMake registrations.
  • The filters select 8 tests on Windows and macOS and 10 on Linux.
  • CI checks for this updated commit are running.

AI use

The original contribution was developed with Claude assistance, as disclosed by its author. The rebase and update to the current test selection were performed with Codex assistance.

**@⁠MehmetCambaz** on GitHub · 2026-09-01 21:27 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/447) `MehmetCambaz:ai/work/ci-shader-tests` → `main` · +11 −4 · 1 files · 1 commits · merged 2026-09-25 23:00 UTC ## Why The Windows, macOS, and Linux jobs build and run an explicit subset of CTest. Several CPU-only shader recompiler tests were absent, allowing regressions in those paths to pass CI. ## What this adds Each job now builds and runs these four tests: - `resource_tracking` — resource specialization and validation - `scalar_provenance` — scalar and SRT provenance - `resource_materialization` — resource materialization - `shader_vertex_metadata` — vertex metadata The executables are `EXCLUDE_FROM_ALL`, so each appears in both the explicit `cmake --build --target` list and the CTest `-R` filter. Existing selections, including `lru_cache`, remain in place. The Vulkan-dependent `shader_recompiler_compute` suite and the full-emulator `shader_cfg` target remain outside this change. The original version selected `shader_stage_runtime`. Commit 98200fe on `main` removed that test and introduced `resource_materialization`; this PR is rebased onto current `main` and uses the replacement. ## Validation - Workflow YAML parses. - All selected test names and explicit test targets match current CMake registrations. - The filters select 8 tests on Windows and macOS and 10 on Linux. - CI checks for this updated commit are running. ## AI use The original contribution was developed with Claude assistance, as disclosed by its author. The rebase and update to the current test selection were performed with Codex assistance.
Build and run the CPU-only resource_tracking, scalar_provenance, resource_materialization, and shader_vertex_metadata tests on Windows, macOS, and Linux. Each test executable is excluded from the default build, so add it to the explicit CMake targets and the matching CTest selection. Leave the Vulkan-dependent shader_recompiler_compute suite for a separate CI setup.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:21:19 +00:00
github manually merged commit 9a3909f8fb into gh-pr/447/base 2026-11-26 09:21:19 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-09-25 22:50 UTC · original · edited 2026-09-25 22:52 UTC

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 7148ad45-cf31-40c4-b88d-7ad2be072aba

📥 Commits

Reviewing files that changed from the base of the PR and between 4e8d8c849d and 9a3909f8fb.

📒 Files selected for processing (1)
  • .github/workflows/build.yml

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


📝 Walkthrough

Walkthrough

The Windows, macOS, and Linux build jobs now build and run the resource_tracking, scalar_provenance, resource_materialization, and shader_vertex_metadata tests. Linux retains its existing memory_tracker and page_manager test selections.

Suggested reviewers: nmzik

Priority: ⬇️ Low

Change: Feature

Merge Risk: ⚪ Minimal · up to 9a390

The selected tests are configured to build and run on all three platforms. No actionable merge-blocking issue was established.

Architecture Summary

Architecture risk: 🔵 Low · up to 9a390

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed systems: None identified.

Architecture concerns
No architecture-level concerns identified.

Review details

Before / after behavior

  • observed — Modified behavior in .github/workflows/build.yml: The Windows build adds four test targets, and its CTest filter adds the corresponding test names while retaining the existing tests.
  • observed — Modified behavior in .github/workflows/build.yml: The macOS build adds four test targets, and its CTest filter adds the corresponding test names while retaining the existing tests.
  • observed — Modified behavior in .github/workflows/build.yml: The Linux build adds four test targets, and its CTest filter adds the corresponding test names while retaining the existing tests, including memory_tracker and page_manager.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.
Description check ✅ Passed The description clearly explains the CI workflow changes and identifies the recompiler tests added to the Windows, macOS, and Linux jobs.
Title check ✅ Passed The title clearly and concisely identifies the main change: running recompiler unit tests in CI.

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-09-25 22:50 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/447#issuecomment-5840731127) · edited 2026-09-25 22:52 UTC <!-- 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/447"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg?v=2" alt="Review in Change Stack →" width="220" height="32"></a> Navigate logical layers of code changes, visualize relationships, and explore their blast radius. <!-- review_stack_entry_end --> <!-- recent_review_start --> No actionable comments were generated in the recent review. 🎉 <details> <summary>ℹ️ Recent review info</summary> <details> <summary>⚙️ Run configuration</summary> **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml **Review profile**: CHILL **Plan**: Advanced **Run ID**: `7148ad45-cf31-40c4-b88d-7ad2be072aba` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 4e8d8c849dd45023bc5c1f8ffae324efe15cfaca and 9a3909f8fb1f86c741399282f9c021fdc1ca0f98. </details> <details> <summary>📒 Files selected for processing (1)</summary> * `.github/workflows/build.yml` </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. </details> --- <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough The Windows, macOS, and Linux build jobs now build and run the `resource_tracking`, `scalar_provenance`, `resource_materialization`, and `shader_vertex_metadata` tests. Linux retains its existing `memory_tracker` and `page_manager` test selections. **Suggested reviewers:** `nmzik` </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ⬇️ Low <!-- change_assessment_commit:"9a3909f8fb1f86c741399282f9c021fdc1ca0f98" --> **Change:** Feature <!-- change_assessment_end --> <!-- final_review_risk_start --> **Merge Risk:** _⚪ Minimal_ · up to `9a390` <!-- final_review_risk_coverage:{"sourceCommitId":"9a3909f8fb1f86c741399282f9c021fdc1ca0f98","coveredCommitId":"9a3909f8fb1f86c741399282f9c021fdc1ca0f98","kind":"reviewed"} --> The selected tests are configured to build and run on all three platforms. No actionable merge-blocking issue was established. <!-- final_review_risk_end --> <!-- architecture_review_start --> ### Architecture Summary **Architecture risk:** _🔵 Low_ · up to `9a390` The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency. **Changed systems:** None identified. **Architecture concerns** No architecture-level concerns identified. <details> <summary>Review details</summary> **Before / after behavior** - _observed_ — Modified behavior in .github/workflows/build.yml: The Windows build adds four test targets, and its CTest filter adds the corresponding test names while retaining the existing tests. - _observed_ — Modified behavior in .github/workflows/build.yml: The macOS build adds four test targets, and its CTest filter adds the corresponding test names while retaining the existing tests. - _observed_ — Modified behavior in .github/workflows/build.yml: The Linux build adds four test targets, and its CTest filter adds the corresponding test names while retaining the existing tests, including `memory_tracker` and `page_manager`. </details> <!-- architecture_review_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 5</summary> <details> <summary>✅ Passed checks (5 passed)</summary> | Check name | Status | Explanation | | :------------------------: | :------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0… | | 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. | | Description check | ✅ Passed | The description clearly explains the CI workflow changes and identifies the recompiler tests added to the Windows, macOS, and Linux jobs. | | Title check | ✅ Passed | The title clearly and concisely identifies the main change: running recompiler unit tests in CI. | </details> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- tips_start --> --- <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
This discussion has been locked. Commenting is limited to contributors.
No description provided.