test(libkernel): run nid_patcher_symbol_versions on Windows #8717
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8717"
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 xXPBSXx on 2026-10-20T22:01:35Z.
What
nid_patcher_symbol_versionswas registered inside theif(Python3_Interpreter_FOUND AND NOT WIN32)block ofcore/libs/prx/libkernel/CMakeLists.txtthat also addsnid_patcher_dynamic_strings, so it never ran on Windows.test_symbol_versions.pyonly writes a synthetic ELF and runsnid_patcheron it (no host loader involved); onlytest_dynamic_strings.pyreads the ELF fixture module (guest_module_fixture), which is a PE DLL on Windows. The-Wl,--no-as-neededfixture option and the dynamic strings test stay non-Windows; the symbol versions test is now registered on every host.git merge-treeagainstupstream/mainis clean.pr_overlapwas not run.Tested
Windows 10 (19045), MinGW-w64 GCC 15.2.0, Release:
ctest -N -R "^nid_patcher_(symbol_versions|dynamic_strings)$"lists exactlynid_patcher_symbol_versions(the dynamic strings test stays unregistered on Windows).NOT WIN32). After:nid_patcher_symbol_versionspasses 3 of 3 runs (5.5-6.5 s); run by hand it printsNID patcher symbol version tests passed. This is coverage only, so there is no red state without the change.python tools/check_conventions.py --base upstream/main: passes.Rebased onto
main1e20650e84(head2264b7bbca;mainhad movedfind_package(Python3 ...)up incore/libs/prx/libkernel/CMakeLists.txt, so thePython3_Interpreter_FOUNDblock was merged again, with the same lines changed as before).nid_patcher_symbol_versionsis registered on Windows andctest -R '^nid_patcher_symbol_versions$'passes 3 of 3 runs. No red run is possible: onmainthe test is compiled out on Windows (insideNOT WIN32).nid_patcher_macho,nid_patcher_native_paths,nid_patcher_dynamic_strings(still registered, fixture linked with--no-as-needed) andnid_patcher_symbol_versionspass, 4 of 4.python tools/check_conventions.py --base upstream/main: no finding. Not tested: macOS.Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryAI-assisted (Claude Code).
🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-20T22:18:02Z.
The test registration change looks functionally compatible with the same-file edits in #8658 (macOS dynamic-strings linker flag) and #6586 (Linux runtime-lifecycle test registration). The overlap bot is still flagging
core/libs/prx/libkernel/CMakeLists.txt, and this PR notes thatpr_overlapwas not run. Could you record the exact merge-tree/combined CMake check for these heads, or note the intended rebase/order? In particular, the symbol-version test should remain registered on Windows while dynamic-strings stays non-Windows and the--no-as-neededflag stays off macOS.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-20T22:30:09Z.
I checked the current CMake hunks in #6586 and #8658 against this PR. #6586 moves the Python discovery earlier but leaves
Python3_Interpreter_FOUNDavailable in this block; #8658 nests the--no-as-neededlink option underNOT APPLE; this PR then keepsnid_patcher_dynamic_stringsunderNOT WIN32while registeringnid_patcher_symbol_versionsfor every host with Python. The combined conditions preserve the intended Windows/macOS behavior, and the hunks are compatible by inspection. I have not run a combined CMake configure/build; hosted build jobs are skipped on this PR.Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-20T22:33:53Z.
Thanks for checking the CMake conditions. I ran
git merge-treeof this head against the heads of #8658 and #6586 now: each pair has one textual conflict incore/libs/prx/libkernel/CMakeLists.txt(the same block), while #8658 and #6586 do not conflict with each other. So your reading of the conditions matches, but the hunks do not merge without a manual step. This change is small (6 added, 4 removed lines), so I will rebase it onto whichever of the two lands first, keepingnid_patcher_symbol_versionsregistered for every host with Python,nid_patcher_dynamic_stringsunderNOT WIN32and the--no-as-neededoption off macOS. I have not run a combined CMake configure or build of the three heads.AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T13:26:49Z.
Independent Windows run, as data only. Machine: Windows 11 Enterprise 10.0.22621, Ryzen 9 5950X, WinLibs GCC 15.2.0 UCRT r7, Release,
BUILD_TESTING=ON, Python 3.15. #8654 (c318c70b69), #8717 (ba9e424a42) and #9000 (78bfaba736) were merged together ontomain830ccd121f, without conflicts, and each test was run 3 times.nid_patcher_symbol_versionspasses 3 of 3.AI-assisted (Claude Code).