feat(tools): fail when a library source that defines exports is never built #11104
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/11104"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.cppstubs of libSceAgc, libSceAgcDriver, libSceAudiodec.native, libSceAvPlayer.native, libSceNgs2.native, libSceNpTrophy2 and libSceNpUniversalDataSystem, and exports libSceNgs2'sPendingExports.cpp. This PR adds what #10944 doesn't:tools/check_test_registration.pyafter configure. It now also fails when a non-test.cppundercore/libs/prxdefines anAPS5_VABIfunction 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 bytools/progress.py.tools/tests/test_unbuilt_exports.pycovers it with 7 cases (ctestunbuilt_exports).Export.cppis removed. No target ever built it, and its tworeturn 0stubs duplicatescePlayerInvitationDialogTerminateandscePlayerInvitationDialogUpdateStatus, whichlibScePlayerInvitationDialog.cppimplements.mainhas 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_nativeandguest_avplayer_nativepass 10 of 10 on Linux and on Windows, 0 skipped.Linux (Ubuntu 24.04, gcc 13.3), no title:
tools/check_test_registration.py buildexits 1 and lists the sevenExport.cppfiles #10944 builds, plus libScePlayerInvitationDialog's. On this branch it exits 0.unbuilt_exportsruns 7 cases.b8fdf5ec80, function-try-block exports (run), after thepoppfish's and MarcZX10's reviews: the guard's matcher now accepts an optionaltrybefore the body, astools/progress.pydoes, so a source whose exports are function-try-blocks, aslibSceAudioOut/src/AudioOut2Port.cpp's four are, is reported when it is not built.test_unbuilt_exports.pygains thepoppfish's case fortry,noexcept tryand a multilinenoexcept/try: with the old matcher its 3 subtests fail, and with the change the file's 8 tests pass. WithAudioOut2Port.cppleft out of the compiled set, the guard now names it.unbuilt_exportsandtest_registrationpass 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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.0bbc49b8d1, a merge ofmain710cf9c035(run). Felipebmaitan's #10127 adds thengs2_pcmtest tolibSceNgs2.native/CMakeLists.txtnext to this PR's link line forngs2_handleerrors_tests, and a PCM playback entry indocs/dev/debt/libSceNgs2.native.mdnext 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 matchExport.cpp(15 for libSceNgs2.native, 35 for libSceAgcDriver). The tests for the newly builtExport.cppfiles,ngs2_pcm,test_registrationandunbuilt_exportspass 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 failsguest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_web, which this PR doesn't touch;main88f99678bffails the same two in this verify's Windows job (run), andmain's own Windows CI passes them. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.856a0b78d5, the placeholder checks dropped (run), after oneandonlydean's review. The tables inUnsupportedDiagnostics.cpp,Ngs2HandleErrors.cpp,GuestAudiodecNative.cpp,GuestAvPlayerNative.cpp,GuestNpTrophy2.cppandGuestNpTrophyData.cppnow check only that each newly built export is present; theThrowsNotImplementedhelpers and the calls that required a placeholder to throw are gone. The single checks that come from #10944 (testUnimplementedin libSceAgc'sPlatform.cpp,sceAgcDriverSetFlip,sceNgs2RackQueryInfo,sceNpTrophy2SystemCreateContextandsceNpUniversalDataSystemIntInitialize) are left to #10944, where the same change was asked. The tests for the newly builtExport.cppfiles,ngs2_pcm,test_registrationandunbuilt_exportspass 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 failsguest_timed_join_import_libkernel_sysandguest_timed_join_import_libkernel_web, the same two as at0bbc49b8d1, which this PR doesn't touch (main's run). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.19b89c1499, a merge of #10944'sa073f12cd0(run, run). Ina073f12cd0, ahmadmuj replaces #10944's single checks thatsceAgcDriverSetFlip,sceNgs2RackQueryInfo,sceNpTrophy2SystemCreateContextandsceNpUniversalDataSystemIntInitializethrow, andtestUnimplementedin libSceAgc'sPlatform.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.cppkeeps this PR's export table; inNgs2HandleErrors.cpp,maincalls #10944'sCheckExportLinked, then this PR'sCheckPendingExportsandCheckCorePendingExports;GuestNpTrophy2.cppstill calls this PR'sResolvePendingExports; andGuestNpTrophyData.cppcalls #10944'sReportExportLinkedand this PR'sResolveInternalExports. 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_replayandagc_driver_frame_replay_concurrent, whoseagc_frame_replayhelper 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_sysandguest_timed_join_import_libkernel_web, each a PythonFileNotFoundError: [WinError 2](the system cannot find the file specified). The second run, on the same commit, names theagc_driver_frame_replaytests 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 eightagc_driver_frame_replaytests. Suites: libc and libkernel pass on Linux (145 and 211) and on Windows (174 and 232), the twoguest_timed_join_importtests included. The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.54601cad34, a merge ofmain173cf6550a(run). The one conflict wasdocs/dev/debt/libSceAgcDriver.md, where mazen320's #10307 extends thesceAgcDriverSubmitCommandBuffer, sceAgcDriverSubmitMultiCommandBuffersentry just below this PR's pending-exports entry; the merge keeps both. This PR's diff is otherwise the same. For the guard: everycore/libs/prxsource thatmainadded since #10944'sa073f12cd0and that defines anAPS5_VABIfunction is named in its library's CMake file, and the twoExport.cppfiles whose pending exports the debt entries count are unchanged (35 for libSceAgcDriver, 15 for libSceNgs2.native). That is a source scan, not a run ofcheck_test_registration.py build.unbuilt_exports,test_registrationand 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_sysandguest_timed_join_import_libkernel_webfail at their setup in the verify's Windows build (FileNotFoundErrorstarting the title, or copying the libraries they load), withmain's code too, and pass inmain's own Windows job at1829def9bf(job). The suites ran withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_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 itsadd_testline ($<TARGET_FILE:…>;ngs2_handleerrorsgets 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 assceAudiodecNotExported, must not resolve. The table entries are read through avolatilecopy, so the test binaries keep importing them. Only the test files and their CMake lines change, with the lookup in a newcore/libs/tests/ExportLookup.hpp.sceAudiodecTerminateMissing, inGuestAudiodecNative.cpp's table,guest_audiodec_nativefails on Linux and Windows with "sceAudiodecTerminateMissing is not exported" (run).nm -D --undefined-onlyon Linux (GCC 13.3) andobjdump -pon Windows (GCC 15.2). At54601cad34,guest_audiodec_native_testsimports 0 of its table's 14 names,guest_avplayer_native_tests0 of 2,ngs2_handleerrors_tests0 of 20 andguest_np_trophy_data_tests0 of 10, on both (run). At60baf80572all six import every name in their tables on both, includingguest_nptrophy2_tests(22) andagc_driver_unsupported_diagnostics_tests(34), which already did.unbuilt_exports,test_registration,player_invitation_dialog,agc_driver_unsupported_diagnostics,ngs2_handleerrors,ngs2_pcm,guest_nptrophy2,guest_np_trophy_data,guest_audiodec_nativeandguest_avplayer_nativepass 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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.9e5738a59f, a merge ofmainf7f03daf52and the pending list's fix. TechLevelZero's NVIDIA run of60baf80572merged ontomainf6fddd60d8didn't build:Ngs2HandleErrors.cpp:31: invalid conversion from 'int (*)(Ngs2JobSchedulerOption*)' to 'int (*)()'.sceNgs2JobSchedulerResetOptionwith anNgs2JobSchedulerOption*parameter and tests it in the same file. This PR'sCheckPendingExportsstill listed it as a no-parameter stub.9c9a58f669mergesmain(clean; this PR's diff is unchanged).9e5738a59fdrops 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 onmain.9c9a58f669(run), doesn't build on either runner:Ngs2HandleErrors.cppfails with the same invalid conversion fromint (*)(Ngs2JobSchedulerOption*)toint (*)().unbuilt_exports,agc_driver_unsupported_diagnostics,ngs2_handleerrors,guest_nptrophy2,guest_np_trophy_data,guest_audiodec_nativeandguest_avplayer_native(run, on 22524b2bf8, the same tree as9e5738a59fwith a shorter commit message): 7 run, 7 pass, 0 skip, 0 fail on Linux and on Windows.test_registration,player_invitation_dialogandngs2_pcm, withagc_driver_unsupported_diagnostics,guest_nptrophy2,guest_np_trophy_data,guest_audiodec_nativeandguest_avplayer_nativeagain (run, on9e5738a59f): 8 run, 8 pass, 0 skip, 0 fail on Linux and on Windows.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.c3a182199b, a merge ofmaincf0e33b6a0and a list update.Ngs2HandleErrors.cpp, where edubox's #12599 addsCheckFftQuerySize()andCheckEnumeration()just above this PR'sint main(int argc, char** argv).1c9c0a26fdkeeps both:main()runs #12599's two checks, then this PR's two. This PR's diff is unchanged.sceNgs2FftQuerySize,sceNgs2ParseWaveformUser,sceNgs2SystemEnumHandlesandsceNgs2SystemEnumRackHandles.CheckCorePendingExportsstill called them pending. It kept passing, since libSceNgs2.prx exports all four by name.c3a182199bdrops those four, leavingsceNgs2FftInitandsceNgs2FftProcess, which are still stubs onmain.core/libs/prxsource that defines anAPS5_VABIfunction is compiled.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_nativeandguest_avplayer_native: 11 run, 11 pass, 0 skip, 0 fail on Linux and on Windows.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.ngs2_*tests,unbuilt_exports,agc_driver_unsupported_diagnostics,guest_audiodec_native,guest_avplayer_native,guest_nptrophy2andguest_np_trophy_datapass 10 of 10, 51 tests in all.2e3ec56be5:a61e7d7b04, a merge ofmaind4de5943f6, and a list update.libSceAgcDriver/tests/UnsupportedDiagnostics.cpp, where BunnyFl's #13471 adds seven checks (exit codes 4 to 10) of the driver calls it moved fromExport.cpptoUnimplemented.cpp, which now return their retail errors. The merge keeps both: #13471's checks, then this PR's export table and lookup.2e3ec56be5): the pending table drops those seven, leaving the 27 that still throw. The name lookup's failure now returns 11, since #13471'ssceAgcDriverGetPaDebugInterfaceVersioncheck returns 5.2e3ec56be5(run):ngs2_*tests,unbuilt_exports,agc_driver_unsupported_diagnostics,guest_audiodec_native,guest_avplayer_native,guest_nptrophy2,guest_np_trophy_data,test_registrationandplayer_invitation_dialog: 53 run, 53 pass, 0 skip, 0 fail on Linux and on Windows.APS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.a61e7d7b04:ctest -R '^(agc|shader)'1,156 passed, 0 failed.f90a7e9b30, a merge ofmain0836dfdf4f(run). #12862 movedlibSceAgcDriver's test registrations intotests/cmake/; the conflict inCMakeLists.txtis resolved withtools/agc_test_split.py resolve, which moves this PR's change toagc_driver_unsupported_diagnostics' registration, which passes$<TARGET_FILE:libSceAgcDriver>, intotests/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 -Ngives 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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.e48d215045, a merge ofmainf776fddcff(run). The one conflict wascore/libs/prx/libSceAudiodec.native/CMakeLists.txt, where zaryabzip's #13719 adds aguest_audiodec_ajm_contexttest block at the spot where this PR adds itsguest_audiodec_nativeblock. 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 andguest_audiodec_ajm_contextpass 10 runs in a row, sounbuilt_exportsalso 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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_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 ontomain3741ca9, every test, since the change reaches the whole build.main, and 3 are unstable onmain.VK_LAYER_KHRONOS_validation, over 1,229 tests on the GPU, there are no new validation IDs againstmain.b211f54b97:48f0002490, a merge ofmain7feb37ee3e, and a list update. This PR's head merged ontomaindidn't build:UnsupportedDiagnostics.cppfails with 4 errors, such asinvalid conversion from 'uint32_t (*)(uint32_t*, uint32_t)' to 'int (*)()'. It isn't a text conflict, so GitHub still showed the PR as mergeable.sceAgcDriverUserDataWritePacket,sceAgcDriverUserDataWritePushMarker,sceAgcDriverUserDataWriteSetMarkerandsceAgcDriverUserDataWritePopMarkerinSubmit/src/Dcb.cpp, with their firmware signatures, and removed their stubs fromExport.cpp. This PR's export table still listed them as no-parameter stubs.48f0002490mergesmain(clean; this PR's diff is unchanged).b211f54b97drops those four rows, and the libSceAgcDriver debt entry counts the 24 exports still pending.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.48f0002490(run), doesn't build on either runner.UnsupportedDiagnostics.cppfails with the same 4 invalid conversions toint (*)(), at lines 45 to 48.core/libs/prxsource thatmainadded sincef776fddcffand that defines anAPS5_VABIfunction is compiled, by a source scan rather than a run ofcheck_test_registration.py build. There are 58:Export.cppfiles of libraries without a CMake file of their own, whichcore/libs/CMakeLists.txt's default rule builds;src/ConstantExports.cpp, through itssrc/*.cppglob;Vad.cpp, fromcore/libs/CMakeLists.txt.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_nativeandguest_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 withAPS5_SKIP_TIMING_TESTS=1, which relaxesprecise_wait's median bounds on GitHub's hosted runners.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Related: #10944
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) andpython3 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.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 onEXPORTED.The existing production file
core/libs/prx/libSceAudioOut/src/AudioOut2Port.cppcontains 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 optionaltrybefore a body.Independent Windows11 build26200 / Python3.14.7 / GCC16.2.0-6 UCRT validation:
test_unbuilt_exports.pymethods pass; all49test_test_registration.pymethods pass with Ninja on PATH, zero skips.try,noexcept try, multilinenoexcept/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.tryandnoexcept try). It uses the repository's actualVabiMacros.hpp. With the export source omitted, realninja -t compdbexcludes it,nm --defined-onlyconfirms 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 namesExport.cpp.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.git apply --check --whitespace=erroragainst your exact clean checkout. Conventions against fetchedorigin/mainand 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.
Current result:
[]. With the correction:[Path('core/libs/prx/libSceAudioOut/src/AudioOut2Port.cpp')](platform-specific Path repr).Tested source and regression follow-up
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.
EXPORTEDrequires{immediately after parameters/optionalnoexcept, so it misses function-try-block definitions (... noexcept try {). The existingcore/libs/prx/libSceAudioOut/src/AudioOut2Port.cpphas four such APS5_VABI exports. On the exact head,unbuilt_exportsreturns[]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 optionaltrybefore the function body and add a regression fortryandnoexcept try; the independent reproduction and patch in the other review corroborate this. My earlier approval should not be relied on while this remains open.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 rerantools/tests/test_unbuilt_exports.py(8/8) andtools/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.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 tryand 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 realAudioOut2Port.cppomitted from a simulated compiled-source inventory, this head now names that file; unchangedbd97351still 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.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.
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.
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-O3with no guest library linked succeeds, runs with exit 0 and prints “pending exports are exported”;-O0correctly 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.
Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-28T18:57:18Z.
Review: APPROVED
Re-reviewed
60baf805723d67c58eaedbdef856aa7e21884869against base173cf6550a4f49dcf78313c8ad21d13f48c6ad8e. 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
-O3fixture 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.
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.