fix(agc): report the SPIR-V check runs as skipped when the build leaves their tests out #10991

Merged
MarcZX10 merged 2 commits from upstream-pr/10991 into main 2026-10-26 21:34:56 +00:00
MarcZX10 commented 2026-10-25 12:41:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T12:41:27Z.


What

ANYPS5_AGC_EXECUTION_TESTS lets a build compile only some AGC execution tests; the others are built from tests/ExecutionTestNotBuilt.cpp, which prints skipped, this build leaves the test out with ANYPS5_AGC_EXECUTION_TESTS and exits with 77. Every registration of an execution test treats 77 as a skip, except two that were added without SKIP_RETURN_CODE:

  • agc_driver_f64_denorm_preserve_spirv (agc_driver_f64_fma_subnormals_tests --verify-spv-denorm-mode)
  • agc_driver_f16_to_f32_unpack_spirv (agc_driver_f16_to_f32_unpack_tests --verify-spirv)

So in a build that leaves F64FmaSubnormals or F16ToF32Unpack out, ctest reports these two as failed instead of skipped. The Windows MSYS2 workflow lists both sources in ANYPS5_AGC_EXECUTION_TESTS, which hides this there. This sets SKIP_RETURN_CODE 77 on both. The verification modes of the real tests never exit with 77, so a real failure still fails.

Two commits, one per test registration.

Tested

Linux x86-64 (Debian 12, GCC 12), a full build with -DANYPS5_AGC_EXECUTION_TESTS=AddressPasses: on current main both tests are reported as Failed; with this change both are reported as Skipped. python3 tools/check_conventions.py --base upstream/main --head HEAD and git diff --check upstream/main pass, and python3 tools/pr_overlap.py --branch marc/fix-agc-spirv-check-skip reports no conflicting pull request (only older pull requests that conflict with main and share core/libs/prx/libSceAgcDriver/CMakeLists.txt). A build that includes both sources was not run here; with them the real tests run as before. Windows and macOS were not run.

After rebasing onto the latest main, python3 tools/check_conventions.py --base upstream/main --head HEAD and git diff --check upstream/main...HEAD pass. The overlap scan found 53 open PRs that also touch this CMake file but cannot be compared against main because their branches already conflict with it; I checked their registrations for these two test names and none adds SKIP_RETURN_CODE for either test.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source (not applicable; no third-party code added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a (test registration only; no GPU test run)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5004810556 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10991). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T12:41:27Z. --- ### What `ANYPS5_AGC_EXECUTION_TESTS` lets a build compile only some AGC execution tests; the others are built from `tests/ExecutionTestNotBuilt.cpp`, which prints `skipped, this build leaves the test out with ANYPS5_AGC_EXECUTION_TESTS` and exits with 77. Every registration of an execution test treats 77 as a skip, except two that were added without `SKIP_RETURN_CODE`: - `agc_driver_f64_denorm_preserve_spirv` (`agc_driver_f64_fma_subnormals_tests --verify-spv-denorm-mode`) - `agc_driver_f16_to_f32_unpack_spirv` (`agc_driver_f16_to_f32_unpack_tests --verify-spirv`) So in a build that leaves `F64FmaSubnormals` or `F16ToF32Unpack` out, ctest reports these two as failed instead of skipped. The Windows MSYS2 workflow lists both sources in `ANYPS5_AGC_EXECUTION_TESTS`, which hides this there. This sets `SKIP_RETURN_CODE 77` on both. The verification modes of the real tests never exit with 77, so a real failure still fails. Two commits, one per test registration. ### Tested Linux x86-64 (Debian 12, GCC 12), a full build with `-DANYPS5_AGC_EXECUTION_TESTS=AddressPasses`: on current `main` both tests are reported as `Failed`; with this change both are reported as `Skipped`. `python3 tools/check_conventions.py --base upstream/main --head HEAD` and `git diff --check upstream/main` pass, and `python3 tools/pr_overlap.py --branch marc/fix-agc-spirv-check-skip` reports no conflicting pull request (only older pull requests that conflict with `main` and share `core/libs/prx/libSceAgcDriver/CMakeLists.txt`). A build that includes both sources was not run here; with them the real tests run as before. Windows and macOS were not run. After rebasing onto the latest `main`, `python3 tools/check_conventions.py --base upstream/main --head HEAD` and `git diff --check upstream/main...HEAD` pass. The overlap scan found 53 open PRs that also touch this CMake file but cannot be compared against `main` because their branches already conflict with it; I checked their registrations for these two test names and none adds `SKIP_RETURN_CODE` for either test. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source (not applicable; no third-party code added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a (test registration only; no GPU test run) - [x] AI-assisted: yes
THEMANnt commented 2026-10-26 19:16:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-26T19:16:33Z.

Review: APPROVED


Reviewed 882a3e39b67daf13458c7f2e5c29bd04b9730abb. Approve; no actionable finding in this focused review.

Both SPIR-V verification registrations now treat the existing return code 77 as an explicit skip rather than a failure. Shader production code and the verification command arguments are unchanged.

Validation: Ran real CTest fixtures using the exact submitted property lines and controlled commands returning 77. Both candidate registrations are skipped; the same two comparison-base registrations fail.

Scope / next step: This checks CTest classification for omitted feature tests. It does not execute shaders or establish GPU/Vulkan validation.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5657679891 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/10991#pullrequestreview-5657679891). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-26T19:16:33Z. **Review:** APPROVED --- Reviewed `882a3e39b67daf13458c7f2e5c29bd04b9730abb`. Approve; no actionable finding in this focused review. Both SPIR-V verification registrations now treat the existing return code 77 as an explicit skip rather than a failure. Shader production code and the verification command arguments are unchanged. **Validation:** Ran real CTest fixtures using the exact submitted property lines and controlled commands returning 77. Both candidate registrations are skipped; the same two comparison-base registrations fail. **Scope / next step:** This checks CTest classification for omitted feature tests. It does not execute shaders or establish GPU/Vulkan validation.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!10991
No description provided.