ci: run the macOS write watch and register context tests under Rosetta #3962
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3962"
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 ahir061 on 2026-10-11T19:56:58Z.
What
Relinked titles run on Apple silicon as x86-64 code under Rosetta (
--macos --to-rosetta, USAGE.md), but CI runs the write watch tests there only as arm64 (macos-15) and the register context tests only onmacos-15-inteland Linux. This adds x86_64 builds of both onmacos-15, using the-DCMAKE_OSX_ARCHITECTURES=x86_64configuration BUILD.md documents for local runs, and installs Rosetta first in case the runner image lacks it.New jobs:
register-context (macos-15, Debug, x86_64),register-context (macos-15, Release, x86_64)andwrite-watch (macos-15, x86_64). The existing jobs are unchanged:CMAKE_OSX_ARCHITECTURESis empty for them, which keeps the host architecture.Tested
filereportsMach-O 64-bit executable x86_64), with the same commands as the new jobs and--repeat until-fail:3:tools/check_conventions.py --base mainpasses.macos-15image.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by TideOPL on 2026-10-11T22:05:52Z.
Looks good. The three new jobs (
register-context (macos-15, Debug|Release, x86_64)andwrite-watch (macos-15, x86_64)) ran on this PR and pass, and the existing combinations are unchanged. Covering Rosetta in CI makes sense, since that's how relinked titles run on Apple silicon.AI-assisted: yes. Written with AI assistance (Claude Code); I reviewed it.
Imported from boykopovar/AnyPS5. Originally posted by thuanquang on 2026-10-13T06:59:28Z.
Tested on macOS 27.0.1 (Apple silicon, Rosetta 2), AppleClang 21.0.0, CMake 4.4.4, with this PR merged into
mainatc2565f014. It merges cleanly, both jobs keep theneeds: eligibility/if:gating from #4405, andtest_check_conventions_ci_gate.pyandcheck_conventions.py --base origin/mainpass on the merge.Same commands as the three new jobs (default generator,
-DCMAKE_OSX_ARCHITECTURES=x86_64,ctest --output-on-failure --repeat until-fail:3 --no-tests=error):register-context, Debug, x86_64register-context, Release, x86_64write-watch, Release, x86_64main)filereportsMach-O 64-bit executable x86_64for all three test binaries.To look for Rosetta-only flakiness, each build also ran
--repeat until-fail:100serially and--repeat until-fail:50 -j8: 2,100 test runs, no failures. Slowest single run: 0.10 s for register context;write_watch_threads0.37 s serially and 1.82 s under-j8.This adds a macOS 27 result to the macOS 26.0.1 runs in the description and the
macos-15runner results.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-21T23:47:05Z.
Review: CHANGES_REQUESTED
The Rosetta matrix changes are supported by the passing macOS x86_64 jobs and repeated author-reported runs. I manually compared the shared workflow hunks with #6044: its current changes relocate path-filter entries around lines 70–85, while this PR adds the matrix entries and commands near lines 358–429, so I found no same-hunk dependency.
I’m requesting one contribution-template correction before approval. The current
.github/pull_request_template.mdincludesFixes:,Unblocks:, andGPUs tested:checklist lines, but this PR body omits all three. Please complete them (none,none, andn/a, respectively) so the description follows the repository’s current template. The conventions workflow passed, but it did not flag these missing fields.Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-25T07:09:56Z.
Review: APPROVED
Reviewed
5c3e283416dcec80839058b85dfedf5904397165against author merge base4866297fcfaa56b53d0ff5b21e4909bed1d89ffd.Approve. No actionable findings in the CI matrix patch.
Reviewed the complete workflow changes: existing native matrix combinations remain, while macos-15 x86_64 Debug/Release register-context and x86_64 write-watch combinations are added. Each new combination installs Rosetta, configures the x86_64 architecture explicitly and receives the longer 15-minute timeout. Empty architecture values retain the existing native configuration path.
Validation: parsed the exact YAML and inspected matrix entries. Hosted Build 40095103764 successfully executed all three added jobs: write-watch 120875607837, register-context Debug 120875607845 and Release 120875607865; their logs show actual passing CTest runs on the PR merge checkout. Conventions and whitespace passed. This older registration CLI rejects --scripts, so that check is not reported as passing. No local macOS execution or full application/game test was performed.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-29T21:16:47Z.
Review: CHANGES_REQUESTED
Re-checked — changes requested
The Rosetta matrix has passing hosted runs, but the PR description still misses required checklist fields and the branch is far behind current
main.What I ran
Rechecked exact PR head
5c3e283416dcec80839058b85dfedf5904397165, base3fdd1f52e968c57d2b6890b11863f96aee0c11ce, and current upstreammain9624d8c6bb9e96b7aa92b815f55690f69b0a88d5. The current-main merge preview is clean. Environment: Linux x86-64, Git and GitHub CLI; I did not build locally.Results
mainmainis 10,781 commits ahead of the PR basemain.Fixes,Unblocks, andGPUs testedlines are absent from the descriptionUnedited local command output
Findings
Blocking
Fixes,Unblocks, andGPUs tested. Please addnone,none, andn/arespectively, as applicable to this CI-only change.3fdd1f52e968, while currentmainis9624d8c6bb9e. Although the merge preview is clean, the repository requires branches to be based on and kept up to date with currentmain; rebase or merge currentmain, then rerun the overlap/convention checks.Non-blocking
.github/workflows/build.ymlagainst #12741 because that PR conflicts with its base. My manual hunk comparison found separate workflow sections and no duplicate change; the overlap check should be refreshed after the branch is updated.Sources
Not verified
I did not independently run a macOS/Rosetta host; the successful hosted matrix results and contributor runs are separate from local testing. The Linux and Windows product workflows were skipped.
To get this to a good state
Add the three checklist lines, update the branch onto current
main, and rerun the overlap and convention checks. I will recheck the resulting head and the new hosted statuses.