fix(web): align deployed relinker with release libraries #6746

Closed
mariusyo07 wants to merge 1 commit from upstream-pr/6746 into main
mariusyo07 commented 2026-10-16 09:15:46 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by mariusyo07 on 2026-10-16T09:15:46Z.


What

Fixes #5381. The Pages workflow previously built the browser relinker from main while downloading PRX libraries from the latest release, causing fresh conversions to require imports absent from older bundled libraries.

The Release workflow now builds relinker_wasm.mjs and relinker_wasm.wasm from the same tagged commit as the release libraries, attaching all artifacts to the release. Pages deploys from the completed Release workflow, verifying the latest release tag resolves to that workflow's commit, and packages the WASM and libraries from that exact tag using --release-tag.

Tested

macOS arm64:

  • python3 -m unittest tools/tests/test_build_web_release_pin.py passed (2/2).
  • python3 -m unittest discover -s tools/tests passed (497 tests).
  • git diff --check and tools/check_conventions.py passed.

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
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4886165584 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6746). Originally posted by [mariusyo07](https://github.com/mariusyo07) on 2026-10-16T09:15:46Z. --- ### What Fixes #5381. The Pages workflow previously built the browser relinker from `main` while downloading PRX libraries from the latest release, causing fresh conversions to require imports absent from older bundled libraries. The Release workflow now builds `relinker_wasm.mjs` and `relinker_wasm.wasm` from the same tagged commit as the release libraries, attaching all artifacts to the release. Pages deploys from the completed Release workflow, verifying the latest release tag resolves to that workflow's commit, and packages the WASM and libraries from that exact tag using `--release-tag`. ### Tested macOS arm64: - `python3 -m unittest tools/tests/test_build_web_release_pin.py` passed (2/2). - `python3 -m unittest discover -s tools/tests` passed (497 tests). - `git diff --check` and `tools/check_conventions.py` passed. ### 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 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 - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
copilot-pull-request-reviewer[bot] commented 2026-10-16 09:15:55 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by copilot-pull-request-reviewer[bot] on 2026-10-16T09:15:55Z.

Review: COMMENTED


Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5545574514 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6746#pullrequestreview-5545574514). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/apps/copilot-pull-request-reviewer) on 2026-10-16T09:15:55Z. **Review:** COMMENTED --- Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
github-actions[bot] commented 2026-10-16 09:34:16 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-16T09:34:16Z.


Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 674 .github/workflows/release.yml
CMakeLists.txt
PR 988 .github/workflows/pages.yml
PR 1835 CMakeLists.txt
PR 3786 CMakeLists.txt
PR 3998 CMakeLists.txt
PR 5021 CMakeLists.txt
PR 6044 CMakeLists.txt
PR 6879 CMakeLists.txt
PR 6946 CMakeLists.txt
PR 6947 CMakeLists.txt
PR 7201 CMakeLists.txt
PR 7264 CMakeLists.txt
PR 7332 CMakeLists.txt
tools/build_web.py
PR 7456 CMakeLists.txt
PR 7523 CMakeLists.txt
PR 7642 CMakeLists.txt
PR 7645 CMakeLists.txt
PR 8043 CMakeLists.txt
PR 8067 CMakeLists.txt
PR 8085 CMakeLists.txt
PR 8087 CMakeLists.txt
PR 8151 CMakeLists.txt
PR 8161 CMakeLists.txt
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6212563084 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6746#issuecomment-6212563084). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-16T09:34:16Z. --- <!-- pr-overlap --> Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap. | Pull request | Shared files not compared | |---|---| | [PR 674](https://www.github.com/boykopovar/AnyPS5/pull/674) | `.github/workflows/release.yml`<br>`CMakeLists.txt` | | [PR 988](https://www.github.com/boykopovar/AnyPS5/pull/988) | `.github/workflows/pages.yml` | | [PR 1835](https://www.github.com/boykopovar/AnyPS5/pull/1835) | `CMakeLists.txt` | | [PR 3786](https://www.github.com/boykopovar/AnyPS5/pull/3786) | `CMakeLists.txt` | | [PR 3998](https://www.github.com/boykopovar/AnyPS5/pull/3998) | `CMakeLists.txt` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `CMakeLists.txt` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `CMakeLists.txt` | | [PR 6879](https://www.github.com/boykopovar/AnyPS5/pull/6879) | `CMakeLists.txt` | | [PR 6946](https://www.github.com/boykopovar/AnyPS5/pull/6946) | `CMakeLists.txt` | | [PR 6947](https://www.github.com/boykopovar/AnyPS5/pull/6947) | `CMakeLists.txt` | | [PR 7201](https://www.github.com/boykopovar/AnyPS5/pull/7201) | `CMakeLists.txt` | | [PR 7264](https://www.github.com/boykopovar/AnyPS5/pull/7264) | `CMakeLists.txt` | | [PR 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `CMakeLists.txt`<br>`tools/build_web.py` | | [PR 7456](https://www.github.com/boykopovar/AnyPS5/pull/7456) | `CMakeLists.txt` | | [PR 7523](https://www.github.com/boykopovar/AnyPS5/pull/7523) | `CMakeLists.txt` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `CMakeLists.txt` | | [PR 7645](https://www.github.com/boykopovar/AnyPS5/pull/7645) | `CMakeLists.txt` | | [PR 8043](https://www.github.com/boykopovar/AnyPS5/pull/8043) | `CMakeLists.txt` | | [PR 8067](https://www.github.com/boykopovar/AnyPS5/pull/8067) | `CMakeLists.txt` | | [PR 8085](https://www.github.com/boykopovar/AnyPS5/pull/8085) | `CMakeLists.txt` | | [PR 8087](https://www.github.com/boykopovar/AnyPS5/pull/8087) | `CMakeLists.txt` | | [PR 8151](https://www.github.com/boykopovar/AnyPS5/pull/8151) | `CMakeLists.txt` | | [PR 8161](https://www.github.com/boykopovar/AnyPS5/pull/8161) | `CMakeLists.txt` |
adriadam10 commented 2026-10-19 08:08:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-19T08:08:15Z.

Review: CHANGES_REQUESTED


Thanks, aligning the WASM relinker with the release libraries is the right fix for #5381. One problem to address:

  • .github/workflows/pages.yml:3: removing the push (main) and workflow_dispatch triggers means the site is only redeployed after a new v* tag. Changes to demo/web/**, tools/progress.py, tools/progress_history.py and the progress pages would never be published between releases, and the workflow can no longer be run by hand. Keep a path-filtered push trigger plus workflow_dispatch, but have those runs also use the latest release's WASM and libraries (gh release view tag, same --release-tag), so the pair stays consistent without building WASM from main. The commit-vs-tag check can stay for the workflow_run path only.
  • The branch conflicts with main in pages.yml: main added a paths: filter to the push trigger (afe2141a7). Please rebase and keep that filter when restoring the trigger.

The rest (release.yml web job, --release-tag validation, the new test registered in ctest) looks fine. The full Release→Pages flow only runs on a real tag, so please say in the PR how you checked it (e.g. a dry run on your fork).

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5568603236 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6746#pullrequestreview-5568603236). Originally posted by [adriadam10](https://github.com/adriadam10) on 2026-10-19T08:08:15Z. **Review:** CHANGES_REQUESTED --- Thanks, aligning the WASM relinker with the release libraries is the right fix for #5381. One problem to address: - `.github/workflows/pages.yml:3`: removing the `push` (main) and `workflow_dispatch` triggers means the site is only redeployed after a new `v*` tag. Changes to `demo/web/**`, `tools/progress.py`, `tools/progress_history.py` and the progress pages would never be published between releases, and the workflow can no longer be run by hand. Keep a path-filtered `push` trigger plus `workflow_dispatch`, but have those runs also use the latest release's WASM and libraries (`gh release view` tag, same `--release-tag`), so the pair stays consistent without building WASM from `main`. The commit-vs-tag check can stay for the `workflow_run` path only. - The branch conflicts with `main` in `pages.yml`: `main` added a `paths:` filter to the `push` trigger (afe2141a7). Please rebase and keep that filter when restoring the trigger. The rest (release.yml `web` job, `--release-tag` validation, the new test registered in ctest) looks fine. The full Release→Pages flow only runs on a real tag, so please say in the PR how you checked it (e.g. a dry run on your fork).
oneandonlydean commented 2026-10-20 05:09:40 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-20T05:09:40Z.


Thanks for working on this. #5710 has now merged as the fix for #5381: the site deploys the relinker and libraries from the same release, so this one is covered and now conflicts. Closing; thank you for the work on it.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6283874881 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/6746#issuecomment-6283874881). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-20T05:09:40Z. --- Thanks for working on this. #5710 has now merged as the fix for #5381: the site deploys the relinker and libraries from the same release, so this one is covered and now conflicts. Closing; thank you for the work on it.

Pull request closed

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!6746
No description provided.