ci: run the macOS write watch and register context tests under Rosetta #3962

Merged
ahir061 merged 2 commits from upstream-pr/3962 into main 2026-11-04 20:32:00 +00:00
ahir061 commented 2026-10-11 19:56:58 +00:00 (Migrated from github.com)

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 on macos-15-intel and Linux. This adds x86_64 builds of both on macos-15, using the -DCMAKE_OSX_ARCHITECTURES=x86_64 configuration 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) and write-watch (macos-15, x86_64). The existing jobs are unchanged: CMAKE_OSX_ARCHITECTURES is empty for them, which keeps the host architecture.

Tested

  • MacBook Air M3, macOS 26.0.1, AppleClang 17.0.0, CMake 4.4.4, under Rosetta (file reports Mach-O 64-bit executable x86_64), with the same commands as the new jobs and --repeat until-fail:3:
    • write watch, Release: 6/6 pass.
    • register context, Release and Debug: 3/3 pass each.
  • The matrix expands to the existing combinations plus the three new ones.
  • tools/check_conventions.py --base main passes.
  • Both jobs run on every pull request, so this PR's checks run the new jobs on GitHub's macos-15 image.

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 in TechnicalDebt
  • No notes, investigation .md files or images added to the repository
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a (CI only)
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4821899718 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3962). Originally posted by [ahir061](https://github.com/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 on `macos-15-intel` and Linux. This adds x86_64 builds of both on `macos-15`, using the `-DCMAKE_OSX_ARCHITECTURES=x86_64` configuration 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)` and `write-watch (macos-15, x86_64)`. The existing jobs are unchanged: `CMAKE_OSX_ARCHITECTURES` is empty for them, which keeps the host architecture. ### Tested - MacBook Air M3, macOS 26.0.1, AppleClang 17.0.0, CMake 4.4.4, under Rosetta (`file` reports `Mach-O 64-bit executable x86_64`), with the same commands as the new jobs and `--repeat until-fail:3`: - write watch, Release: 6/6 pass. - register context, Release and Debug: 3/3 pass each. - The matrix expands to the existing combinations plus the three new ones. - `tools/check_conventions.py --base main` passes. - Both jobs run on every pull request, so this PR's checks run the new jobs on GitHub's `macos-15` image. ### Checklist - [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 in [TechnicalDebt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/TechnicalDebt.md#silent-stubs) - [x] No notes, investigation `.md` files or images added to the repository - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a (CI only) - [x] Depends on: none - [x] AI-assisted: yes
TideOPL commented 2026-10-11 22:05:52 +00:00 (Migrated from github.com)

Imported 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) and write-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.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6114357553 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3962#issuecomment-6114357553). Originally posted by [TideOPL](https://github.com/TideOPL) on 2026-10-11T22:05:52Z. --- Looks good. The three new jobs (`register-context (macos-15, Debug|Release, x86_64)` and `write-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.
thuanquang commented 2026-10-13 06:59:28 +00:00 (Migrated from github.com)

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 main at c2565f014. It merges cleanly, both jobs keep the needs: eligibility / if: gating from #4405, and test_check_conventions_ci_gate.py and check_conventions.py --base origin/main pass 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):

Job Result
register-context, Debug, x86_64 3/3 pass
register-context, Release, x86_64 3/3 pass
write-watch, Release, x86_64 8/8 pass (the suite has 8 tests on current main)

file reports Mach-O 64-bit executable x86_64 for all three test binaries.

To look for Rosetta-only flakiness, each build also ran --repeat until-fail:100 serially and --repeat until-fail:50 -j8: 2,100 test runs, no failures. Slowest single run: 0.10 s for register context; write_watch_threads 0.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-15 runner results.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6140135952 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3962#issuecomment-6140135952). Originally posted by [thuanquang](https://github.com/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 `main` at c2565f014. It merges cleanly, both jobs keep the `needs: eligibility` / `if:` gating from #4405, and `test_check_conventions_ci_gate.py` and `check_conventions.py --base origin/main` pass 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`): | Job | Result | |---|---| | `register-context`, Debug, x86_64 | 3/3 pass | | `register-context`, Release, x86_64 | 3/3 pass | | `write-watch`, Release, x86_64 | 8/8 pass (the suite has 8 tests on current `main`) | `file` reports `Mach-O 64-bit executable x86_64` for all three test binaries. To look for Rosetta-only flakiness, each build also ran `--repeat until-fail:100` serially and `--repeat until-fail:50 -j8`: 2,100 test runs, no failures. Slowest single run: 0.10 s for register context; `write_watch_threads` 0.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-15` runner results. AI-assisted: yes (Claude Code)
MarcZX10 commented 2026-10-21 23:47:05 +00:00 (Migrated from github.com)

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.md includes Fixes:, Unblocks:, and GPUs tested: checklist lines, but this PR body omits all three. Please complete them (none, none, and n/a, respectively) so the description follows the repository’s current template. The conventions workflow passed, but it did not flag these missing fields.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5607597405 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3962#pullrequestreview-5607597405). Originally posted by [MarcZX10](https://github.com/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.md` includes `Fixes:`, `Unblocks:`, and `GPUs tested:` checklist lines, but this PR body omits all three. Please complete them (`none`, `none`, and `n/a`, respectively) so the description follows the repository’s current template. The conventions workflow passed, but it did not flag these missing fields.
THEMANnt commented 2026-10-25 07:09:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-25T07:09:56Z.

Review: APPROVED


Reviewed 5c3e283416dcec80839058b85dfedf5904397165 against author merge base 4866297fcfaa56b53d0ff5b21e4909bed1d89ffd.

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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5642019255 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3962#pullrequestreview-5642019255). Originally posted by [THEMANnt](https://github.com/THEMANnt) on 2026-10-25T07:09:56Z. **Review:** APPROVED --- Reviewed `5c3e283416dcec80839058b85dfedf5904397165` against author merge base `4866297fcfaa56b53d0ff5b21e4909bed1d89ffd`. 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.
MarcZX10 commented 2026-10-29 21:16:47 +00:00 (Migrated from github.com)

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, base 3fdd1f52e968c57d2b6890b11863f96aee0c11ce, and current upstream main 9624d8c6bb9e96b7aa92b815f55690f69b0a88d5. The current-main merge preview is clean. Environment: Linux x86-64, Git and GitHub CLI; I did not build locally.

git diff --check 9624d8c6bb9e96b7aa92b815f55690f69b0a88d5...refs/review/pr-3962-head
git merge-tree --write-tree 9624d8c6bb9e96b7aa92b815f55690f69b0a88d5 refs/review/pr-3962-head
git rev-list --count 3fdd1f52e968c57d2b6890b11863f96aee0c11ce..9624d8c6bb9e96b7aa92b815f55690f69b0a88d5

Results

Check Result
Patch whitespace Pass
Merge preview on current main Clean
Base freshness Current main is 10,781 commits ahead of the PR base
Hosted Rosetta register-context Debug/Release and write-watch x86_64 jobs Pass on this exact head; the existing matrix jobs also pass
Hosted conventions, eligibility and labels Pass on this exact head
Hosted Linux and Windows product jobs Skipped
Shared workflow overlap with #12741 The overlap bot could not compare the shared file because #12741 conflicts with its base. I manually compared the hunks: this PR changes the register-context/write-watch matrix around lines 358–429; #12741 changes eligibility and adds edge-watch elsewhere. I found no same-hunk overlap. Recheck after syncing current main.
PR template checklist Fixes, Unblocks, and GPUs tested lines are absent from the description
Local build/tests Not run; the exact-head hosted matrix already exercises the added jobs
Unedited local command output
diffcheck-exit=0
0c9c8fc05e1a6fdb6d8464fc4f8bc7ad6d5b245b
merge-tree-exit=0
10781

Findings

Blocking

  • The PR description omits the required checklist entries Fixes, Unblocks, and GPUs tested. Please add none, none, and n/a respectively, as applicable to this CI-only change.
  • The PR base is 3fdd1f52e968, while current main is 9624d8c6bb9e. Although the merge preview is clean, the repository requires branches to be based on and kept up to date with current main; rebase or merge current main, then rerun the overlap/convention checks.

Non-blocking

  • The overlap bot could not compare .github/workflows/build.yml against #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.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5705081231 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/3962#pullrequestreview-5705081231). Originally posted by [MarcZX10](https://github.com/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`, base `3fdd1f52e968c57d2b6890b11863f96aee0c11ce`, and current upstream `main` `9624d8c6bb9e96b7aa92b815f55690f69b0a88d5`. The current-main merge preview is clean. Environment: Linux x86-64, Git and GitHub CLI; I did not build locally. ```sh git diff --check 9624d8c6bb9e96b7aa92b815f55690f69b0a88d5...refs/review/pr-3962-head git merge-tree --write-tree 9624d8c6bb9e96b7aa92b815f55690f69b0a88d5 refs/review/pr-3962-head git rev-list --count 3fdd1f52e968c57d2b6890b11863f96aee0c11ce..9624d8c6bb9e96b7aa92b815f55690f69b0a88d5 ``` ## Results | Check | Result | |---|---| | Patch whitespace | Pass | | Merge preview on current `main` | Clean | | Base freshness | Current `main` is 10,781 commits ahead of the PR base | | Hosted Rosetta register-context Debug/Release and write-watch x86_64 jobs | Pass on this exact head; the existing matrix jobs also pass | | Hosted conventions, eligibility and labels | Pass on this exact head | | Hosted Linux and Windows product jobs | Skipped | | Shared workflow overlap with #12741 | The overlap bot could not compare the shared file because #12741 conflicts with its base. I manually compared the hunks: this PR changes the register-context/write-watch matrix around lines 358–429; #12741 changes eligibility and adds edge-watch elsewhere. I found no same-hunk overlap. Recheck after syncing current `main`. | | PR template checklist | `Fixes`, `Unblocks`, and `GPUs tested` lines are absent from the description | | Local build/tests | Not run; the exact-head hosted matrix already exercises the added jobs | <details> <summary>Unedited local command output</summary> ```text diffcheck-exit=0 0c9c8fc05e1a6fdb6d8464fc4f8bc7ad6d5b245b merge-tree-exit=0 10781 ``` </details> ## Findings ### Blocking - The PR description omits the required checklist entries `Fixes`, `Unblocks`, and `GPUs tested`. Please add `none`, `none`, and `n/a` respectively, as applicable to this CI-only change. - The PR base is `3fdd1f52e968`, while current `main` is `9624d8c6bb9e`. Although the merge preview is clean, the repository requires branches to be based on and kept up to date with current `main`; rebase or merge current `main`, then rerun the overlap/convention checks. ### Non-blocking - The overlap bot could not compare `.github/workflows/build.yml` against #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 - [Branch and checklist requirements at current main](https://github.com/boykopovar/AnyPS5/blob/9624d8c6bb9e96b7aa92b815f55690f69b0a88d5/CONTRIBUTING.md) - [Pull request template at current main](https://github.com/boykopovar/AnyPS5/blob/9624d8c6bb9e96b7aa92b815f55690f69b0a88d5/.github/pull_request_template.md) - [Build workflow at current main](https://github.com/boykopovar/AnyPS5/blob/9624d8c6bb9e96b7aa92b815f55690f69b0a88d5/.github/workflows/build.yml) ## 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.
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!3962
No description provided.