CI: no job builds the libraries and tests on macOS, so macOS-only breaks merge green #24117

Open
opened 2026-11-20 06:38:09 +00:00 by Romannachwievor · 0 comments
Romannachwievor commented 2026-11-20 06:38:09 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Romannachwievor on 2026-11-20T06:38:09Z.


CI builds only two things on macOS: the relinker (relinker job, .github/workflows/build.yml:158-159) and register-context (:412-419). The libraries under core/libs and their tests are built on Linux and Windows only. So a change that breaks the macOS build, or a test that only fails on macOS, merges green and shows up later in a tester's report. Some recent examples:

  • main does not link libcurl.prx on macOS without #17425, and needs #11049 for the audio prx. Both PRs are open, so every macOS tester builds main plus these two.
  • #23487 added a DataMemoryClose check that calls mincore with unsigned char*, which macOS does not accept (char*), so the libSceIcu tests stopped building on macOS. #23659 fixes it.
  • Between 245210b07e (2026-11-18) and a4d1053d4b (2026-11-20), four guest_ajmi_batch_*_nid tests started failing on macOS: dlopen of the alias libSceAjmi.prx fails with Symbol not found: _NVDXiUesSbA, expected in unpatched/libSceAjm.native.prx. The test target links libSceAjmi and libc without calling them, so after #21533 dyld preloads the unpatched modules on macOS; Linux drops unused libraries, so CI stayed green. #24115 fixes the test link. guest_kernel_clock broke the same way after #23862 (#24116).
  • Earlier, libc and libSceLibcInternal needed separate macOS build fixes (#16591, #17532, #18905).

Proposal: one macOS job that builds everything and runs the CPU tests, kept off the per-PR path, since macOS runner time is the scarce part (#14396).

  • Trigger: schedule (nightly on main) plus workflow_dispatch. Optionally a label to run it on a PR that touches POSIX host code.
  • Runner: macos-15, x86_64 Release under Rosetta 2, the same setup register-context already uses and the one most macOS testers run.
  • Steps: configure with -DBUILD_TESTING=ON -DCMAKE_OSX_ARCHITECTURES=x86_64, build all, run ctest without ANYPS5_REQUIRE_VULKAN, so the GPU tests skip on a runner without a usable Metal device.
  • Expected failures: a short list of the macOS failures that already have an issue or PR (below), so the job starts green and only a new failure turns it red. An entry leaves the list when its fix merges.

Current macOS baseline, for reference: Apple M1, macOS 26.5, x86_64 Release under Rosetta 2, main a4d1053d4b + #17425 + #11049. All 4174 non-GPU tests ran at -j6, and each failure was rerun alone:

test failure tracked in
guest_kernel_sys, guest_kernel_sys_execve 1023-byte path (errno 63) #22270, #22932
guest_math, guest_math_exact libm checks #21714
guest_throw_bad_array_new_length, guest_libc_internal_exception_virtuals, run_report, guest_kernel_app_archive_mmap guest exceptions through the host runtime #21538 (#22091, #23395)
file_streams Stream scan changed a matching failure to input failure #21720
guest_sce_net connect timeout expiry: no connect stayed pending #22443 (#22623)
guest_socket_port_zero sendto INADDR_ANY must reach 127.0.0.1 (errno 65) #17878
guest_poll abort after sceKernelOpen anyps5-poll-input-* #20161
guest_ajmi_batch_{inline,run,control,split}_nid Symbol not found: _NVDXiUesSbA #24115 (since #21533)
guest_kernel_clock aborts after 0.2 s, errno 60 left by a host sleep_for #24116 (since #23862)

guest_icu_comparisons also timed out at 20 s, but the machine had a load average near 90 from other builds at the time, so I am not counting it.

If this is wanted, I can open the workflow PR.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6506286001 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/24117). Originally posted by [Romannachwievor](https://github.com/Romannachwievor) on 2026-11-20T06:38:09Z. --- CI builds only two things on macOS: the relinker (`relinker` job, `.github/workflows/build.yml:158-159`) and `register-context` (`:412-419`). The libraries under `core/libs` and their tests are built on Linux and Windows only. So a change that breaks the macOS build, or a test that only fails on macOS, merges green and shows up later in a tester's report. Some recent examples: - `main` does not link `libcurl.prx` on macOS without #17425, and needs #11049 for the audio prx. Both PRs are open, so every macOS tester builds `main` plus these two. - #23487 added a `DataMemoryClose` check that calls `mincore` with `unsigned char*`, which macOS does not accept (`char*`), so the libSceIcu tests stopped building on macOS. #23659 fixes it. - Between `245210b07e` (2026-11-18) and `a4d1053d4b` (2026-11-20), four `guest_ajmi_batch_*_nid` tests started failing on macOS: `dlopen` of the alias `libSceAjmi.prx` fails with `Symbol not found: _NVDXiUesSbA`, expected in `unpatched/libSceAjm.native.prx`. The test target links `libSceAjmi` and `libc` without calling them, so after #21533 dyld preloads the unpatched modules on macOS; Linux drops unused libraries, so CI stayed green. #24115 fixes the test link. `guest_kernel_clock` broke the same way after #23862 (#24116). - Earlier, libc and libSceLibcInternal needed separate macOS build fixes (#16591, #17532, #18905). Proposal: one macOS job that builds everything and runs the CPU tests, kept off the per-PR path, since macOS runner time is the scarce part (#14396). - Trigger: `schedule` (nightly on `main`) plus `workflow_dispatch`. Optionally a label to run it on a PR that touches POSIX host code. - Runner: `macos-15`, x86_64 Release under Rosetta 2, the same setup `register-context` already uses and the one most macOS testers run. - Steps: configure with `-DBUILD_TESTING=ON -DCMAKE_OSX_ARCHITECTURES=x86_64`, build all, run `ctest` without `ANYPS5_REQUIRE_VULKAN`, so the GPU tests skip on a runner without a usable Metal device. - Expected failures: a short list of the macOS failures that already have an issue or PR (below), so the job starts green and only a new failure turns it red. An entry leaves the list when its fix merges. Current macOS baseline, for reference: Apple M1, macOS 26.5, x86_64 Release under Rosetta 2, `main` `a4d1053d4b` + #17425 + #11049. All 4174 non-GPU tests ran at `-j6`, and each failure was rerun alone: | test | failure | tracked in | |---|---|---| | `guest_kernel_sys`, `guest_kernel_sys_execve` | 1023-byte path (errno 63) | #22270, #22932 | | `guest_math`, `guest_math_exact` | libm checks | #21714 | | `guest_throw_bad_array_new_length`, `guest_libc_internal_exception_virtuals`, `run_report`, `guest_kernel_app_archive_mmap` | guest exceptions through the host runtime | #21538 (#22091, #23395) | | `file_streams` | `Stream scan changed a matching failure to input failure` | #21720 | | `guest_sce_net` | `connect timeout expiry: no connect stayed pending` | #22443 (#22623) | | `guest_socket_port_zero` | `sendto INADDR_ANY must reach 127.0.0.1 (errno 65)` | #17878 | | `guest_poll` | abort after `sceKernelOpen anyps5-poll-input-*` | #20161 | | `guest_ajmi_batch_{inline,run,control,split}_nid` | `Symbol not found: _NVDXiUesSbA` | #24115 (since #21533) | | `guest_kernel_clock` | aborts after 0.2 s, errno 60 left by a host `sleep_for` | #24116 (since #23862) | `guest_icu_comparisons` also timed out at 20 s, but the machine had a load average near 90 from other builds at the time, so I am not counting it. If this is wanted, I can open the workflow PR. AI-assisted: yes (Claude Code)
Sign in to join this conversation.
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#24117
No description provided.