fix(agc): define the device lookup count in the pipeline cache allocation test instead of linking the driver library #15440

Merged
xXPBSXx merged 1 commit from upstream-pr/15440 into main 2026-11-10 04:22:13 +00:00
xXPBSXx commented 2026-11-03 09:59:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-11-03T09:59:40Z.


What

The nightly sanitizer run 41573880531 (job address-undefined, started 2026-11-03 03:43 UTC, head f6232fcfda) fails agc_pipeline_cache_allocation_startup, _now, _busy, _destructor and _worker with an AddressSanitizer odr-violation on the global RecompilerSwitches. The run of 2026-11-02 on 926f7dd492 passed them.

2781d72d18, added in #10764, put libSceAgcDriver on the link line of agc_pipeline_cache_allocation_tests so that the test links AgcDriver::Graphics::DeviceProcLookups(), which Context.hpp (L149, used at L291) declares and ShaderResources.cpp (L5265) defines; without it the test did not link. The test already links the static shader_recompiler_agc_driver, and libSceAgcDriver is a shared library (L436) that links the same static library (L465). The generated definition of RecompilerSwitches (ShaderCacheVersion.cmake L161) is therefore in both the test executable and the shared library.

This replaces the link with a thread-local definition of DeviceProcLookups() in tests/PipelineCacheFailures.cpp, and removes libSceAgcDriver from the link line.

Overlap

All 1674 open PRs were listed on 2026-11-03 at 09:01 UTC and their changed files read until 09:26 UTC, against main 4f41f4c375; the merge tests below ran with this change applied on that main. The files of this change are tests/PipelineCacheFailures.cpp and tests/cmake/agc_pipeline_cache_allocation_tests.cmake under core/libs/prx/libSceAgcDriver/. Eight open PRs change one of them; each was merged with and without this change (git merge-tree):

PR merge with this change merge without it
#15169 conflict conflict
#14330 clean clean
#13929 conflict conflict
#13928 conflict conflict
#11920 conflict conflict
#10193 conflict conflict
#9508 conflict conflict
#7642 conflict conflict

(Seven of them conflict with main with or without this change; #14330 merges cleanly in both cases.)

#11920 changes the same link line, to the one main had at d1ae628bc2 (libSceAgcDriver in the link list). It now conflicts with main itself, so the merge with this change could not be read; when it is rebased, that link must stay out, otherwise the test and libSceAgcDriver define RecompilerSwitches again. This change does not depend on #11920: #11920 keeps the definition of DeviceProcLookups() in ShaderResources.cpp, which this test does not compile, so the stub stays needed after it.

Tested

Ubuntu 24.04.5 on WSL2 (kernel 6.18.54.1), gcc 13.3.0, Release, -DANYPS5_ENABLE_ASAN=ON, -g1 -fsanitize=undefined -fno-sanitize=vptr (the flags of the nightly sanitizer workflow), ASAN_OPTIONS=detect_leaks=0, BUILD_TESTING=ON, 2026-11-03 between 06:25 and 06:33 UTC.

  • main d1ae628bc2: the 5 agc_pipeline_cache_allocation_* tests: 5 failed of 5.
  • this change on d1ae628bc2: the same 5 tests, 5 passed of 5.
    Not built on Windows: the only symbol the removed link provided is defined in the 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
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

AI-assisted (Claude Code).

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5135268085 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15440). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-11-03T09:59:40Z. --- ### What The nightly sanitizer run [41573880531](https://github.com/boykopovar/AnyPS5/actions/runs/41573880531) (job address-undefined, started 2026-11-03 03:43 UTC, head f6232fcfda70644495273f6b8dd88cf0603463d6) fails `agc_pipeline_cache_allocation_startup`, `_now`, `_busy`, `_destructor` and `_worker` with an AddressSanitizer `odr-violation` on the global `RecompilerSwitches`. The run of 2026-11-02 on 926f7dd492 passed them. 2781d72d189, added in #10764, put `libSceAgcDriver` on the link line of `agc_pipeline_cache_allocation_tests` so that the test links `AgcDriver::Graphics::DeviceProcLookups()`, which `Context.hpp` ([L149](https://github.com/boykopovar/AnyPS5/blob/d1ae628bc2f62459cce1e9872ba5632c938c71f2/core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp#L149), used at [L291](https://github.com/boykopovar/AnyPS5/blob/d1ae628bc2f62459cce1e9872ba5632c938c71f2/core/libs/prx/libSceAgcDriver/Graphics/include/Context.hpp#L291)) declares and `ShaderResources.cpp` ([L5265](https://github.com/boykopovar/AnyPS5/blob/d1ae628bc2f62459cce1e9872ba5632c938c71f2/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L5265)) defines; without it the test did not link. The test already links the static `shader_recompiler_agc_driver`, and `libSceAgcDriver` is a shared library ([L436](https://github.com/boykopovar/AnyPS5/blob/d1ae628bc2f62459cce1e9872ba5632c938c71f2/core/libs/prx/libSceAgcDriver/CMakeLists.txt#L436)) that links the same static library ([L465](https://github.com/boykopovar/AnyPS5/blob/d1ae628bc2f62459cce1e9872ba5632c938c71f2/core/libs/prx/libSceAgcDriver/CMakeLists.txt#L465)). The generated definition of `RecompilerSwitches` ([ShaderCacheVersion.cmake L161](https://github.com/boykopovar/AnyPS5/blob/d1ae628bc2f62459cce1e9872ba5632c938c71f2/core/shader/recompiler/ShaderCacheVersion.cmake#L161)) is therefore in both the test executable and the shared library. This replaces the link with a thread-local definition of `DeviceProcLookups()` in `tests/PipelineCacheFailures.cpp`, and removes `libSceAgcDriver` from the link line. ### Overlap All 1674 open PRs were listed on 2026-11-03 at 09:01 UTC and their changed files read until 09:26 UTC, against `main` `4f41f4c375`; the merge tests below ran with this change applied on that `main`. The files of this change are `tests/PipelineCacheFailures.cpp` and `tests/cmake/agc_pipeline_cache_allocation_tests.cmake` under `core/libs/prx/libSceAgcDriver/`. Eight open PRs change one of them; each was merged with and without this change (`git merge-tree`): | PR | merge with this change | merge without it | |---|---|---| | #15169 | conflict | conflict | | #14330 | clean | clean | | #13929 | conflict | conflict | | #13928 | conflict | conflict | | #11920 | conflict | conflict | | #10193 | conflict | conflict | | #9508 | conflict | conflict | | #7642 | conflict | conflict | (Seven of them conflict with `main` with or without this change; #14330 merges cleanly in both cases.) #11920 changes the same link line, to the one `main` had at `d1ae628bc2` (`libSceAgcDriver` in the link list). It now conflicts with `main` itself, so the merge with this change could not be read; when it is rebased, that link must stay out, otherwise the test and `libSceAgcDriver` define `RecompilerSwitches` again. This change does not depend on #11920: #11920 keeps the definition of `DeviceProcLookups()` in `ShaderResources.cpp`, which this test does not compile, so the stub stays needed after it. ### Tested Ubuntu 24.04.5 on WSL2 (kernel 6.18.54.1), gcc 13.3.0, Release, `-DANYPS5_ENABLE_ASAN=ON`, `-g1 -fsanitize=undefined -fno-sanitize=vptr` (the flags of the nightly sanitizer workflow), `ASAN_OPTIONS=detect_leaks=0`, BUILD_TESTING=ON, 2026-11-03 between 06:25 and 06:33 UTC. - `main` `d1ae628bc2`: the 5 `agc_pipeline_cache_allocation_*` tests: 5 failed of 5. - this change on `d1ae628bc2`: the same 5 tests, 5 passed of 5. Not built on Windows: the only symbol the removed link provided is defined in the test. ### Checklist - [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 - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
XairRrR commented 2026-11-03 10:14:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T10:14:51Z.

Review: COMMENTED


Reviewed — comments

The fix looks right and the affected tests pass. I'm leaving this as a comment rather than an approval because I couldn't reproduce the ASan odr-violation here and couldn't rebuild the negative control: the build tree can't be regenerated in a clean worktree on this machine.

What I ran

Head a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92, main 4f41f4c375f5abb487dbd184fbc150f31994d762, merged with --no-ff (tree 019cf40daf9e92da426c3b8369a72cdeca72ac9a). Machine: Debian 13 VM, 32 vCPU (Intel Xeon Gold 6136), GCC 14.2.0, Release, Ninja, BUILD_TESTING=ON. No ASan or UBSan in this build.

git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
readelf -d build/tests/agc_pipeline_cache_allocation_tests | grep NEEDED
nm -C build/tests/agc_pipeline_cache_allocation_tests | grep -E "RecompilerSwitches|DeviceProcLookups"
nm -C build/core/libs/libs/libSceAgcDriver.prx | grep -E "RecompilerSwitches|DeviceProcLookups"
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "agc_pipeline_cache_(allocation|read_retry)"
# negative control attempt
git show 4f41f4c375f5abb487dbd184fbc150f31994d762:<both changed files> > <path>
ninja -C build -j32 -l32 agc_pipeline_cache_allocation_tests
cmake -S . -B build
git show 019cf40daf9e92da426c3b8369a72cdeca72ac9a:<both changed files> > <path>
git status --porcelain

Results

Check Result
git diff --check clean
check_conventions.py All conventions checks passed
Configure, build, libs (script) ok
Script test run (1403 tests) no new failures, no timeouts; 2 known failures from main (unwrap_self_..._destination_directory_group, vector_constant_factor_tininess)
agc_pipeline_cache_allocation_{startup,now,busy,destructor,worker} 5/5 passed (worker 10.0 s, the rest 0.01 s)
Test binary NEEDED only libc.prx and system libraries; libSceAgcDriver.prx is no longer linked
RecompilerSwitches defined (D) in the test binary and separately in libSceAgcDriver.prx, so main's link line put two definitions in one process, as the description says
Validation-layer comparison (script) layer loaded in 209/210 tests; one new VUID, in agc_driver_native_depth_uniform_planes (see below)
Symbols
test binary:
 D ShaderRecompiler::ShaderDiskCache::Generated::RecompilerSwitches
 T AgcDriver::Graphics::DeviceProcLookups()
 b AgcDriver::Graphics::DeviceProcLookups()::count
libSceAgcDriver.prx:
 D ShaderRecompiler::ShaderDiskCache::Generated::RecompilerSwitches
 T AgcDriver::Graphics::DeviceProcLookups()
 b AgcDriver::Graphics::DeviceProcLookups()::count

About the VUID: the script reports VUID-vkCmdDispatch-groupCountX-00386 in agc_driver_native_depth_uniform_planes, marked "test not run on main". The validation baseline is an older main (d1ae628bc2). That test isn't in that tree; it was added to main later, in tests/cmake/agc_driver_native_multisample_depth_tests.cmake. This PR changes only the two files of the pipeline cache allocation test, so the VUID comes from main, not from this change. It should be followed up separately.

Negative control

I put back main's versions of both changed files and rebuilt the target. Ninja's glob check forced a CMake re-run, and that re-run failed in the sandbox: SDL2's configure_file gets "Operation not permitted". So the binary with main's link line was never rebuilt. In any case, this build has no ASan, so the odr-violation the PR fixes would not show up here even with a successful rebuild.

What I did check is static: the symbol listing above shows that libSceAgcDriver.prx carries its own definition of RecompilerSwitches, so linking it next to the static shader_recompiler_agc_driver duplicates that global, and the merged binary no longer links the library. I restored the merged files afterwards, and git status --porcelain is empty.

Findings

Blocking

None.

Non-blocking

  • core/libs/prx/libSceAgcDriver/tests/PipelineCacheFailures.cpp:23-30 copies the production definition at core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp:5272-5275 (head L5265-L5268). The two match today (thread_local std::uint64_t, returned by reference). If the production counter changes (for example to an atomic, or by moving out of ShaderResources.cpp), this copy will drift without anything noticing. An optional follow-up: move DeviceProcLookups() into its own small source file that both libSceAgcDriver and this test compile. This PR doesn't need it.
  • On Windows, main's link line needed the libSceAgcDriver DLL at run time, but the test's PATH setting only adds the libc directory. Dropping the link removes that dependency, which is a small improvement. I didn't build on Windows, and neither did the author.

Not verified

  • The ASan/UBSan odr-violation failure, before or after the change: this machine's build has no sanitizer, and reconfiguring for one isn't possible in the sandbox.
  • A rebuilt negative control (see above).
  • The Windows/MinGW build, including the read-retry test, which is only registered on Windows.
  • The overlap table in the description; I can't list other PRs offline.

To get this to a good state

Nothing needs to change in the code. The remaining step is evidence: a collaborator's nightly sanitizer run, or a manual Build run with ASan that includes this PR, showing agc_pipeline_cache_allocation_* passing would confirm the fix the description reports.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5750396254 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15440#pullrequestreview-5750396254). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T10:14:51Z. **Review:** COMMENTED --- # Reviewed — comments The fix looks right and the affected tests pass. I'm leaving this as a comment rather than an approval because I couldn't reproduce the ASan `odr-violation` here and couldn't rebuild the negative control: the build tree can't be regenerated in a clean worktree on this machine. ## What I ran Head `a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92`, `main` `4f41f4c375f5abb487dbd184fbc150f31994d762`, merged with `--no-ff` (tree `019cf40daf9e92da426c3b8369a72cdeca72ac9a`). Machine: Debian 13 VM, 32 vCPU (Intel Xeon Gold 6136), GCC 14.2.0, Release, Ninja, BUILD_TESTING=ON. No ASan or UBSan in this build. ``` git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92 python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 readelf -d build/tests/agc_pipeline_cache_allocation_tests | grep NEEDED nm -C build/tests/agc_pipeline_cache_allocation_tests | grep -E "RecompilerSwitches|DeviceProcLookups" nm -C build/core/libs/libs/libSceAgcDriver.prx | grep -E "RecompilerSwitches|DeviceProcLookups" ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "agc_pipeline_cache_(allocation|read_retry)" # negative control attempt git show 4f41f4c375f5abb487dbd184fbc150f31994d762:<both changed files> > <path> ninja -C build -j32 -l32 agc_pipeline_cache_allocation_tests cmake -S . -B build git show 019cf40daf9e92da426c3b8369a72cdeca72ac9a:<both changed files> > <path> git status --porcelain ``` ## Results | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | All conventions checks passed | | Configure, build, `libs` (script) | ok | | Script test run (1403 tests) | no new failures, no timeouts; 2 known failures from `main` (`unwrap_self_..._destination_directory_group`, `vector_constant_factor_tininess`) | | `agc_pipeline_cache_allocation_{startup,now,busy,destructor,worker}` | 5/5 passed (worker 10.0 s, the rest 0.01 s) | | Test binary `NEEDED` | only `libc.prx` and system libraries; `libSceAgcDriver.prx` is no longer linked | | `RecompilerSwitches` | defined (`D`) in the test binary **and** separately in `libSceAgcDriver.prx`, so `main`'s link line put two definitions in one process, as the description says | | Validation-layer comparison (script) | layer loaded in 209/210 tests; one new VUID, in `agc_driver_native_depth_uniform_planes` (see below) | <details><summary>Symbols</summary> ``` test binary: D ShaderRecompiler::ShaderDiskCache::Generated::RecompilerSwitches T AgcDriver::Graphics::DeviceProcLookups() b AgcDriver::Graphics::DeviceProcLookups()::count libSceAgcDriver.prx: D ShaderRecompiler::ShaderDiskCache::Generated::RecompilerSwitches T AgcDriver::Graphics::DeviceProcLookups() b AgcDriver::Graphics::DeviceProcLookups()::count ``` </details> About the VUID: the script reports `VUID-vkCmdDispatch-groupCountX-00386` in `agc_driver_native_depth_uniform_planes`, marked "test not run on main". The validation baseline is an older `main` (`d1ae628bc2`). That test isn't in that tree; it was added to `main` later, in `tests/cmake/agc_driver_native_multisample_depth_tests.cmake`. This PR changes only the two files of the pipeline cache allocation test, so the VUID comes from `main`, not from this change. It should be followed up separately. ## Negative control I put back `main`'s versions of both changed files and rebuilt the target. Ninja's glob check forced a CMake re-run, and that re-run failed in the sandbox: SDL2's `configure_file` gets "Operation not permitted". So the binary with `main`'s link line was never rebuilt. In any case, this build has no ASan, so the `odr-violation` the PR fixes would not show up here even with a successful rebuild. What I did check is static: the symbol listing above shows that `libSceAgcDriver.prx` carries its own definition of `RecompilerSwitches`, so linking it next to the static `shader_recompiler_agc_driver` duplicates that global, and the merged binary no longer links the library. I restored the merged files afterwards, and `git status --porcelain` is empty. ## Findings ### Blocking None. ### Non-blocking - `core/libs/prx/libSceAgcDriver/tests/PipelineCacheFailures.cpp:23-30` copies the production definition at `core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp:5272-5275` ([head L5265-L5268](https://github.com/boykopovar/AnyPS5/blob/a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L5265-L5268)). The two match today (`thread_local std::uint64_t`, returned by reference). If the production counter changes (for example to an atomic, or by moving out of `ShaderResources.cpp`), this copy will drift without anything noticing. An optional follow-up: move `DeviceProcLookups()` into its own small source file that both `libSceAgcDriver` and this test compile. This PR doesn't need it. - On Windows, `main`'s link line needed the `libSceAgcDriver` DLL at run time, but the test's `PATH` setting only adds the `libc` directory. Dropping the link removes that dependency, which is a small improvement. I didn't build on Windows, and neither did the author. ## Not verified - The ASan/UBSan `odr-violation` failure, before or after the change: this machine's build has no sanitizer, and reconfiguring for one isn't possible in the sandbox. - A rebuilt negative control (see above). - The Windows/MinGW build, including the `read-retry` test, which is only registered on Windows. - The overlap table in the description; I can't list other PRs offline. ## To get this to a good state Nothing needs to change in the code. The remaining step is evidence: a collaborator's nightly sanitizer run, or a manual Build run with ASan that includes this PR, showing `agc_pipeline_cache_allocation_*` passing would confirm the fix the description reports. <!-- anyps5-bots job=3269 head=a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92 -->
MarcZX10 commented 2026-11-03 10:51:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-03T10:51:15Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The implementation addresses the reported duplicate-symbol setup, but this PR and open #11920 change the same test link line in opposite directions without recording an agreed order.

What I ran

Reviewed head a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92 against base 4f41f4c375f5abb487dbd184fbc150f31994d762; the current-base merge preview is clean. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0, Git 2.39.5. I did not build locally.

git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15440
python3 tools/pr_stack_check.py 15440 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-15440-stack-final
gh pr checks 15440 --repo boykopovar/AnyPS5
gh api repos/boykopovar/AnyPS5/pulls/11920/files --paginate

Results

Check Result Note
Diff and conventions passed Patch and required PR fields pass.
Source and test registration passed Local counter matches production; five test modes are registered.
Dependency and overlap failed #11920 changes the same link line oppositely; no order is declared.
Hosted Windows job failed avplayer_http_patched_modules failed; not among changed files.
Other applicable hosted checks passed Eligibility, intake, labels, report, portability and conventions passed.
Local build and CTest not run No local compilation was performed.
Optional precheck helpers not run ABI and test-quality helpers are absent from the isolated PR snapshot.
Commands and unedited output
$ git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92
[no output; exit status 0]

$ python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15440
/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15440-a2eb0ff251ca/report.md
/tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15440-a2eb0ff251ca/report.json
Conclusion: checks failed

$ python3 tools/pr_stack_check.py 15440 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-15440-stack-final
/tmp/anyps5-15440-stack-final/stack-report.md
/tmp/anyps5-15440-stack-final/stack-report.json
# PR stack check — fresh
Target: https://github.com/boykopovar/AnyPS5/pull/15440
Target branch tip: `4f41f4c375f5abb487dbd184fbc150f31994d762`
All heads unchanged: **True**
Dependency order: #15440

## Individual merge previews
- PR #15440: **clean** against current base; head `a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92`; changed paths: none reported

## Dependency relationships
No declared PR dependencies were found in the target PR chain.

$ gh pr checks 15440 --repo boykopovar/AnyPS5
windows fail 25m4s https://github.com/boykopovar/AnyPS5/actions/runs/41615514403/job/125847929694
edge-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41615514403/job/125847932054
linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41615514403/job/125847932083
register-context skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41615514403/job/125847931160
relinker skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41615514403/job/125847931737
relinker-asan skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41615514403/job/125847932246
write-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41615514403/job/125847932185
conventions pass 18s https://github.com/boykopovar/AnyPS5/actions/runs/41615514458/job/125847885266
eligibility pass 4s https://github.com/boykopovar/AnyPS5/actions/runs/41615514403/job/125847880188
intake pass 5s https://github.com/boykopovar/AnyPS5/actions/runs/41615514604/job/125847884147
labels pass 8s https://github.com/boykopovar/AnyPS5/actions/runs/41615514478/job/125847883766
library-portability pass 1m51s https://github.com/boykopovar/AnyPS5/actions/runs/41615514412/job/125847879917
report pass 56s https://github.com/boykopovar/AnyPS5/actions/runs/41615514605/job/125847881478

The following tests FAILED:
	2425 - avplayer_http_patched_modules (Failed)

Precheck rows:
| Check | Status | Command / reason |
|---|---|---|
| build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` |
| diff_check | passed | `git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92` |
| conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 --head a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92 --title fix(agc): define the device lookup count in the pipeline cache allocation test instead of linking the driver library --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15440-a2eb0ff251ca/pr-body.md` |
| changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 --head a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92 --json` |
| python_syntax | not_applicable | `No changed Python implementation files.` |
| related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` |
| python_test_registration | not_applicable | `No changed test_*.py files.` |
| live_dependency_and_mergeability_check | failed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15440 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15440-a2eb0ff251ca/stack` |
| build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` |
| test_quality_heuristics | failed | `/usr/bin/python3 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15440-a2eb0ff251ca/head-a2eb0ff251ca-cacd58f3/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15440-a2eb0ff251ca/head-a2eb0ff251ca-cacd58f3 --json core/libs/prx/libSceAgcDriver/tests/PipelineCacheFailures.cpp core/libs/prx/libSceAgcDriver/tests/cmake/agc_pipeline_cache_allocation_tests.cmake` |
| negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` |

Negative control

Assertion Change to code under test Result
The test target must avoid the duplicate RecompilerSwitches definition Not run locally. The PR description reports the five allocation tests fail on its stated base and pass with this change. Author-reported only; not independently verified.

Findings

Blocking

  • The CMake fragment changes the same target_link_libraries line as open #11920, in the opposite direction: this PR removes libSceAgcDriver, while #11920 adds it. CONTRIBUTING.md requires authors of overlapping PRs to agree which goes first and record that order with Depends on; this PR currently says none. Please agree the order with #11920's author and update the checklist (for example, Depends on: #11920 if this PR follows it).

Non-blocking

  • The hosted Windows job failed at avplayer_http_patched_modules, a test not listed among this PR's changed files. I did not establish whether it also fails on the base; rerun the job or otherwise resolve the check before approval.
  • The test-quality heuristic reports possible unregistered C++ tests, but manual inspection confirms the five modes are registered in the changed CMake fragment.

Sources

Not verified

I did not build or run CTest locally, reproduce the Windows failure, or run the author's reported Linux ASan/UBSan tests. Linux and specialized hosted jobs were skipped. No console or physical-GPU behavior was tested.

To get this to a good state

Agree and record the merge order with #11920, then get the failing Windows check resolved. I will rerun the same precheck, stack/overlap inspection and applicable checks on the updated head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5750870064 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15440#pullrequestreview-5750870064). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-03T10:51:15Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The implementation addresses the reported duplicate-symbol setup, but this PR and open #11920 change the same test link line in opposite directions without recording an agreed order. ## What I ran Reviewed head `a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92` against base `4f41f4c375f5abb487dbd184fbc150f31994d762`; the current-base merge preview is clean. Environment: Debian Linux x86_64, Python 3.11.2, GCC 12.2.0, Git 2.39.5. I did not build locally. ```sh git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92 python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15440 python3 tools/pr_stack_check.py 15440 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-15440-stack-final gh pr checks 15440 --repo boykopovar/AnyPS5 gh api repos/boykopovar/AnyPS5/pulls/11920/files --paginate ``` ## Results | Check | Result | Note | |---|---|---| | Diff and conventions | passed | Patch and required PR fields pass. | | Source and test registration | passed | Local counter matches production; five test modes are registered. | | Dependency and overlap | failed | #11920 changes the same link line oppositely; no order is declared. | | Hosted Windows job | failed | `avplayer_http_patched_modules` failed; not among changed files. | | Other applicable hosted checks | passed | Eligibility, intake, labels, report, portability and conventions passed. | | Local build and CTest | not run | No local compilation was performed. | | Optional precheck helpers | not run | ABI and test-quality helpers are absent from the isolated PR snapshot. | <details><summary>Commands and unedited output</summary> ```text $ git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92 [no output; exit status 0] $ python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 15440 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15440-a2eb0ff251ca/report.md /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15440-a2eb0ff251ca/report.json Conclusion: checks failed $ python3 tools/pr_stack_check.py 15440 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-15440-stack-final /tmp/anyps5-15440-stack-final/stack-report.md /tmp/anyps5-15440-stack-final/stack-report.json # PR stack check — fresh Target: https://github.com/boykopovar/AnyPS5/pull/15440 Target branch tip: `4f41f4c375f5abb487dbd184fbc150f31994d762` All heads unchanged: **True** Dependency order: #15440 ## Individual merge previews - PR #15440: **clean** against current base; head `a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92`; changed paths: none reported ## Dependency relationships No declared PR dependencies were found in the target PR chain. $ gh pr checks 15440 --repo boykopovar/AnyPS5 windows fail 25m4s https://github.com/boykopovar/AnyPS5/actions/runs/41615514403/job/125847929694 edge-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41615514403/job/125847932054 linux skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41615514403/job/125847932083 register-context skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41615514403/job/125847931160 relinker skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41615514403/job/125847931737 relinker-asan skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41615514403/job/125847932246 write-watch skipping 0 https://github.com/boykopovar/AnyPS5/actions/runs/41615514403/job/125847932185 conventions pass 18s https://github.com/boykopovar/AnyPS5/actions/runs/41615514458/job/125847885266 eligibility pass 4s https://github.com/boykopovar/AnyPS5/actions/runs/41615514403/job/125847880188 intake pass 5s https://github.com/boykopovar/AnyPS5/actions/runs/41615514604/job/125847884147 labels pass 8s https://github.com/boykopovar/AnyPS5/actions/runs/41615514478/job/125847883766 library-portability pass 1m51s https://github.com/boykopovar/AnyPS5/actions/runs/41615514412/job/125847879917 report pass 56s https://github.com/boykopovar/AnyPS5/actions/runs/41615514605/job/125847881478 The following tests FAILED: 2425 - avplayer_http_patched_modules (Failed) Precheck rows: | Check | Status | Command / reason | |---|---|---| | build_and_compile | not_applicable | `The precheck deliberately does not configure, build, or compile AnyPS5.` | | diff_check | passed | `git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92` | | conventions_and_pr_template | passed | `/usr/bin/python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 --head a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92 --title fix(agc): define the device lookup count in the pipeline cache allocation test instead of linking the driver library --body /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15440-a2eb0ff251ca/pr-body.md` | | changed_export_abi_audit | failed | `/usr/bin/python3 tools/pr_abi_audit.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 --head a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92 --json` | | python_syntax | not_applicable | `No changed Python implementation files.` | | related_python_unit_tests | not_applicable | `No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.` | | python_test_registration | not_applicable | `No changed test_*.py files.` | | live_dependency_and_mergeability_check | failed | `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 15440 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15440-a2eb0ff251ca/stack` | | build_dependent_cpp_tests | not_applicable | `Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.` | | test_quality_heuristics | failed | `/usr/bin/python3 /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15440-a2eb0ff251ca/head-a2eb0ff251ca-cacd58f3/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/boykopovar-AnyPS5-pr-15440-a2eb0ff251ca/head-a2eb0ff251ca-cacd58f3 --json core/libs/prx/libSceAgcDriver/tests/PipelineCacheFailures.cpp core/libs/prx/libSceAgcDriver/tests/cmake/agc_pipeline_cache_allocation_tests.cmake` | | negative_controls | not_applicable | `No changed Python test module in tools/ can be run as a no-build base-source control.` | ``` </details> ## Negative control | Assertion | Change to code under test | Result | |---|---|---| | The test target must avoid the duplicate `RecompilerSwitches` definition | Not run locally. The PR description reports the five allocation tests fail on its stated base and pass with this change. | Author-reported only; not independently verified. | ## Findings ### Blocking - The CMake fragment changes the same `target_link_libraries` line as open #11920, in the opposite direction: this PR removes `libSceAgcDriver`, while #11920 adds it. `CONTRIBUTING.md` requires authors of overlapping PRs to agree which goes first and record that order with `Depends on`; this PR currently says `none`. Please agree the order with #11920's author and update the checklist (for example, `Depends on: #11920` if this PR follows it). ### Non-blocking - The hosted Windows job failed at `avplayer_http_patched_modules`, a test not listed among this PR's changed files. I did not establish whether it also fails on the base; rerun the job or otherwise resolve the check before approval. - The test-quality heuristic reports possible unregistered C++ tests, but manual inspection confirms the five modes are registered in the changed CMake fragment. ## Sources - [Repository rule for overlapping PRs](https://github.com/boykopovar/AnyPS5/blob/4f41f4c375f5abb487dbd184fbc150f31994d762/CONTRIBUTING.md#L70) - [This PR's test link line](https://github.com/boykopovar/AnyPS5/blob/a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92/core/libs/prx/libSceAgcDriver/tests/cmake/agc_pipeline_cache_allocation_tests.cmake#L4) - [#11920's opposite link change](https://github.com/boykopovar/AnyPS5/blob/44504d6dc27469917ea5c975fb01e91cf1a8b49d/core/libs/prx/libSceAgcDriver/tests/cmake/agc_pipeline_cache_allocation_tests.cmake#L4) - [Production lookup counter](https://github.com/boykopovar/AnyPS5/blob/a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92/core/libs/prx/libSceAgcDriver/Graphics/src/ShaderResources.cpp#L5265-L5268) ## Not verified I did not build or run CTest locally, reproduce the Windows failure, or run the author's reported Linux ASan/UBSan tests. Linux and specialized hosted jobs were skipped. No console or physical-GPU behavior was tested. ## To get this to a good state Agree and record the merge order with #11920, then get the failing Windows check resolved. I will rerun the same precheck, stack/overlap inspection and applicable checks on the updated head.
XairRrR commented 2026-11-03 12:37:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by XairRrR on 2026-11-03T12:37:30Z.

Review: COMMENTED


Re-checked — comments

Nothing in the code changed. The head is still a2eb0ff251. Since my last review the author replied to MarcZX10's change request about the order with #11920 and about the Windows job. The checks and the five allocation tests still pass. I still can't reproduce the ASan odr-violation here, so this stays a comment.

What changed since my last review

  • No new commits. The delta is empty: a2eb0ff251 = a2eb0ff251.
  • The author commented on 2026-11-03 at 11:55 UTC, replying to MarcZX10's review:
    • They proposed the merge order on #11920 and kept Depends on: none.
    • They attributed the failing hosted Windows job (avplayer_http_patched_modules) to an existing main problem that #15375 fixes.

What I ran

Head a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92, main 4f41f4c375f5abb487dbd184fbc150f31994d762, merged with --no-ff. Release, GCC 14.2.0, Ninja, BUILD_TESTING=ON. No sanitizers in this build.

git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92
python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762
ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "agc_pipeline_cache_allocation"
readelf -d build/tests/agc_pipeline_cache_allocation_tests | grep NEEDED
# negative control attempt
git show 4f41f4c375f5abb487dbd184fbc150f31994d762:<both changed files> > <path>
ninja -C build -j32 -l32 agc_pipeline_cache_allocation_tests
git show 6b567e4426c7e4021dd179e22c633d99a634ceb4:<both changed files> > <path>
git status --porcelain
Check Result
git diff --check clean
check_conventions.py All conventions checks passed
Script build and test run (1382 tests) no new failures, no timeouts; 2 known main failures (unwrap_self_..._destination_directory_group, vector_constant_factor_tininess)
Script validation-layer comparison layer loaded in 207 of 208 tests, layer_missing_in empty, 0 tests with new VUIDs. The VUID I reported last time as coming from main is gone now that the baseline is the same main.
agc_pipeline_cache_allocation_{startup,now,busy,destructor,worker} 5 of 5 passed (worker 10.01 s, the others 0.01 s)
Test binary NEEDED libc.prx and system libraries only; no libSceAgcDriver.prx
Negative control not rebuilt: the CMake regeneration fails in the sandbox, as it did last time. Files restored and git status --porcelain is empty.

Previous findings

  • Still open (non-blocking): the test's copy of DeviceProcLookups() at core/libs/prx/libSceAgcDriver/tests/PipelineCacheFailures.cpp:23-30 can drift from the production definition in ShaderResources.cpp. The code is unchanged. An optional follow-up is still to put the function in its own source file that both targets compile.
  • Still open (non-blocking, observation): dropping the link also removes the test's run-time need for the libSceAgcDriver DLL on Windows. This is still untested on Windows by me and by the author.

About the author's reply to MarcZX10

  • Depends on: I agree with the author. main has had libSceAgcDriver on this link line since 2781d72d18, and this PR works on current main without #11920. The test does not compile ShaderResources.cpp, so the stub stays needed even after #11920. #11920 is the PR that has to rebase, and that rebase must keep the link out. So the dependency points from #11920 to this PR, and Depends on: none is correct here. The rule in CONTRIBUTING.md asks for an agreed order; that is up to the two authors and maintainers, and I can't verify it offline.
  • Windows avplayer_http_patched_modules: this PR doesn't touch that test or its CMake. I can't open the cited runs or #15375 offline, so I take the explanation as author-reported. Nothing in this diff could plausibly cause a file COPY_FILE failure in AvPlayerHttpModules.cmake.

New findings

Blocking

None.

Non-blocking

None.

Not verified

  • The ASan/UBSan odr-violation, before or after the change. This build has no sanitizer, and the sandbox can't reconfigure it. The 5/5 → 5/5 result with ASan on d1ae628bc2 is author-reported.
  • A rebuilt negative control: CMake regeneration fails in the sandbox.
  • The Windows/MinGW build and the hosted Windows failure.
  • The merge order agreed with #11920.

To get this to a good state

The code needs no changes. To approve, I still need one piece of evidence: a collaborator's ASan run that includes this PR (nightly sanitizer or a manual Build run) and shows agc_pipeline_cache_allocation_* passing.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5752266237 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15440#pullrequestreview-5752266237). Originally posted by [XairRrR](https://github.com/XairRrR) on 2026-11-03T12:37:30Z. **Review:** COMMENTED --- # Re-checked — comments Nothing in the code changed. The head is still `a2eb0ff251`. Since my last review the author replied to MarcZX10's change request about the order with #11920 and about the Windows job. The checks and the five allocation tests still pass. I still can't reproduce the ASan `odr-violation` here, so this stays a comment. ## What changed since my last review - No new commits. The delta is empty: `a2eb0ff251 = a2eb0ff251`. - The author commented on 2026-11-03 at 11:55 UTC, replying to MarcZX10's review: - They proposed the merge order on #11920 and kept `Depends on: none`. - They attributed the failing hosted Windows job (`avplayer_http_patched_modules`) to an existing `main` problem that #15375 fixes. ## What I ran Head `a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92`, `main` `4f41f4c375f5abb487dbd184fbc150f31994d762`, merged with `--no-ff`. Release, GCC 14.2.0, Ninja, BUILD_TESTING=ON. No sanitizers in this build. ``` git diff --check 4f41f4c375f5abb487dbd184fbc150f31994d762...a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92 python3 tools/check_conventions.py --base 4f41f4c375f5abb487dbd184fbc150f31994d762 ctest --test-dir build -j8 --test-load 32 --output-on-failure -R "agc_pipeline_cache_allocation" readelf -d build/tests/agc_pipeline_cache_allocation_tests | grep NEEDED # negative control attempt git show 4f41f4c375f5abb487dbd184fbc150f31994d762:<both changed files> > <path> ninja -C build -j32 -l32 agc_pipeline_cache_allocation_tests git show 6b567e4426c7e4021dd179e22c633d99a634ceb4:<both changed files> > <path> git status --porcelain ``` | Check | Result | |---|---| | `git diff --check` | clean | | `check_conventions.py` | All conventions checks passed | | Script build and test run (1382 tests) | no new failures, no timeouts; 2 known `main` failures (`unwrap_self_..._destination_directory_group`, `vector_constant_factor_tininess`) | | Script validation-layer comparison | layer loaded in 207 of 208 tests, `layer_missing_in` empty, 0 tests with new VUIDs. The VUID I reported last time as coming from `main` is gone now that the baseline is the same `main`. | | `agc_pipeline_cache_allocation_{startup,now,busy,destructor,worker}` | 5 of 5 passed (worker 10.01 s, the others 0.01 s) | | Test binary `NEEDED` | `libc.prx` and system libraries only; no `libSceAgcDriver.prx` | | Negative control | not rebuilt: the CMake regeneration fails in the sandbox, as it did last time. Files restored and `git status --porcelain` is empty. | ## Previous findings - **Still open (non-blocking):** the test's copy of `DeviceProcLookups()` at `core/libs/prx/libSceAgcDriver/tests/PipelineCacheFailures.cpp:23-30` can drift from the production definition in `ShaderResources.cpp`. The code is unchanged. An optional follow-up is still to put the function in its own source file that both targets compile. - **Still open (non-blocking, observation):** dropping the link also removes the test's run-time need for the `libSceAgcDriver` DLL on Windows. This is still untested on Windows by me and by the author. ## About the author's reply to MarcZX10 - **`Depends on`:** I agree with the author. `main` has had `libSceAgcDriver` on this link line since 2781d72d189, and this PR works on current `main` without #11920. The test does not compile `ShaderResources.cpp`, so the stub stays needed even after #11920. #11920 is the PR that has to rebase, and that rebase must keep the link out. So the dependency points from #11920 to this PR, and `Depends on: none` is correct here. The rule in CONTRIBUTING.md asks for an agreed order; that is up to the two authors and maintainers, and I can't verify it offline. - **Windows `avplayer_http_patched_modules`:** this PR doesn't touch that test or its CMake. I can't open the cited runs or #15375 offline, so I take the explanation as author-reported. Nothing in this diff could plausibly cause a `file COPY_FILE` failure in `AvPlayerHttpModules.cmake`. ## New findings ### Blocking None. ### Non-blocking None. ## Not verified - The ASan/UBSan `odr-violation`, before or after the change. This build has no sanitizer, and the sandbox can't reconfigure it. The 5/5 → 5/5 result with ASan on `d1ae628bc2` is author-reported. - A rebuilt negative control: CMake regeneration fails in the sandbox. - The Windows/MinGW build and the hosted Windows failure. - The merge order agreed with #11920. ## To get this to a good state The code needs no changes. To approve, I still need one piece of evidence: a collaborator's ASan run that includes this PR (nightly sanitizer or a manual Build run) and shows `agc_pipeline_cache_allocation_*` passing. <!-- anyps5-bots job=3319 head=a2eb0ff251ca40e85d6b0c2f28c61e75a6079b92 -->
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!15440
No description provided.