test(relinker): run guest_none_relocations as two halves #15526

Merged
oneandonlydean merged 1 commit from upstream-pr/15526 into main 2026-11-04 19:21:01 +00:00
oneandonlydean commented 2026-11-03 17:46:25 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-11-03T17:46:25Z.


What

guest_none_relocations times out intermittently on main's relinker (macos-latest, clang++, x86_64) job (the x86_64 build runs emulated on an arm runner). It is not tied to a commit: over the 10 main runs of 4a7770bf54 to 66387a10ee it took 16.3, 11.4, 20.04 (timeout), 19.99, 20.07 (timeout), 20.03 (timeout), 19.33, 19.99, 20.07 (timeout) and 15.4 s against its 20 s limit, while the native arm64 macOS job took 1.3 to 5.1 s. Locally the whole test takes 0.4 s, so the time on that job is process spawning: the test runs the relinker as a subprocess for every case, for sce False and then True.

The test now takes plain, sce or all (the default, so the tests that import its helpers and any direct run are unchanged) and CMake registers guest_none_relocations (plain) and guest_none_relocations_sce, each with the same 20 s limit and half the work. No case is removed or loosened.

Tested

  • Linux workstation, current main 4f41f4c375 relinker: plain, sce and no argument each print "Guest no-op relocation tests passed"; an unknown mode raises KeyError.
  • Not run: the CMake registration through ctest (the edit is two add_test lines and one set_tests_properties), the macOS jobs. Their timing after the split is the thing this PR needs CI to show.
  • Not changed: the other timeout seen at 6e08dc3d6e, select_tests_SelectArgumentTests (30.12 s on the arm job). It builds a real cmake project in setUpClass, took 3.4 to 18 s in the other runs, and printed nothing at the timeout; we treat it as runner noise and did not touch it.

Checklist

  • Based on current main 4f41f4c375; 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; silent stubs are listed in technical debt (none added)
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source (none added)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none (intermittent red guest_none_relocations on main)
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5141924351 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/15526). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-11-03T17:46:25Z. --- ### What `guest_none_relocations` times out intermittently on main's `relinker (macos-latest, clang++, x86_64)` job (the x86_64 build runs emulated on an arm runner). It is not tied to a commit: over the 10 main runs of 4a7770bf54 to 66387a10ee it took 16.3, 11.4, 20.04 (timeout), 19.99, 20.07 (timeout), 20.03 (timeout), 19.33, 19.99, 20.07 (timeout) and 15.4 s against its 20 s limit, while the native arm64 macOS job took 1.3 to 5.1 s. Locally the whole test takes 0.4 s, so the time on that job is process spawning: the test runs the relinker as a subprocess for every case, for `sce` False and then True. The test now takes `plain`, `sce` or `all` (the default, so the tests that import its helpers and any direct run are unchanged) and CMake registers `guest_none_relocations` (plain) and `guest_none_relocations_sce`, each with the same 20 s limit and half the work. No case is removed or loosened. ### Tested - Linux workstation, current main `4f41f4c375` relinker: `plain`, `sce` and no argument each print "Guest no-op relocation tests passed"; an unknown mode raises `KeyError`. - Not run: the CMake registration through `ctest` (the edit is two `add_test` lines and one `set_tests_properties`), the macOS jobs. Their timing after the split is the thing this PR needs CI to show. - Not changed: the other timeout seen at 6e08dc3d6e, `select_tests_SelectArgumentTests` (30.12 s on the arm job). It builds a real cmake project in `setUpClass`, took 3.4 to 18 s in the other runs, and printed nothing at the timeout; we treat it as runner noise and did not touch it. ### Checklist - [x] Based on current `main` `4f41f4c375`; 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 - [x] Unimplemented paths throw; silent stubs are listed in technical debt (none added) - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source (none added) - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none (intermittent red `guest_none_relocations` on main) - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
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!15526
No description provided.