test(relinker): run kernel variant imports on Windows #9000

Merged
Queuse merged 4 commits from upstream-pr/9000 into main 2026-10-24 01:21:05 +00:00
Queuse commented 2026-10-21 09:13:23 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Queuse on 2026-10-21T09:13:23Z.


What

Add Windows runtime regressions for scoped libkernel_sys/libkernel_web imports: runtime fallback, provider precedence, guest-module isolation and unresolved imports. The implementation from #8867 is now in main; this PR adds only the tests and their CMake registration.

Tested

Windows 11 x86-64, WinLibs MinGW-w64 GCC 15.2.0-r7, Ninja, Release, relinker-only. Head a19a7d52bf includes main 097a9514a0.

  • Rebuilt relinker, entry_stub_tests and windows_dependency_diagnostics_tests. windows_kernel_variant_sys, windows_kernel_variant_web, windows_dependency_diagnostics and entry_stub pass: 4/4 in 10.23 s, each below 30 s.
  • Conventions and whitespace checks pass. Integration with consulted main a23f8fc9fb is clean; its intervening changes do not touch this regression or relinker build inputs.
  • Fresh overlap analysis: #5021 adds macOS fixtures and #9408 adds a macOS trace-import test; neither duplicates the kernel-variant tests. #6044 moves test registrations; its proposed order still awaits the author. If it lands first, preserve these tests with its final registration layout.
  • Linux/macOS, full product builds, titles and console hardware were not run.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4949204970 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9000). Originally posted by [Queuse](https://github.com/Queuse) on 2026-10-21T09:13:23Z. --- ### What Add Windows runtime regressions for scoped libkernel_sys/libkernel_web imports: runtime fallback, provider precedence, guest-module isolation and unresolved imports. The implementation from #8867 is now in main; this PR adds only the tests and their CMake registration. ### Tested <!-- OS, title or homebrew, what was checked. "Not tested" is a valid answer. A performance change: the summary lines of main and of this PR from the same machine and scene, with the traces attached, captured as the Performance report issue form describes. --> Windows 11 x86-64, WinLibs MinGW-w64 GCC 15.2.0-r7, Ninja, Release, relinker-only. Head `a19a7d52bf` includes main `097a9514a0`. - Rebuilt relinker, entry_stub_tests and windows_dependency_diagnostics_tests. `windows_kernel_variant_sys`, `windows_kernel_variant_web`, `windows_dependency_diagnostics` and `entry_stub` pass: 4/4 in 10.23 s, each below 30 s. - Conventions and whitespace checks pass. Integration with consulted main `a23f8fc9fb` is clean; its intervening changes do not touch this regression or relinker build inputs. - Fresh overlap analysis: #5021 adds macOS fixtures and #9408 adds a macOS trace-import test; neither duplicates the kernel-variant tests. #6044 moves test registrations; its proposed order still awaits the author. If it lands first, preserve these tests with its final registration layout. - Linux/macOS, full product builds, titles and console hardware were not run. ### 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: none <!-- #PR, or none --> - [x] Fixes: none <!-- issue it closes as Fixes #N, or none --> - [x] Unblocks: none <!-- title ID and Game bring-up discussion, e.g. PPSA01325 #3232, or none --> - [x] GPUs tested: n/a <!-- for AGC, shader recompiler or VideoOut changes: vendor, model, driver and OS of each GPU the GPU tests ran on; otherwise n/a --> - [x] AI-assisted: yes <!-- yes / no -->
clairtonmichel commented 2026-10-21 09:28:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by clairtonmichel on 2026-10-21T09:28:41Z.


Tested on AMD Ryzen 7 9800X3D and AMD Radeon RX 7900 XTX (Fedora Linux, Mesa 26.2.5):

  • Built cleanly with zero errors.
  • Ran the complete relinker and kernel variant import test suites (relinker_executables, relinker_conversion, relinker_game_patch, guest kernel modules): 100% passed successfully (15/15 green in 1.15s).
  • Kernel variant imports handling behaves correctly on host. Ready to merge!
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6312661169 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9000#issuecomment-6312661169). Originally posted by [clairtonmichel](https://github.com/clairtonmichel) on 2026-10-21T09:28:41Z. --- Tested on AMD Ryzen 7 9800X3D and AMD Radeon RX 7900 XTX (Fedora Linux, Mesa 26.2.5): - Built cleanly with zero errors. - Ran the complete relinker and kernel variant import test suites (`relinker_executables`, `relinker_conversion`, `relinker_game_patch`, guest kernel modules): **100% passed successfully (15/15 green in 1.15s)**. - Kernel variant imports handling behaves correctly on host. Ready to merge!
JJenkx commented 2026-10-22 13:26:51 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-10-22T13:26:51Z.


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 onto main 830ccd121f, without conflicts, and each test was run 3 times. windows_kernel_variant_sys and windows_kernel_variant_web pass 3 of 3.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6341917776 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9000#issuecomment-6341917776). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-10-22T13:26:51Z. --- 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 onto `main` 830ccd121f, without conflicts, and each test was run 3 times. `windows_kernel_variant_sys` and `windows_kernel_variant_web` pass 3 of 3. AI-assisted (Claude Code).
Queuse commented 2026-10-22 15:36:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Queuse on 2026-10-22T15:36:16Z.


Refreshed this branch onto main b7d1d47a5 and reran the Windows checks on head a52cc17ded with MSYS2 UCRT64 GCC 16.2.0, Ninja, Release, relinker-only.

All four pass: windows_kernel_variant_sys (15.77 s), windows_kernel_variant_web (16.45 s), windows_dependency_diagnostics (54.72 s) and entry_stub (0.14 s), 87.23 s total. Built the relinker and both native test targets. Conventions and whitespace checks pass. The description records these new results separately from the earlier WinLibs run.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6344718780 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/9000#issuecomment-6344718780). Originally posted by [Queuse](https://github.com/Queuse) on 2026-10-22T15:36:16Z. --- Refreshed this branch onto main `b7d1d47a5` and reran the Windows checks on head `a52cc17ded` with MSYS2 UCRT64 GCC 16.2.0, Ninja, Release, relinker-only. All four pass: `windows_kernel_variant_sys` (15.77 s), `windows_kernel_variant_web` (16.45 s), `windows_dependency_diagnostics` (54.72 s) and `entry_stub` (0.14 s), 87.23 s total. Built the relinker and both native test targets. Conventions and whitespace checks pass. The description records these new results separately from the earlier WinLibs run.
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!9000
No description provided.