feat(tools): fail when a library source that defines exports is never built #11104

Merged
EagleBearerYS merged 20 commits from upstream-pr/11104 into main 2026-11-03 08:09:59 +00:00
EagleBearerYS commented 2026-10-25 17:38:26 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by EagleBearerYS on 2026-10-25T17:38:26Z.


What

This is stacked on #10944, which makes the build fixes: it compiles the Export.cpp stubs of libSceAgc, libSceAgcDriver, libSceAudiodec.native, libSceAvPlayer.native, libSceNgs2.native, libSceNpTrophy2 and libSceNpUniversalDataSystem, and exports libSceNgs2's PendingExports.cpp. This PR adds what #10944 doesn't:

  • A check for library sources that are never built. CI already runs tools/check_test_registration.py after configure. It now also fails when a non-test .cpp under core/libs/prx defines an APS5_VABI function and no target compiles it (or #includes it from a compiled source). A stub file that never ships is then caught, instead of being counted by tools/progress.py.
    • It reads Ninja's compile commands.
    • tools/tests/test_unbuilt_exports.py covers it with 7 cases (ctest unbuilt_exports).
    • On today's main it lists exactly the seven files #10944 builds, plus libScePlayerInvitationDialog's.
  • libScePlayerInvitationDialog's Export.cpp is removed. No target ever built it, and its two return 0 stubs duplicate scePlayerInvitationDialogTerminate and scePlayerInvitationDialogUpdateStatus, which libScePlayerInvitationDialog.cpp implements.
  • Debt entries: libSceAgcDriver, libSceNgs2.native and libSceNpUniversalDataSystem gain the pending-exports entries the other four libraries already have.
  • Tests for every newly exported stub. #10944 checks one export per library. The tests here check that every other one is exported: 23 in AgcDriver, 13 in Ngs2.native, libSceNgs2's 2, 22 in NpTrophy2 and 10 in NpUniversalDataSystem. main has since implemented 11 of AgcDriver's, 1 of Ngs2.native's and 4 of libSceNgs2's, and the tables dropped them (see Tested). libSceAudiodec.native (14) and libSceAvPlayer.native (2) get their first guest tests.

Tested

  • GitHub's runners: run 40203257979, against #10944's head as the base. unbuilt_exports, test_registration, player_invitation_dialog, agc_driver_unsupported_diagnostics, ngs2_handleerrors, guest_nptrophy2, guest_np_trophy_data, guest_audiodec_native and guest_avplayer_native pass 10 of 10 on Linux and on Windows, 0 skipped.

  • Linux (Ubuntu 24.04, gcc 13.3), no title:

    • On main without #10944, tools/check_test_registration.py build exits 1 and lists the seven Export.cpp files #10944 builds, plus libScePlayerInvitationDialog's. On this branch it exits 0.
    • unbuilt_exports runs 7 cases.
    • Every commit builds and passes the registration check and its own tests.
    • Full ctest: 2,228 tests, 2,132 passed, 91 skipped. The 5 failures are the IPv6-dependent socket tests, which fail on main too on that machine.
  • b8fdf5ec80, function-try-block exports (run), after thepoppfish's and MarcZX10's reviews: the guard's matcher now accepts an optional try before the body, as tools/progress.py does, so a source whose exports are function-try-blocks, as libSceAudioOut/src/AudioOut2Port.cpp's four are, is reported when it is not built. test_unbuilt_exports.py gains thepoppfish's case for try, noexcept try and a multiline noexcept/try: with the old matcher its 3 subtests fail, and with the change the file's 8 tests pass. With AudioOut2Port.cpp left out of the compiled set, the guard now names it. unbuilt_exports and test_registration pass 10 runs in a row: Linux 2 run, 2 pass, 0 skip, 0 fail; Windows the same. Suites: libc and libkernel pass on Linux (144 and 207) and on Windows (171 and 223). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • 0bbc49b8d1, a merge of main 710cf9c035 (run). Felipebmaitan's #10127 adds the ngs2_pcm test to libSceNgs2.native/CMakeLists.txt next to this PR's link line for ngs2_handleerrors_tests, and a PCM playback entry in docs/dev/debt/libSceNgs2.native.md next to this PR's pending-exports entry; the merge keeps both in each, and nothing else conflicted. This PR's changed lines are the same as before the merge, and the pending-exports counts still match Export.cpp (15 for libSceNgs2.native, 35 for libSceAgcDriver). The tests for the newly built Export.cpp files, ngs2_pcm, test_registration and unbuilt_exports pass 10 runs in a row. Linux: 11 run, 11 pass, 0 skip, 0 fail. Windows: 11 run, 11 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (144 and 209), and libc passes on Windows (171). Windows' libkernel suite runs 227 tests and fails guest_timed_join_import_libkernel_sys and guest_timed_join_import_libkernel_web, which this PR doesn't touch; main 88f99678bf fails the same two in this verify's Windows job (run), and main's own Windows CI passes them. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • 856a0b78d5, the placeholder checks dropped (run), after oneandonlydean's review. The tables in UnsupportedDiagnostics.cpp, Ngs2HandleErrors.cpp, GuestAudiodecNative.cpp, GuestAvPlayerNative.cpp, GuestNpTrophy2.cpp and GuestNpTrophyData.cpp now check only that each newly built export is present; the ThrowsNotImplemented helpers and the calls that required a placeholder to throw are gone. The single checks that come from #10944 (testUnimplemented in libSceAgc's Platform.cpp, sceAgcDriverSetFlip, sceNgs2RackQueryInfo, sceNpTrophy2SystemCreateContext and sceNpUniversalDataSystemIntInitialize) are left to #10944, where the same change was asked. The tests for the newly built Export.cpp files, ngs2_pcm, test_registration and unbuilt_exports pass 10 runs in a row. Linux: 11 run, 11 pass, 0 skip, 0 fail. Windows: 11 run, 11 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (144 and 209), and libc passes on Windows (171). Windows' libkernel suite runs 227 tests and fails guest_timed_join_import_libkernel_sys and guest_timed_join_import_libkernel_web, the same two as at 0bbc49b8d1, which this PR doesn't touch (main's run). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • 19b89c1499, a merge of #10944's a073f12cd0 (run, run). In a073f12cd0, ahmadmuj replaces #10944's single checks that sceAgcDriverSetFlip, sceNgs2RackQueryInfo, sceNpTrophy2SystemCreateContext and sceNpUniversalDataSystemIntInitialize throw, and testUnimplemented in libSceAgc's Platform.cpp, with checks that each export is linked, without calling it. Four test files conflicted, each where that check sits next to this PR's code; the merge takes #10944's link check and keeps this PR's code: UnsupportedDiagnostics.cpp keeps this PR's export table; in Ngs2HandleErrors.cpp, main calls #10944's CheckExportLinked, then this PR's CheckPendingExports and CheckCorePendingExports; GuestNpTrophy2.cpp still calls this PR's ResolvePendingExports; and GuestNpTrophyData.cpp calls #10944's ReportExportLinked and this PR's ResolveInternalExports. Nothing else conflicted. The first run took the tests for every file the merge changes, 10 runs each. Linux: 238 run, 229 pass, 9 skip (seven AGC tests on lavapipe and two video-out tests with no display or Vulkan device), 0 fail; libc and libkernel pass (145 and 211). Windows: 259 run, 172 pass, 85 skip (83 AGC tests and the same two video-out tests, no Vulkan device), 2 fail: agc_driver_frame_replay and agc_driver_frame_replay_concurrent, whose agc_frame_replay helper exited with 0xC0000139 (entry point not found) within 0.2 s. On Windows libc passes (174), and libkernel has 2 failures of 232, guest_timed_join_import_libkernel_sys and guest_timed_join_import_libkernel_web, each a Python FileNotFoundError: [WinError 2] (the system cannot find the file specified). The second run, on the same commit, names the agc_driver_frame_replay tests with the tests for the five test files the merge changes, 10 runs each. Linux: 8 run, 8 pass, 0 skip, 0 fail. Windows: 13 run, 13 pass, 0 skip, 0 fail, including all eight agc_driver_frame_replay tests. Suites: libc and libkernel pass on Linux (145 and 211) and on Windows (174 and 232), the two guest_timed_join_import tests included. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • 54601cad34, a merge of main 173cf6550a (run). The one conflict was docs/dev/debt/libSceAgcDriver.md, where mazen320's #10307 extends the sceAgcDriverSubmitCommandBuffer, sceAgcDriverSubmitMultiCommandBuffers entry just below this PR's pending-exports entry; the merge keeps both. This PR's diff is otherwise the same. For the guard: every core/libs/prx source that main added since #10944's a073f12cd0 and that defines an APS5_VABI function is named in its library's CMake file, and the two Export.cpp files whose pending exports the debt entries count are unchanged (35 for libSceAgcDriver, 15 for libSceNgs2.native). That is a source scan, not a run of check_test_registration.py build. unbuilt_exports, test_registration and the tests of the newly built exports ran 10 times with no failure. Linux: 10 run, 10 pass, 0 skip, 0 fail. Windows: 10 run, 10 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (166 and 265). On Windows libc passes (194), and libkernel passes 285 of 288: exec_arguments, guest_timed_join_import_libkernel_sys and guest_timed_join_import_libkernel_web fail at their setup in the verify's Windows build (FileNotFoundError starting the title, or copying the libraries they load), with main's code too, and pass in main's own Windows job at 1829def9bf (job). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • 60baf80572, the export tables looked up by name (run), after THEMANnt's review, which found that Release builds fold each table's null checks away, and with them the tables' references to the exports. Each of the six tests now gets its library's built file from its add_test line ($<TARGET_FILE:…>; ngs2_handleerrors gets libSceNgs2.native's and libSceNgs2's), opens it (dlopen, LoadLibraryA) and looks up every name in its table (dlsym, GetProcAddress). One name the library doesn't export, such as sceAudiodecNotExported, must not resolve. The table entries are read through a volatile copy, so the test binaries keep importing them. Only the test files and their CMake lines change, with the lookup in a new core/libs/tests/ExportLookup.hpp.

    • The check fails when a name is missing: on a scratch branch with one extra entry, sceAudiodecTerminateMissing, in GuestAudiodecNative.cpp's table, guest_audiodec_native fails on Linux and Windows with "sceAudiodecTerminateMissing is not exported" (run).
    • The imports are kept: the imported names of the Release test binaries were listed with nm -D --undefined-only on Linux (GCC 13.3) and objdump -p on Windows (GCC 15.2). At 54601cad34, guest_audiodec_native_tests imports 0 of its table's 14 names, guest_avplayer_native_tests 0 of 2, ngs2_handleerrors_tests 0 of 20 and guest_np_trophy_data_tests 0 of 10, on both (run). At 60baf80572 all six import every name in their tables on both, including guest_nptrophy2_tests (22) and agc_driver_unsupported_diagnostics_tests (34), which already did.
    • Runs: unbuilt_exports, test_registration, player_invitation_dialog, agc_driver_unsupported_diagnostics, ngs2_handleerrors, ngs2_pcm, guest_nptrophy2, guest_np_trophy_data, guest_audiodec_native and guest_avplayer_native pass 10 of 10 on Linux and Windows: 10 run, 10 pass, 0 skip, 0 fail on each. The libc and libkernel suites pass on Linux (166 and 265) and Windows (194 and 288). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • 9e5738a59f, a merge of main f7f03daf52 and the pending list's fix. TechLevelZero's NVIDIA run of 60baf80572 merged onto main f6fddd60d8 didn't build: Ngs2HandleErrors.cpp:31: invalid conversion from 'int (*)(Ngs2JobSchedulerOption*)' to 'int (*)()'.

    • The cause: kyon-eth's #11315 implemented sceNgs2JobSchedulerResetOption with an Ngs2JobSchedulerOption* parameter and tests it in the same file. This PR's CheckPendingExports still listed it as a no-parameter stub.
    • The change: 9c9a58f669 merges main (clean; this PR's diff is unchanged). 9e5738a59f drops that entry, and the libSceNgs2.native debt entry counts the 14 exports still pending. Every other name in the six tables is still a stub on main.
    • Red: the merge alone, 9c9a58f669 (run), doesn't build on either runner: Ngs2HandleErrors.cpp fails with the same invalid conversion from int (*)(Ngs2JobSchedulerOption*) to int (*)().
    • ×10 on both runners:
      • unbuilt_exports, agc_driver_unsupported_diagnostics, ngs2_handleerrors, guest_nptrophy2, guest_np_trophy_data, guest_audiodec_native and guest_avplayer_native (run, on 22524b2bf8, the same tree as 9e5738a59f with a shorter commit message): 7 run, 7 pass, 0 skip, 0 fail on Linux and on Windows.
      • test_registration, player_invitation_dialog and ngs2_pcm, with agc_driver_unsupported_diagnostics, guest_nptrophy2, guest_np_trophy_data, guest_audiodec_native and guest_avplayer_native again (run, on 9e5738a59f): 8 run, 8 pass, 0 skip, 0 fail on Linux and on Windows.
      • The libc and libkernel suites run 198 and 304 tests on Linux and 225 and 326 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
  • c3a182199b, a merge of main cf0e33b6a0 and a list update.

    • The conflict: one hunk in Ngs2HandleErrors.cpp, where edubox's #12599 adds CheckFftQuerySize() and CheckEnumeration() just above this PR's int main(int argc, char** argv). 1c9c0a26fd keeps both: main() runs #12599's two checks, then this PR's two. This PR's diff is unchanged.
    • The list update: #12599 also implemented sceNgs2FftQuerySize, sceNgs2ParseWaveformUser, sceNgs2SystemEnumHandles and sceNgs2SystemEnumRackHandles. CheckCorePendingExports still called them pending. It kept passing, since libSceNgs2.prx exports all four by name. c3a182199b drops those four, leaving sceNgs2FftInit and sceNgs2FftProcess, which are still stubs on main.
    • The guard passes on the merged tree: every core/libs/prx source that defines an APS5_VABI function is compiled.
    • ×10 on both runners, on c3a182199b (run):
      • unbuilt_exports, test_registration, ngs2_handleerrors, ngs2_pcm, ngs2_core_pcm, player_invitation_dialog, agc_driver_unsupported_diagnostics, guest_nptrophy2, guest_np_trophy_data, guest_audiodec_native and guest_avplayer_native: 11 run, 11 pass, 0 skip, 0 fail on Linux and on Windows.
      • The libc and libkernel suites run 199 and 307 tests on Linux and 226 and 329 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • On Linux (lavapipe), on the merge: all 45 ngs2_* tests, unbuilt_exports, agc_driver_unsupported_diagnostics, guest_audiodec_native, guest_avplayer_native, guest_nptrophy2 and guest_np_trophy_data pass 10 of 10, 51 tests in all.
  • 2e3ec56be5: a61e7d7b04, a merge of main d4de5943f6, and a list update.

    • The conflict: one hunk in libSceAgcDriver/tests/UnsupportedDiagnostics.cpp, where BunnyFl's #13471 adds seven checks (exit codes 4 to 10) of the driver calls it moved from Export.cpp to Unimplemented.cpp, which now return their retail errors. The merge keeps both: #13471's checks, then this PR's export table and lookup.
    • One line beyond both sides, named in the merge's message: the libSceAgcDriver pending-exports debt entry counts 28 named callable exports, not 35, since #13471's seven no longer throw.
    • The list update (2e3ec56be5): the pending table drops those seven, leaving the 27 that still throw. The name lookup's failure now returns 11, since #13471's sceAgcDriverGetPaDebugInterfaceVersion check returns 5.
    • The guard passes on the merged tree.
    • ×10 on both runners, on 2e3ec56be5 (run):
      • all 45 ngs2_* tests, unbuilt_exports, agc_driver_unsupported_diagnostics, guest_audiodec_native, guest_avplayer_native, guest_nptrophy2, guest_np_trophy_data, test_registration and player_invitation_dialog: 53 run, 53 pass, 0 skip, 0 fail on Linux and on Windows.
      • The libc and libkernel suites run 199 and 307 tests on Linux and 226 and 329 on Windows, with 0 failed. The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.
    • On Linux (lavapipe), on a61e7d7b04: ctest -R '^(agc|shader)' 1,156 passed, 0 failed.
  • f90a7e9b30, a merge of main 0836dfdf4f (run). #12862 moved libSceAgcDriver's test registrations into tests/cmake/; the conflict in CMakeLists.txt is resolved with tools/agc_test_split.py resolve, which moves this PR's change to agc_driver_unsupported_diagnostics' registration, which passes $<TARGET_FILE:libSceAgcDriver>, into tests/cmake/agc_driver_unsupported_diagnostics_tests.cmake (+1 −1). Nothing else conflicted. Apart from the move, this PR's diff is unchanged. With -DBUILD_TESTING=ON, ctest -N gives 3078 tests: main's 3075 plus its 3 new tests (its 4 changed registrations keep their names), each listed once. The 53 tests of this PR's verify set pass 10 runs in a row. Linux: 53 run, 53 pass, 0 skip, 0 fail. Windows: 53 run, 53 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (199 and 308) and on Windows (226 and 330). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • e48d215045, a merge of main f776fddcff (run). The one conflict was core/libs/prx/libSceAudiodec.native/CMakeLists.txt, where zaryabzip's #13719 adds a guest_audiodec_ajm_context test block at the spot where this PR adds its guest_audiodec_native block. Both are kept, each unchanged: #13719's first, then this PR's. Apart from one blank line between them, this PR's diff is unchanged. This PR's verify set and guest_audiodec_ajm_context pass 10 runs in a row, so unbuilt_exports also runs over #13719's new export. Linux: 54 run, 54 pass, 0 skip, 0 fail. Windows: 54 run, 54 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (199 and 308) and on Windows (226 and 330). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

  • NVIDIA RTX 2000 Ada Generation at e48d215045, from TechLevelZero's NVIDIA bot (report): driver 595.99.02, Ubuntu 26.04.1, this head merged onto main 3741ca9, every test, since the change reaches the whole build.

    • 3,068 passed, 6 failed and 50 skipped. None of the failures is new: 3 also fail on main, and 3 are unstable on main.
    • With VK_LAYER_KHRONOS_validation, over 1,229 tests on the GPU, there are no new validation IDs against main.
  • b211f54b97: 48f0002490, a merge of main 7feb37ee3e, and a list update. This PR's head merged onto main didn't build: UnsupportedDiagnostics.cpp fails with 4 errors, such as invalid conversion from 'uint32_t (*)(uint32_t*, uint32_t)' to 'int (*)()'. It isn't a text conflict, so GitHub still showed the PR as mergeable.

    • The cause: BunnyFl's #13474 implemented sceAgcDriverUserDataWritePacket, sceAgcDriverUserDataWritePushMarker, sceAgcDriverUserDataWriteSetMarker and sceAgcDriverUserDataWritePopMarker in Submit/src/Dcb.cpp, with their firmware signatures, and removed their stubs from Export.cpp. This PR's export table still listed them as no-parameter stubs.
    • The change: 48f0002490 merges main (clean; this PR's diff is unchanged). b211f54b97 drops those four rows, and the libSceAgcDriver debt entry counts the 24 exports still pending.
    • The other names in the six tables are still no-parameter stubs on main: 23 in AgcDriver, 15 in Ngs2 (13 native, 2 core), 14 in Audiodec.native, 2 in AvPlayer.native, 22 in NpTrophy2 and 10 in NpUniversalDataSystem.
    • Red: the merge alone, 48f0002490 (run), doesn't build on either runner. UnsupportedDiagnostics.cpp fails with the same 4 invalid conversions to int (*)(), at lines 45 to 48.
    • The guard: every core/libs/prx source that main added since f776fddcff and that defines an APS5_VABI function is compiled, by a source scan rather than a run of check_test_registration.py build. There are 58:
      • 46 named in a CMake file;
      • 10 Export.cpp files of libraries without a CMake file of their own, which core/libs/CMakeLists.txt's default rule builds;
      • libSceNKWebKit's src/ConstantExports.cpp, through its src/*.cpp glob;
      • libwebrtc's Vad.cpp, from core/libs/CMakeLists.txt.
    • ×10 on both runners (run): unbuilt_exports, test_registration, player_invitation_dialog, agc_driver_unsupported_diagnostics, ngs2_handleerrors, ngs2_pcm, ngs2_core_pcm, guest_nptrophy2, guest_np_trophy_data, guest_audiodec_native and guest_avplayer_native: 11 run, 11 pass, 0 skip, 0 fail on Linux and on Windows. Suites: libc and libkernel pass on Linux (279 and 321) and on Windows (306 and 342). The suites ran with APS5_SKIP_TIMING_TESTS=1, which relaxes precise_wait's median bounds on GitHub's hosted runners.

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: #10944 (stacked: builds the libraries this guard checks); #10127 merged first, as agreed, and this branch now merges it. #6973 to #7002 and #10307 overlap only in adjacent debt entries; whichever merges second keeps both
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a (a build check); the full suite also ran on an NVIDIA RTX 2000 Ada Generation (driver 595.99.02, Ubuntu 26.04.1) in TechLevelZero's NVIDIA bot
  • AI-assisted: yes

Related: #10944

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5007059700 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11104). Originally posted by [EagleBearerYS](https://github.com/EagleBearerYS) on 2026-10-25T17:38:26Z. --- ### What This is stacked on #10944, which makes the build fixes: it compiles the `Export.cpp` stubs of libSceAgc, libSceAgcDriver, libSceAudiodec.native, libSceAvPlayer.native, libSceNgs2.native, libSceNpTrophy2 and libSceNpUniversalDataSystem, and exports libSceNgs2's `PendingExports.cpp`. This PR adds what #10944 doesn't: - **A check for library sources that are never built.** CI already runs `tools/check_test_registration.py` after configure. It now also fails when a non-test `.cpp` under `core/libs/prx` defines an `APS5_VABI` function and no target compiles it (or `#include`s it from a compiled source). A stub file that never ships is then caught, instead of being counted by `tools/progress.py`. - It reads Ninja's compile commands. - `tools/tests/test_unbuilt_exports.py` covers it with 7 cases (ctest `unbuilt_exports`). - On today's main it lists exactly the seven files #10944 builds, plus libScePlayerInvitationDialog's. - **libScePlayerInvitationDialog's `Export.cpp` is removed.** No target ever built it, and its two `return 0` stubs duplicate `scePlayerInvitationDialogTerminate` and `scePlayerInvitationDialogUpdateStatus`, which `libScePlayerInvitationDialog.cpp` implements. - **Debt entries:** libSceAgcDriver, libSceNgs2.native and libSceNpUniversalDataSystem gain the pending-exports entries the other four libraries already have. - **Tests for every newly exported stub.** #10944 checks one export per library. The tests here check that every other one is exported: 23 in AgcDriver, 13 in Ngs2.native, libSceNgs2's 2, 22 in NpTrophy2 and 10 in NpUniversalDataSystem. `main` has since implemented 11 of AgcDriver's, 1 of Ngs2.native's and 4 of libSceNgs2's, and the tables dropped them (see Tested). libSceAudiodec.native (14) and libSceAvPlayer.native (2) get their first guest tests. ### Tested - **GitHub's runners:** [run 40203257979](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40203257979), against #10944's head as the base. `unbuilt_exports`, `test_registration`, `player_invitation_dialog`, `agc_driver_unsupported_diagnostics`, `ngs2_handleerrors`, `guest_nptrophy2`, `guest_np_trophy_data`, `guest_audiodec_native` and `guest_avplayer_native` pass 10 of 10 on Linux and on Windows, 0 skipped. - **Linux** (Ubuntu 24.04, gcc 13.3), no title: - On main without #10944, `tools/check_test_registration.py build` exits 1 and lists the seven `Export.cpp` files #10944 builds, plus libScePlayerInvitationDialog's. On this branch it exits 0. - `unbuilt_exports` runs 7 cases. - Every commit builds and passes the registration check and its own tests. - Full ctest: 2,228 tests, 2,132 passed, 91 skipped. The 5 failures are the IPv6-dependent socket tests, which fail on main too on that machine. - **b8fdf5ec80, function-try-block exports** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40221153578)), after thepoppfish's and MarcZX10's reviews: the guard's matcher now accepts an optional `try` before the body, as `tools/progress.py` does, so a source whose exports are function-try-blocks, as `libSceAudioOut/src/AudioOut2Port.cpp`'s four are, is reported when it is not built. `test_unbuilt_exports.py` gains thepoppfish's case for `try`, `noexcept try` and a multiline `noexcept`/`try`: with the old matcher its 3 subtests fail, and with the change the file's 8 tests pass. With `AudioOut2Port.cpp` left out of the compiled set, the guard now names it. `unbuilt_exports` and `test_registration` pass 10 runs in a row: Linux 2 run, 2 pass, 0 skip, 0 fail; Windows the same. Suites: libc and libkernel pass on Linux (144 and 207) and on Windows (171 and 223). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **0bbc49b8d1, a merge of `main` 710cf9c035** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40244118570)). Felipebmaitan's #10127 adds the `ngs2_pcm` test to `libSceNgs2.native/CMakeLists.txt` next to this PR's link line for `ngs2_handleerrors_tests`, and a PCM playback entry in `docs/dev/debt/libSceNgs2.native.md` next to this PR's pending-exports entry; the merge keeps both in each, and nothing else conflicted. This PR's changed lines are the same as before the merge, and the pending-exports counts still match `Export.cpp` (15 for libSceNgs2.native, 35 for libSceAgcDriver). The tests for the newly built `Export.cpp` files, `ngs2_pcm`, `test_registration` and `unbuilt_exports` pass 10 runs in a row. Linux: 11 run, 11 pass, 0 skip, 0 fail. Windows: 11 run, 11 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (144 and 209), and libc passes on Windows (171). Windows' libkernel suite runs 227 tests and fails `guest_timed_join_import_libkernel_sys` and `guest_timed_join_import_libkernel_web`, which this PR doesn't touch; `main` 88f99678bf fails the same two in this verify's Windows job ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40238050809)), and `main`'s own Windows CI passes them. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **856a0b78d5, the placeholder checks dropped** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40277671856)), after oneandonlydean's review. The tables in `UnsupportedDiagnostics.cpp`, `Ngs2HandleErrors.cpp`, `GuestAudiodecNative.cpp`, `GuestAvPlayerNative.cpp`, `GuestNpTrophy2.cpp` and `GuestNpTrophyData.cpp` now check only that each newly built export is present; the `ThrowsNotImplemented` helpers and the calls that required a placeholder to throw are gone. The single checks that come from #10944 (`testUnimplemented` in libSceAgc's `Platform.cpp`, `sceAgcDriverSetFlip`, `sceNgs2RackQueryInfo`, `sceNpTrophy2SystemCreateContext` and `sceNpUniversalDataSystemIntInitialize`) are left to #10944, where the same change was asked. The tests for the newly built `Export.cpp` files, `ngs2_pcm`, `test_registration` and `unbuilt_exports` pass 10 runs in a row. Linux: 11 run, 11 pass, 0 skip, 0 fail. Windows: 11 run, 11 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (144 and 209), and libc passes on Windows (171). Windows' libkernel suite runs 227 tests and fails `guest_timed_join_import_libkernel_sys` and `guest_timed_join_import_libkernel_web`, the same two as at 0bbc49b8d1, which this PR doesn't touch ([main's run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40238050809)). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **19b89c1499, a merge of #10944's a073f12cd0** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40344348841), [run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40354796467)). In a073f12cd0, ahmadmuj replaces #10944's single checks that `sceAgcDriverSetFlip`, `sceNgs2RackQueryInfo`, `sceNpTrophy2SystemCreateContext` and `sceNpUniversalDataSystemIntInitialize` throw, and `testUnimplemented` in libSceAgc's `Platform.cpp`, with checks that each export is linked, without calling it. Four test files conflicted, each where that check sits next to this PR's code; the merge takes #10944's link check and keeps this PR's code: `UnsupportedDiagnostics.cpp` keeps this PR's export table; in `Ngs2HandleErrors.cpp`, `main` calls #10944's `CheckExportLinked`, then this PR's `CheckPendingExports` and `CheckCorePendingExports`; `GuestNpTrophy2.cpp` still calls this PR's `ResolvePendingExports`; and `GuestNpTrophyData.cpp` calls #10944's `ReportExportLinked` and this PR's `ResolveInternalExports`. Nothing else conflicted. The first run took the tests for every file the merge changes, 10 runs each. Linux: 238 run, 229 pass, 9 skip (seven AGC tests on lavapipe and two video-out tests with no display or Vulkan device), 0 fail; libc and libkernel pass (145 and 211). Windows: 259 run, 172 pass, 85 skip (83 AGC tests and the same two video-out tests, no Vulkan device), 2 fail: `agc_driver_frame_replay` and `agc_driver_frame_replay_concurrent`, whose `agc_frame_replay` helper exited with 0xC0000139 (entry point not found) within 0.2 s. On Windows libc passes (174), and libkernel has 2 failures of 232, `guest_timed_join_import_libkernel_sys` and `guest_timed_join_import_libkernel_web`, each a Python `FileNotFoundError: [WinError 2]` (the system cannot find the file specified). The second run, on the same commit, names the `agc_driver_frame_replay` tests with the tests for the five test files the merge changes, 10 runs each. Linux: 8 run, 8 pass, 0 skip, 0 fail. Windows: 13 run, 13 pass, 0 skip, 0 fail, including all eight `agc_driver_frame_replay` tests. Suites: libc and libkernel pass on Linux (145 and 211) and on Windows (174 and 232), the two `guest_timed_join_import` tests included. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **54601cad34, a merge of `main` 173cf6550a** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40667953413)). The one conflict was `docs/dev/debt/libSceAgcDriver.md`, where mazen320's #10307 extends the `sceAgcDriverSubmitCommandBuffer, sceAgcDriverSubmitMultiCommandBuffers` entry just below this PR's pending-exports entry; the merge keeps both. This PR's diff is otherwise the same. For the guard: every `core/libs/prx` source that `main` added since #10944's a073f12cd0 and that defines an `APS5_VABI` function is named in its library's CMake file, and the two `Export.cpp` files whose pending exports the debt entries count are unchanged (35 for libSceAgcDriver, 15 for libSceNgs2.native). That is a source scan, not a run of `check_test_registration.py build`. `unbuilt_exports`, `test_registration` and the tests of the newly built exports ran 10 times with no failure. Linux: 10 run, 10 pass, 0 skip, 0 fail. Windows: 10 run, 10 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (166 and 265). On Windows libc passes (194), and libkernel passes 285 of 288: `exec_arguments`, `guest_timed_join_import_libkernel_sys` and `guest_timed_join_import_libkernel_web` fail at their setup in the verify's Windows build (`FileNotFoundError` starting the title, or copying the libraries they load), with `main`'s code too, and pass in `main`'s own Windows job at 1829def9bf ([job](https://github.com/boykopovar/AnyPS5/actions/runs/40627345977/job/122615375186)). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **60baf80572, the export tables looked up by name** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40743868986)), after THEMANnt's review, which found that Release builds fold each table's null checks away, and with them the tables' references to the exports. Each of the six tests now gets its library's built file from its `add_test` line (`$<TARGET_FILE:…>`; `ngs2_handleerrors` gets libSceNgs2.native's and libSceNgs2's), opens it (`dlopen`, `LoadLibraryA`) and looks up every name in its table (`dlsym`, `GetProcAddress`). One name the library doesn't export, such as `sceAudiodecNotExported`, must not resolve. The table entries are read through a `volatile` copy, so the test binaries keep importing them. Only the test files and their CMake lines change, with the lookup in a new `core/libs/tests/ExportLookup.hpp`. - **The check fails when a name is missing:** on a scratch branch with one extra entry, `sceAudiodecTerminateMissing`, in `GuestAudiodecNative.cpp`'s table, `guest_audiodec_native` fails on Linux and Windows with "sceAudiodecTerminateMissing is not exported" ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40743965736)). - **The imports are kept:** the imported names of the Release test binaries were listed with `nm -D --undefined-only` on Linux (GCC 13.3) and `objdump -p` on Windows (GCC 15.2). At 54601cad34, `guest_audiodec_native_tests` imports 0 of its table's 14 names, `guest_avplayer_native_tests` 0 of 2, `ngs2_handleerrors_tests` 0 of 20 and `guest_np_trophy_data_tests` 0 of 10, on both ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/40744144883)). At 60baf80572 all six import every name in their tables on both, including `guest_nptrophy2_tests` (22) and `agc_driver_unsupported_diagnostics_tests` (34), which already did. - **Runs:** `unbuilt_exports`, `test_registration`, `player_invitation_dialog`, `agc_driver_unsupported_diagnostics`, `ngs2_handleerrors`, `ngs2_pcm`, `guest_nptrophy2`, `guest_np_trophy_data`, `guest_audiodec_native` and `guest_avplayer_native` pass 10 of 10 on Linux and Windows: 10 run, 10 pass, 0 skip, 0 fail on each. The libc and libkernel suites pass on Linux (166 and 265) and Windows (194 and 288). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **9e5738a59f, a merge of `main` f7f03daf52 and the pending list's fix.** TechLevelZero's NVIDIA run of 60baf80572 merged onto `main` f6fddd60d8 [didn't build](https://github.com/boykopovar/AnyPS5/pull/11104#issuecomment-6517251711): `Ngs2HandleErrors.cpp:31: invalid conversion from 'int (*)(Ngs2JobSchedulerOption*)' to 'int (*)()'`. - **The cause:** kyon-eth's #11315 implemented `sceNgs2JobSchedulerResetOption` with an `Ngs2JobSchedulerOption*` parameter and tests it in the same file. This PR's `CheckPendingExports` still listed it as a no-parameter stub. - **The change:** 9c9a58f669 merges `main` (clean; this PR's diff is unchanged). 9e5738a59f drops that entry, and the libSceNgs2.native debt entry counts the 14 exports still pending. Every other name in the six tables is still a stub on `main`. - **Red:** the merge alone, 9c9a58f669 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41024264975)), doesn't build on either runner: `Ngs2HandleErrors.cpp` fails with the same invalid conversion from `int (*)(Ngs2JobSchedulerOption*)` to `int (*)()`. - **×10 on both runners:** - `unbuilt_exports`, `agc_driver_unsupported_diagnostics`, `ngs2_handleerrors`, `guest_nptrophy2`, `guest_np_trophy_data`, `guest_audiodec_native` and `guest_avplayer_native` ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41022595548), on 22524b2bf8, the same tree as 9e5738a59f with a shorter commit message): 7 run, 7 pass, 0 skip, 0 fail on Linux and on Windows. - `test_registration`, `player_invitation_dialog` and `ngs2_pcm`, with `agc_driver_unsupported_diagnostics`, `guest_nptrophy2`, `guest_np_trophy_data`, `guest_audiodec_native` and `guest_avplayer_native` again ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41025304387), on 9e5738a59f): 8 run, 8 pass, 0 skip, 0 fail on Linux and on Windows. - The libc and libkernel suites run 198 and 304 tests on Linux and 225 and 326 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **c3a182199b, a merge of `main` cf0e33b6a0 and a list update.** - **The conflict:** one hunk in `Ngs2HandleErrors.cpp`, where edubox's #12599 adds `CheckFftQuerySize()` and `CheckEnumeration()` just above this PR's `int main(int argc, char** argv)`. 1c9c0a26fd keeps both: `main()` runs #12599's two checks, then this PR's two. This PR's diff is unchanged. - **The list update:** #12599 also implemented `sceNgs2FftQuerySize`, `sceNgs2ParseWaveformUser`, `sceNgs2SystemEnumHandles` and `sceNgs2SystemEnumRackHandles`. `CheckCorePendingExports` still called them pending. It kept passing, since libSceNgs2.prx exports all four by name. c3a182199b drops those four, leaving `sceNgs2FftInit` and `sceNgs2FftProcess`, which are still stubs on `main`. - **The guard** passes on the merged tree: every `core/libs/prx` source that defines an `APS5_VABI` function is compiled. - **×10 on both runners, on c3a182199b** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41122725380)): - `unbuilt_exports`, `test_registration`, `ngs2_handleerrors`, `ngs2_pcm`, `ngs2_core_pcm`, `player_invitation_dialog`, `agc_driver_unsupported_diagnostics`, `guest_nptrophy2`, `guest_np_trophy_data`, `guest_audiodec_native` and `guest_avplayer_native`: 11 run, 11 pass, 0 skip, 0 fail on Linux and on Windows. - The libc and libkernel suites run 199 and 307 tests on Linux and 226 and 329 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **On Linux (lavapipe), on the merge:** all 45 `ngs2_*` tests, `unbuilt_exports`, `agc_driver_unsupported_diagnostics`, `guest_audiodec_native`, `guest_avplayer_native`, `guest_nptrophy2` and `guest_np_trophy_data` pass 10 of 10, 51 tests in all. - **2e3ec56be5: a61e7d7b04, a merge of `main` d4de5943f6, and a list update.** - **The conflict:** one hunk in `libSceAgcDriver/tests/UnsupportedDiagnostics.cpp`, where BunnyFl's #13471 adds seven checks (exit codes 4 to 10) of the driver calls it moved from `Export.cpp` to `Unimplemented.cpp`, which now return their retail errors. The merge keeps both: #13471's checks, then this PR's export table and lookup. - **One line beyond both sides,** named in the merge's message: the libSceAgcDriver pending-exports debt entry counts 28 named callable exports, not 35, since #13471's seven no longer throw. - **The list update (2e3ec56be5):** the pending table drops those seven, leaving the 27 that still throw. The name lookup's failure now returns 11, since #13471's `sceAgcDriverGetPaDebugInterfaceVersion` check returns 5. - **The guard** passes on the merged tree. - **×10 on both runners, on 2e3ec56be5** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41144289210)): - all 45 `ngs2_*` tests, `unbuilt_exports`, `agc_driver_unsupported_diagnostics`, `guest_audiodec_native`, `guest_avplayer_native`, `guest_nptrophy2`, `guest_np_trophy_data`, `test_registration` and `player_invitation_dialog`: 53 run, 53 pass, 0 skip, 0 fail on Linux and on Windows. - The libc and libkernel suites run 199 and 307 tests on Linux and 226 and 329 on Windows, with 0 failed. The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **On Linux (lavapipe), on a61e7d7b04:** `ctest -R '^(agc|shader)'` 1,156 passed, 0 failed. - **f90a7e9b30, a merge of `main` 0836dfdf4f** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41239544041)). #12862 moved `libSceAgcDriver`'s test registrations into `tests/cmake/`; the conflict in `CMakeLists.txt` is resolved with `tools/agc_test_split.py resolve`, which moves this PR's change to `agc_driver_unsupported_diagnostics`' registration, which passes `$<TARGET_FILE:libSceAgcDriver>`, into `tests/cmake/agc_driver_unsupported_diagnostics_tests.cmake` (+1 −1). Nothing else conflicted. Apart from the move, this PR's diff is unchanged. With `-DBUILD_TESTING=ON`, `ctest -N` gives 3078 tests: `main`'s 3075 plus its 3 new tests (its 4 changed registrations keep their names), each listed once. The 53 tests of this PR's verify set pass 10 runs in a row. Linux: 53 run, 53 pass, 0 skip, 0 fail. Windows: 53 run, 53 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (199 and 308) and on Windows (226 and 330). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **e48d215045, a merge of `main` f776fddcff** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41246409387)). The one conflict was `core/libs/prx/libSceAudiodec.native/CMakeLists.txt`, where zaryabzip's #13719 adds a `guest_audiodec_ajm_context` test block at the spot where this PR adds its `guest_audiodec_native` block. Both are kept, each unchanged: #13719's first, then this PR's. Apart from one blank line between them, this PR's diff is unchanged. This PR's verify set and `guest_audiodec_ajm_context` pass 10 runs in a row, so `unbuilt_exports` also runs over #13719's new export. Linux: 54 run, 54 pass, 0 skip, 0 fail. Windows: 54 run, 54 pass, 0 skip, 0 fail. Suites: libc and libkernel pass on Linux (199 and 308) and on Windows (226 and 330). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. - **NVIDIA RTX 2000 Ada Generation** at e48d215045, from TechLevelZero's NVIDIA bot ([report](https://github.com/boykopovar/AnyPS5/pull/11104#issuecomment-6554797127)): driver 595.99.02, Ubuntu 26.04.1, this head merged onto `main` 3741ca9, every test, since the change reaches the whole build. - 3,068 passed, 6 failed and 50 skipped. None of the failures is new: 3 also fail on `main`, and 3 are unstable on `main`. - With `VK_LAYER_KHRONOS_validation`, over 1,229 tests on the GPU, there are no new validation IDs against `main`. - **b211f54b97: 48f0002490, a merge of `main` 7feb37ee3e, and a list update.** This PR's head merged onto `main` didn't build: `UnsupportedDiagnostics.cpp` fails with 4 errors, such as `invalid conversion from 'uint32_t (*)(uint32_t*, uint32_t)' to 'int (*)()'`. It isn't a text conflict, so GitHub still showed the PR as mergeable. - **The cause:** BunnyFl's #13474 implemented `sceAgcDriverUserDataWritePacket`, `sceAgcDriverUserDataWritePushMarker`, `sceAgcDriverUserDataWriteSetMarker` and `sceAgcDriverUserDataWritePopMarker` in `Submit/src/Dcb.cpp`, with their firmware signatures, and removed their stubs from `Export.cpp`. This PR's export table still listed them as no-parameter stubs. - **The change:** 48f0002490 merges `main` (clean; this PR's diff is unchanged). b211f54b97 drops those four rows, and the libSceAgcDriver debt entry counts the 24 exports still pending. - **The other names** in the six tables are still no-parameter stubs on `main`: 23 in AgcDriver, 15 in Ngs2 (13 native, 2 core), 14 in Audiodec.native, 2 in AvPlayer.native, 22 in NpTrophy2 and 10 in NpUniversalDataSystem. - **Red:** the merge alone, 48f0002490 ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41558393531)), doesn't build on either runner. `UnsupportedDiagnostics.cpp` fails with the same 4 invalid conversions to `int (*)()`, at lines 45 to 48. - **The guard:** every `core/libs/prx` source that `main` added since f776fddcff and that defines an `APS5_VABI` function is compiled, by a source scan rather than a run of `check_test_registration.py build`. There are 58: - 46 named in a CMake file; - 10 `Export.cpp` files of libraries without a CMake file of their own, which `core/libs/CMakeLists.txt`'s default rule builds; - libSceNKWebKit's `src/ConstantExports.cpp`, through its `src/*.cpp` glob; - libwebrtc's `Vad.cpp`, from `core/libs/CMakeLists.txt`. - **×10 on both runners** ([run](https://github.com/EagleBearerYS/AnyPS5/actions/runs/41558379832)): `unbuilt_exports`, `test_registration`, `player_invitation_dialog`, `agc_driver_unsupported_diagnostics`, `ngs2_handleerrors`, `ngs2_pcm`, `ngs2_core_pcm`, `guest_nptrophy2`, `guest_np_trophy_data`, `guest_audiodec_native` and `guest_avplayer_native`: 11 run, 11 pass, 0 skip, 0 fail on Linux and on Windows. Suites: libc and libkernel pass on Linux (279 and 321) and on Windows (306 and 342). The suites ran with `APS5_SKIP_TIMING_TESTS=1`, which relaxes `precise_wait`'s median bounds on GitHub's hosted runners. ### 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 - [x] Generic behaviour, not specific to one title - [x] Depends on: #10944 (stacked: builds the libraries this guard checks); #10127 merged first, as agreed, and this branch now merges it. #6973 to #7002 and #10307 overlap only in adjacent debt entries; whichever merges second keeps both - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a (a build check); the full suite also ran on an NVIDIA RTX 2000 Ada Generation (driver 595.99.02, Ubuntu 26.04.1) in TechLevelZero's NVIDIA bot - [x] AI-assisted: yes Related: #10944
MarcZX10 commented 2026-10-25 17:56:11 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T17:56:11Z.

Review: APPROVED


Reviewed exact head bd97351d000b17d1007334bf394e8caf809ebfed, including the new source-inventory check, the unbuilt PlayerInvitationDialog export removal, debt updates, and added pending-export tests. The four added commits are stacked on #10944, which I had already reviewed at its exact current head; this review covers the follow-up delta.

I reran python3 tools/tests/test_unbuilt_exports.py (7/7) and python3 tools/tests/test_test_registration.py (49/49) in the PR worktree. The hosted Linux, Windows, native macOS and x86_64 macOS relinker jobs, ASan and policy checks all pass. Product test jobs are path-skipped on this PR, so I am not counting them as hosted runs. No actionable defect found in the reviewed delta.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5644489389 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11104#pullrequestreview-5644489389). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T17:56:11Z. **Review:** APPROVED --- Reviewed exact head `bd97351d000b17d1007334bf394e8caf809ebfed`, including the new source-inventory check, the unbuilt PlayerInvitationDialog export removal, debt updates, and added pending-export tests. The four added commits are stacked on #10944, which I had already reviewed at its exact current head; this review covers the follow-up delta. I reran `python3 tools/tests/test_unbuilt_exports.py` (7/7) and `python3 tools/tests/test_test_registration.py` (49/49) in the PR worktree. The hosted Linux, Windows, native macOS and x86_64 macOS relinker jobs, ASan and policy checks all pass. Product test jobs are path-skipped on this PR, so I am not counting them as hosted runs. No actionable defect found in the reviewed delta.
thepoppfish commented 2026-10-25 17:57:27 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by thepoppfish on 2026-10-25T17:57:27Z.

Review: CHANGES_REQUESTED


Reviewed exact head bd97351d000b17d1007334bf394e8caf809ebfed. One requested correction in the new unbuilt-export guard; see the inline finding on EXPORTED.

The existing production file core/libs/prx/libSceAudioOut/src/AudioOut2Port.cpp contains four function-try-block exports and no definitions recognized by the new matcher. This does not mean the current branch omits that file: the reproduction deliberately removes only its path from a compiled-source set to check whether this guard would detect such an omission. The unchanged detector returns no warning; the candidate below returns exactly that file. The progress tool already recognizes optional try before a body.

Independent Windows11 build26200 / Python3.14.7 / GCC16.2.0-6 UCRT validation:

  • Committed tests: all7 test_unbuilt_exports.py methods pass; all49 test_test_registration.py methods pass with Ninja on PATH, zero skips.
  • Add the regression below without changing production: 8 methods, three failing subtests, zero errors (try, noexcept try, multiline noexcept/try). With the one-line correction: 8/8 pass, zero skips. The existing49 registration methods also pass against the complete candidate module, zero skips: 57 focused Python methods pass on the candidate.
  • A separate actual CMake/Ninja C++ fixture builds with an ordinary compiled PRX source plus an export source containing two function-try-blocks (try and noexcept try). It uses the repository's actual VabiMacros.hpp. With the export source omitted, real ninja -t compdb excludes it, nm --defined-only confirms both symbols absent, and a registered anchor test passes. The unchanged external checker CLI nevertheless exits0 and prints that every export source is compiled; the candidate CLI correctly exits1 and names Export.cpp.
  • Register the same source with target_sources: a separate native build compiles it, both symbols appear, and its registered runtime test calls both functions through normal and caught-exception paths successfully. Both checker CLIs now exit0. Thus the four real checker CLI executions have expected statuses head/candidate 0/1 when omitted, 0/0 when registered; no compiler, Ninja or subprocess mocks are used in this fixture. Both native fixture CTests pass1/1.
  • The two-file source/test patch passes git apply --check --whitespace=error against your exact clean checkout. Conventions against fetched origin/main and whitespace checks pass on the author head. I have not edited your branch.

Scope: focused Python/tooling review plus a synthetic native fixture, not a full product/library build or execution of the real AudioOut functions. I did not independently run the PR's guest/GPU tests, Linux/macOS or hosted workflow and am not approving those broader changes. AI-assisted review and proposed correction; all local runs stated above actually executed.

Small reproduction using the existing production source

Run from a checkout at the reviewed head. No source is modified or compiled by this snippet; it models one omitted compile-command entry.

from pathlib import Path
import sys

root = Path.cwd().resolve()
sys.path.insert(0, str(root / "tools"))
import check_test_registration as check

missing = root / "core/libs/prx/libSceAudioOut/src/AudioOut2Port.cpp"
sources = {path.resolve() for path in (root / "core/libs/prx").rglob("*.cpp")}
assert check.unbuilt_exports(root, sources) == []
print(check.unbuilt_exports(root, sources - {missing.resolve()}))

Current result: []. With the correction: [Path('core/libs/prx/libSceAudioOut/src/AudioOut2Port.cpp')] (platform-specific Path repr).

Tested source and regression follow-up
--- a/tools/check_test_registration.py
+++ b/tools/check_test_registration.py
@@ -13,7 +13,7 @@
 
 KNOWN_UNRUN = set()
 SCRIPT = re.compile(r"(?<![\w./-])(?:[\w.-]+/)*test_\w+\.py(?![\w./-])")
-EXPORTED = re.compile(r"\bAPS5_VABI\s+[A-Za-z_]\w*\s*\([^;{}]*\)\s*(?:noexcept\s*)?\{")
+EXPORTED = re.compile(r"\bAPS5_VABI\s+[A-Za-z_]\w*\s*\([^;{}]*\)\s*(?:noexcept\s*)?(?:try\s*)?\{")
 INCLUDED_SOURCE = re.compile(r'^[ \t]*#[ \t]*include[ \t]*"([^"]+\.cpp)"', re.M)
 COMPILE_FLAG = re.compile(r"(?:^|\s)[-/]c(?:\s|$)")
 
--- a/tools/tests/test_unbuilt_exports.py
+++ b/tools/tests/test_unbuilt_exports.py
@@ -61,6 +61,19 @@
         })
         self.assertEqual(self.unbuilt(root, ["core/libs/prx/libc/src/exception/Exports.cpp"]), [Path("core/libs/prx/libc/src/exception/Orphan.cpp")])
 
+    def test_function_try_blocks_still_count_as_definitions(self):
+        for suffix in (" try", " noexcept try", "\n        noexcept\n        try"):
+            with self.subTest(suffix=suffix):
+                root = self.tree({
+                    "core/libs/prx/libSceExample/Built.cpp": "",
+                    "core/libs/prx/libSceExample/Try.cpp": (
+                        "int APS5_VABI sceExampleTry(int value)" + suffix
+                        + " { return value; } catch (...) { return -1; }\n"
+                    ),
+                })
+                self.assertEqual(self.unbuilt(root, ["core/libs/prx/libSceExample/Built.cpp"]),
+                                 [Path("core/libs/prx/libSceExample/Try.cpp")])
+
     def test_a_build_without_library_sources_is_not_checked(self):
         root = self.tree({
             "core/libs/prx/libSceExample/Export.cpp": "int APS5_VABI sceExampleOpen(void) { return 0; }\n",
<!-- greyfinch-sync:boykopovar/AnyPS5:review:5644496931 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11104#pullrequestreview-5644496931). Originally posted by [thepoppfish](https://github.com/thepoppfish) on 2026-10-25T17:57:27Z. **Review:** CHANGES_REQUESTED --- Reviewed exact head `bd97351d000b17d1007334bf394e8caf809ebfed`. One requested correction in the new unbuilt-export guard; see the inline finding on `EXPORTED`. The existing production file `core/libs/prx/libSceAudioOut/src/AudioOut2Port.cpp` contains four function-try-block exports and no definitions recognized by the new matcher. This does **not** mean the current branch omits that file: the reproduction deliberately removes only its path from a compiled-source set to check whether this guard would detect such an omission. The unchanged detector returns no warning; the candidate below returns exactly that file. The progress tool already recognizes optional `try` before a body. Independent Windows11 build26200 / Python3.14.7 / GCC16.2.0-6 UCRT validation: - Committed tests: all7 `test_unbuilt_exports.py` methods pass; all49 `test_test_registration.py` methods pass with Ninja on PATH, zero skips. - Add the regression below without changing production: **8 methods, three failing subtests, zero errors** (`try`, `noexcept try`, multiline `noexcept`/`try`). With the one-line correction: **8/8 pass**, zero skips. The existing49 registration methods also pass against the complete candidate module, zero skips: **57 focused Python methods pass** on the candidate. - A separate **actual CMake/Ninja C++ fixture** builds with an ordinary compiled PRX source plus an export source containing two function-try-blocks (`try` and `noexcept try`). It uses the repository's actual `VabiMacros.hpp`. With the export source omitted, real `ninja -t compdb` excludes it, `nm --defined-only` confirms both symbols absent, and a registered anchor test passes. The unchanged external checker CLI nevertheless exits0 and prints that every export source is compiled; the candidate CLI correctly exits1 and names `Export.cpp`. - Register the same source with `target_sources`: a separate native build compiles it, both symbols appear, and its registered runtime test calls both functions through normal and caught-exception paths successfully. Both checker CLIs now exit0. Thus the four real checker CLI executions have expected statuses head/candidate **0/1 when omitted, 0/0 when registered**; no compiler, Ninja or subprocess mocks are used in this fixture. Both native fixture CTests pass1/1. - The two-file source/test patch passes `git apply --check --whitespace=error` against your exact clean checkout. Conventions against fetched `origin/main` and whitespace checks pass on the author head. I have not edited your branch. Scope: focused Python/tooling review plus a synthetic native fixture, **not** a full product/library build or execution of the real AudioOut functions. I did not independently run the PR's guest/GPU tests, Linux/macOS or hosted workflow and am not approving those broader changes. AI-assisted review and proposed correction; all local runs stated above actually executed. <details> <summary>Small reproduction using the existing production source</summary> Run from a checkout at the reviewed head. No source is modified or compiled by this snippet; it models one omitted compile-command entry. ```python from pathlib import Path import sys root = Path.cwd().resolve() sys.path.insert(0, str(root / "tools")) import check_test_registration as check missing = root / "core/libs/prx/libSceAudioOut/src/AudioOut2Port.cpp" sources = {path.resolve() for path in (root / "core/libs/prx").rglob("*.cpp")} assert check.unbuilt_exports(root, sources) == [] print(check.unbuilt_exports(root, sources - {missing.resolve()})) ``` Current result: `[]`. With the correction: `[Path('core/libs/prx/libSceAudioOut/src/AudioOut2Port.cpp')]` (platform-specific Path repr). </details> <details> <summary>Tested source and regression follow-up</summary> ```diff --- a/tools/check_test_registration.py +++ b/tools/check_test_registration.py @@ -13,7 +13,7 @@ KNOWN_UNRUN = set() SCRIPT = re.compile(r"(?<![\w./-])(?:[\w.-]+/)*test_\w+\.py(?![\w./-])") -EXPORTED = re.compile(r"\bAPS5_VABI\s+[A-Za-z_]\w*\s*\([^;{}]*\)\s*(?:noexcept\s*)?\{") +EXPORTED = re.compile(r"\bAPS5_VABI\s+[A-Za-z_]\w*\s*\([^;{}]*\)\s*(?:noexcept\s*)?(?:try\s*)?\{") INCLUDED_SOURCE = re.compile(r'^[ \t]*#[ \t]*include[ \t]*"([^"]+\.cpp)"', re.M) COMPILE_FLAG = re.compile(r"(?:^|\s)[-/]c(?:\s|$)") --- a/tools/tests/test_unbuilt_exports.py +++ b/tools/tests/test_unbuilt_exports.py @@ -61,6 +61,19 @@ }) self.assertEqual(self.unbuilt(root, ["core/libs/prx/libc/src/exception/Exports.cpp"]), [Path("core/libs/prx/libc/src/exception/Orphan.cpp")]) + def test_function_try_blocks_still_count_as_definitions(self): + for suffix in (" try", " noexcept try", "\n noexcept\n try"): + with self.subTest(suffix=suffix): + root = self.tree({ + "core/libs/prx/libSceExample/Built.cpp": "", + "core/libs/prx/libSceExample/Try.cpp": ( + "int APS5_VABI sceExampleTry(int value)" + suffix + + " { return value; } catch (...) { return -1; }\n" + ), + }) + self.assertEqual(self.unbuilt(root, ["core/libs/prx/libSceExample/Built.cpp"]), + [Path("core/libs/prx/libSceExample/Try.cpp")]) + def test_a_build_without_library_sources_is_not_checked(self): root = self.tree({ "core/libs/prx/libSceExample/Export.cpp": "int APS5_VABI sceExampleOpen(void) { return 0; }\n", ``` </details>
MarcZX10 commented 2026-10-25 17:59:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T17:59:18Z.

Review: CHANGES_REQUESTED


I am updating my earlier approval after independently verifying a missed case in the detector. EXPORTED requires { immediately after parameters/optional noexcept, so it misses function-try-block definitions (... noexcept try {). The existing core/libs/prx/libSceAudioOut/src/AudioOut2Port.cpp has four such APS5_VABI exports. On the exact head, unbuilt_exports returns [] both with the normal inventory and when I remove that file from the simulated compiled-source set, so the new guard would not catch an omitted build of this production source. Please accept optional try before the function body and add a regression for try and noexcept try; the independent reproduction and patch in the other review corroborate this. My earlier approval should not be relied on while this remains open.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5644507772 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11104#pullrequestreview-5644507772). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T17:59:18Z. **Review:** CHANGES_REQUESTED --- I am updating my earlier approval after independently verifying a missed case in the detector. `EXPORTED` requires `{` immediately after parameters/optional `noexcept`, so it misses function-try-block definitions (`... noexcept try {`). The existing `core/libs/prx/libSceAudioOut/src/AudioOut2Port.cpp` has four such APS5_VABI exports. On the exact head, `unbuilt_exports` returns `[]` both with the normal inventory and when I remove that file from the simulated compiled-source set, so the new guard would not catch an omitted build of this production source. Please accept optional `try` before the function body and add a regression for `try` and `noexcept try`; the independent reproduction and patch in the other review corroborate this. My earlier approval should not be relied on while this remains open.
MarcZX10 commented 2026-10-25 18:47:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-25T18:47:21Z.

Review: APPROVED


Re-reviewed exact head b8fdf5ec80. The follow-up fixes the missed C++ function-try-block form (noexcept try { ... }) in the unbuilt-export detector, and adds regressions for the supported spellings. I independently reran tools/tests/test_unbuilt_exports.py (8/8) and tools/tests/test_test_registration.py (49/49); both pass. Linux and ASan relinker checks are green, with macOS and Windows jobs still pending at review time. The new delta resolves the detector issue I previously flagged.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5644709709 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11104#pullrequestreview-5644709709). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-25T18:47:21Z. **Review:** APPROVED --- Re-reviewed exact head b8fdf5ec80a8c12692019893e25718adf20b2a26. The follow-up fixes the missed C++ function-try-block form (`noexcept try { ... }`) in the unbuilt-export detector, and adds regressions for the supported spellings. I independently reran `tools/tests/test_unbuilt_exports.py` (8/8) and `tools/tests/test_test_registration.py` (49/49); both pass. Linux and ASan relinker checks are green, with macOS and Windows jobs still pending at review time. The new delta resolves the detector issue I previously flagged.
thepoppfish commented 2026-10-25 18:55:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by thepoppfish on 2026-10-25T18:55:16Z.

Review: APPROVED


Re-reviewed exact head b8fdf5ec80a8c12692019893e25718adf20b2a26. Approve: my function-try-block finding is corrected.

The new matcher accepts try, noexcept try and the multiline spelling. The complete checker and regression-test module ASTs match the proposed follow-up I tested previously; the revision changes only those two Python files. With the real AudioOut2Port.cpp omitted from a simulated compiled-source inventory, this head now names that file; unchanged bd97351 still misses it.

Fresh Windows11 build26200 / Python3.14.7 checks on this exact head:

  • test_unbuilt_exports.py: 8/8 pass, zero skips,0.233s.
  • test_test_registration.py: 49/49 pass, zero skips,2.947s, with the actual Ninja on PATH.
  • The revised complete checker on the existing actual CMake/Ninja fixture exits 1 with Export.cpp omitted /0 when registered. Both native fixture CTests pass1/1. I reused their built C++ artifacts: this revision changes no fixture/compiler/header input; this is a new checker-CLI/CTest replay, not a fresh native rebuild.
  • Current conventions against main e1ef22e888d7fd09cffbe71042676d6a5910787b, whitespace and clean-checkout checks pass.

This closes my detector finding. The earlier native proof and new Python/CLI checks cover this correction; I am not adding a claim of full product/guest/GPU or hosted-workflow validation. The author reports separate Linux/Windows repeated runs. Existing overlap/dependency coordination remains as stated in the PR.

The corrected inline thread is still marked unresolved; please resolve it from the author/maintainer side. AI-assisted re-review; all fresh local checks stated above actually ran.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5644742186 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11104#pullrequestreview-5644742186). Originally posted by [thepoppfish](https://github.com/thepoppfish) on 2026-10-25T18:55:16Z. **Review:** APPROVED --- Re-reviewed exact head `b8fdf5ec80a8c12692019893e25718adf20b2a26`. Approve: my function-try-block finding is corrected. The new matcher accepts `try`, `noexcept try` and the multiline spelling. The complete checker and regression-test module ASTs match the proposed follow-up I tested previously; the revision changes only those two Python files. With the real `AudioOut2Port.cpp` omitted from a simulated compiled-source inventory, this head now names that file; unchanged bd97351 still misses it. Fresh Windows11 build26200 / Python3.14.7 checks on this exact head: - `test_unbuilt_exports.py`: **8/8 pass**, zero skips,0.233s. - `test_test_registration.py`: **49/49 pass**, zero skips,2.947s, with the actual Ninja on PATH. - The revised complete checker on the existing actual CMake/Ninja fixture exits **1 with Export.cpp omitted /0 when registered**. Both native fixture CTests pass1/1. I reused their built C++ artifacts: this revision changes no fixture/compiler/header input; this is a new checker-CLI/CTest replay, not a fresh native rebuild. - Current conventions against main `e1ef22e888d7fd09cffbe71042676d6a5910787b`, whitespace and clean-checkout checks pass. This closes my detector finding. The earlier native proof and new Python/CLI checks cover this correction; I am not adding a claim of full product/guest/GPU or hosted-workflow validation. The author reports separate Linux/Windows repeated runs. Existing overlap/dependency coordination remains as stated in the PR. The corrected inline thread is still marked unresolved; please resolve it from the author/maintainer side. AI-assisted re-review; all fresh local checks stated above actually ran.
THEMANnt commented 2026-10-26 19:16:39 +00:00 (Migrated from github.com)

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

Review: COMMENTED


Reviewed 19b89c1499f220abdf14fc7981ec79abef9c5506. Pending review.

The unbuilt-export checker fixtures pass, but the native integration review remains incomplete.

Validation: The eight new Python checks pass and cover compiled/source-include tracking and unbuilt export detection. The patch also changes multiple native library source lists, export stubs and native test registrations; fixture success alone does not validate those library changes.

Scope / next step: Retain a pending decision until the resulting libraries and affected native tests are built and run at this head. No verified production defect is asserted.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5657680966 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11104#pullrequestreview-5657680966). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-26T19:16:39Z. **Review:** COMMENTED --- Reviewed `19b89c1499f220abdf14fc7981ec79abef9c5506`. Pending review. The unbuilt-export checker fixtures pass, but the native integration review remains incomplete. **Validation:** The eight new Python checks pass and cover compiled/source-include tracking and unbuilt export detection. The patch also changes multiple native library source lists, export stubs and native test registrations; fixture success alone does not validate those library changes. **Scope / next step:** Retain a pending decision until the resulting libraries and affected native tests are built and run at this head. No verified production defect is asserted.
THEMANnt commented 2026-10-28 17:03:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T17:03:25Z.

Review: CHANGES_REQUESTED


Re-reviewed 54601cad346077900b738bdb8df63bf01711a6f0 — changes requested.

[P2] Keep export references observable in Release. In core/libs/tests/GuestAudiodecNative.cpp:28, the new table stores ordinary addresses of non-weak functions and only checks them against null. GCC 15.3 Release optimizes away those checks and the export references: the actual built test executable has no libSceAudiodec.native import. Independently compiling the original fixture at -O3 with no guest library linked succeeds, runs with exit 0 and prints “pending exports are exported”; -O0 correctly fails with undefined references. Consequently this new test can pass even when none of the exports it claims to check is linked. The corresponding new address tables use the same pattern.

Please retain observable references (for example, volatile loads) or inspect the built library's exports directly, and include a negative control showing that a missing export fails the check. This does not require calling the unimplemented stubs.

Validation otherwise passes: 8 checker fixtures; the checker against the actual configured head; 6/6 focused native CTests on head and 4/4 on base after a writable-temp rerun. The same TrophyData fixture initially failed in the sandbox on both arms; it passes outside that setup and is not the change request. The actual-tree checker finds no unbuilt export source on head and detects the removed, unbuilt PlayerInvitationDialog source on base. No full graphics, console or title run is claimed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5686604538 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11104#pullrequestreview-5686604538). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-28T17:03:25Z. **Review:** CHANGES_REQUESTED --- Re-reviewed `54601cad346077900b738bdb8df63bf01711a6f0` — changes requested. **[P2] Keep export references observable in Release.** In `core/libs/tests/GuestAudiodecNative.cpp:28`, the new table stores ordinary addresses of non-weak functions and only checks them against null. GCC 15.3 Release optimizes away those checks and the export references: the actual built test executable has no libSceAudiodec.native import. Independently compiling the original fixture at `-O3` with no guest library linked succeeds, runs with exit 0 and prints “pending exports are exported”; `-O0` correctly fails with undefined references. Consequently this new test can pass even when none of the exports it claims to check is linked. The corresponding new address tables use the same pattern. Please retain observable references (for example, volatile loads) or inspect the built library's exports directly, and include a negative control showing that a missing export fails the check. This does not require calling the unimplemented stubs. Validation otherwise passes: 8 checker fixtures; the checker against the actual configured head; 6/6 focused native CTests on head and 4/4 on base after a writable-temp rerun. The same TrophyData fixture initially failed in the sandbox on both arms; it passes outside that setup and is not the change request. The actual-tree checker finds no unbuilt export source on head and detects the removed, unbuilt PlayerInvitationDialog source on base. No full graphics, console or title run is claimed.
THEMANnt commented 2026-10-28 18:57:18 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T18:57:18Z.

Review: APPROVED


Re-reviewed 60baf805723d67c58eaedbdef856aa7e21884869 against base 173cf6550a4f49dcf78313c8ad21d13f48c6ad8e. My previous Release export-check finding is addressed.

The fixtures now resolve each table name from the built library supplied by CTest, reject a deliberately absent name, and retain the linked references through volatile reads. Locally, GCC 15.3 Release passes all ten focused tests with no skips; PE import inspection confirms all 102 table entries across the six executables. The updated standalone -O3 fixture now fails to link without its guest library, unlike the previous version.

I independently changed the Audiodec lookup name to sceAudiodecTerminateMissing: the build succeeded and CTest failed with the expected missing-export message. Restoring it passed. Supplying the wrong library also failed. I checked the fork-run provenance and logs: the positive Windows/Linux run contains this head with only verification infrastructure added and passes 10/10 on each runner; the separate negative-control run fails on the intended missing name on both.

Approving the code fix and clearing my earlier change request. The main Windows build, Windows/Ubuntu relinker and ASan jobs have passed; the macOS relinker jobs are still pending. This review does not certify those pending checks or game/GPU behavior.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5688084226 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11104#pullrequestreview-5688084226). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-28T18:57:18Z. **Review:** APPROVED --- Re-reviewed `60baf805723d67c58eaedbdef856aa7e21884869` against base `173cf6550a4f49dcf78313c8ad21d13f48c6ad8e`. My previous Release export-check finding is addressed. The fixtures now resolve each table name from the built library supplied by CTest, reject a deliberately absent name, and retain the linked references through volatile reads. Locally, GCC 15.3 Release passes all ten focused tests with no skips; PE import inspection confirms all 102 table entries across the six executables. The updated standalone `-O3` fixture now fails to link without its guest library, unlike the previous version. I independently changed the Audiodec lookup name to `sceAudiodecTerminateMissing`: the build succeeded and CTest failed with the expected missing-export message. Restoring it passed. Supplying the wrong library also failed. I checked the fork-run provenance and logs: the positive Windows/Linux run contains this head with only verification infrastructure added and passes 10/10 on each runner; the separate negative-control run fails on the intended missing name on both. Approving the code fix and clearing my earlier change request. The main Windows build, Windows/Ubuntu relinker and ASan jobs have passed; the macOS relinker jobs are still pending. This review does not certify those pending checks or game/GPU behavior.
MarcZX10 commented 2026-10-29 06:23:47 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T06:23:47Z.

Review: APPROVED


Re-checked — approved

I checked the exact current head 60baf805723d67c58eaedbdef856aa7e21884869. The Release-only export-observability issue raised on the subsequent head is addressed: the fixtures resolve names from the built library supplied by CTest, reject a deliberately absent name, and retain references through volatile reads. The independent reviewer reports all ten focused Release tests passing and confirms the imports are present in the built artifact.

Hosted Linux/Windows/macOS relinker, ASan, conventions, labels, eligibility, and report checks pass; native Linux product CI is skipped. I did not independently rebuild the Release fixture.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5693676852 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11104#pullrequestreview-5693676852). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-29T06:23:47Z. **Review:** APPROVED --- ## Re-checked — approved I checked the exact current head `60baf805723d67c58eaedbdef856aa7e21884869`. The Release-only export-observability issue raised on the subsequent head is addressed: the fixtures resolve names from the built library supplied by CTest, reject a deliberately absent name, and retain references through volatile reads. The independent reviewer reports all ten focused Release tests passing and confirms the imports are present in the built artifact. Hosted Linux/Windows/macOS relinker, ASan, conventions, labels, eligibility, and report checks pass; native Linux product CI is skipped. I did not independently rebuild the Release fixture.
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!11104
No description provided.