fix(web): publish converter and libraries from one release #5710

Merged
AMRYB merged 1 commit from upstream-pr/5710 into main 2026-10-20 04:47:07 +00:00
AMRYB commented 2026-10-14 07:39:29 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AMRYB on 2026-10-14T07:39:29Z.


What

Fixes #5381. Pages builds the converter from main but downloads libraries from the latest release, so a conversion can require exports that its bundled libraries lack.

Build and test the complete frontend and WASM converter in the Release workflow alongside the native library builds. All release jobs check out the same event commit. Publish web-<tag>.zip with the frontend, converter and tag/commit metadata, and require it before publishing the release. Pages selects one release once, validates and stages its converter and both library archives, and records the commit in release.json. --libraries is an alias for this paired-release mode; local development without that flag still uses the local build.

Rebased onto main d17f456eac16da6d067c03c3cbbd79aabc42ac6c. Preserve main's recursive submodule checkout, Windows CA-bundle setup, Tracy runtime packaging, Windows destination checks, library path-collision checks and expanded-size limit. Register the web tests beside the release packaging tests instead of the end of the conventions block. Include main's new batch.mjs and output-directory.mjs; a regression now checks that every frontend source is packaged.

A new release containing the web asset is required after merging. Older releases without that asset are rejected before Pages deployment. Converter/frontend updates reach Pages through releases; progress reports still come from main.

Related alternative: #6746 also addresses #5381 with release-pinned WASM. This PR packages the complete frontend and WASM together and tests that complete bundle. These are alternative publication mechanisms; maintainers should select one rather than merge both. This update resolves #5710's existing conflicts and does not depend on #6746.

Tested

Windows, Python 3.14.7, Node.js, Emscripten 6.0.3, CMake 4.4.4 and Ninja 1.13.2. Head e10616b17bd8f2faa12633d80fb8dcda28a040b0, based on main d17f456eac16da6d067c03c3cbbd79aabc42ac6c.

  • test_web_release.py: 18 passed, including complete frontend coverage and the existing paired-release publication, metadata, failure-preservation and CLI regressions.

  • Main's test_build_web.py: 7 passed, retaining collision and expanded-size checks.

  • Main's test_package_release.py: 28 run, 20 passed / 8 skipped on this Windows host.

  • Main's CI gate and registration suites: 11 passed; 28 run with 27 passed / 1 skipped. Python total: 83 passed / 9 skipped, no failures.

  • Real WASM Release rebuild and tools/test_web.py pass: ZIP/folder conversion to Windows and Linux, guest modules, original files, permissions, streaming, multiple-package output, archive-root validation and current worker checks. Its output-directory suite passes 6/6; the separate batch suite passes 2/2.

  • Package that real WASM build, download it through the publisher with a mocked release API and synthetic library ZIPs, compare every published frontend/WASM file with the build, and rerun the conversion suite against the staged site: pass. No title startup or real native library execution is claimed.

  • actionlint 1.7.12, conventions and whitespace checks pass. Local git merge-tree --write-tree succeeds against the recorded main and #7456 head 361f56a081aee3df5a4ff577976e1d8d48efac2b; the combined #7456 tree was not built or tested.

  • Local ools/pr_overlap.py --branch fix/web-release-pairing --repo boykopovar/AnyPS5 completes with no confirmed overlap. Twelve comparisons remain uncompleted for other branches conflicting with the base; #7456 no longer appears.

No full native Linux/Windows library rebuild, native relinker-only CTest run, browser UI run, official release or Pages deployment was performed. GitHub checks are separate from these local results; remaining warnings for other branches that conflict with main still require review.

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
  • Fixes: #5381
  • Unblocks: none (publication compatibility; no title run)
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4854584887 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5710). Originally posted by [AMRYB](https://github.com/AMRYB) on 2026-10-14T07:39:29Z. --- ### What Fixes #5381. Pages builds the converter from `main` but downloads libraries from the latest release, so a conversion can require exports that its bundled libraries lack. Build and test the complete frontend and WASM converter in the Release workflow alongside the native library builds. All release jobs check out the same event commit. Publish `web-<tag>.zip` with the frontend, converter and tag/commit metadata, and require it before publishing the release. Pages selects one release once, validates and stages its converter and both library archives, and records the commit in `release.json`. `--libraries` is an alias for this paired-release mode; local development without that flag still uses the local build. Rebased onto main `d17f456eac16da6d067c03c3cbbd79aabc42ac6c`. Preserve main's recursive submodule checkout, Windows CA-bundle setup, Tracy runtime packaging, Windows destination checks, library path-collision checks and expanded-size limit. Register the web tests beside the release packaging tests instead of the end of the conventions block. Include main's new `batch.mjs` and `output-directory.mjs`; a regression now checks that every frontend source is packaged. A new release containing the web asset is required after merging. Older releases without that asset are rejected before Pages deployment. Converter/frontend updates reach Pages through releases; progress reports still come from main. Related alternative: #6746 also addresses #5381 with release-pinned WASM. This PR packages the complete frontend and WASM together and tests that complete bundle. These are alternative publication mechanisms; maintainers should select one rather than merge both. This update resolves #5710's existing conflicts and does not depend on #6746. ### Tested Windows, Python 3.14.7, Node.js, Emscripten 6.0.3, CMake 4.4.4 and Ninja 1.13.2. Head `e10616b17bd8f2faa12633d80fb8dcda28a040b0`, based on main `d17f456eac16da6d067c03c3cbbd79aabc42ac6c`. - `test_web_release.py`: 18 passed, including complete frontend coverage and the existing paired-release publication, metadata, failure-preservation and CLI regressions. - Main's `test_build_web.py`: 7 passed, retaining collision and expanded-size checks. - Main's `test_package_release.py`: 28 run, 20 passed / 8 skipped on this Windows host. - Main's CI gate and registration suites: 11 passed; 28 run with 27 passed / 1 skipped. Python total: 83 passed / 9 skipped, no failures. - Real WASM Release rebuild and `tools/test_web.py` pass: ZIP/folder conversion to Windows and Linux, guest modules, original files, permissions, streaming, multiple-package output, archive-root validation and current worker checks. Its output-directory suite passes 6/6; the separate batch suite passes 2/2. - Package that real WASM build, download it through the publisher with a mocked release API and synthetic library ZIPs, compare every published frontend/WASM file with the build, and rerun the conversion suite against the staged site: pass. No title startup or real native library execution is claimed. - `actionlint` 1.7.12, conventions and whitespace checks pass. Local `git merge-tree --write-tree` succeeds against the recorded main and #7456 head `361f56a081aee3df5a4ff577976e1d8d48efac2b`; the combined #7456 tree was not built or tested. - Local ools/pr_overlap.py --branch fix/web-release-pairing --repo boykopovar/AnyPS5 completes with no confirmed overlap. Twelve comparisons remain uncompleted for other branches conflicting with the base; #7456 no longer appears. No full native Linux/Windows library rebuild, native relinker-only CTest run, browser UI run, official release or Pages deployment was performed. GitHub checks are separate from these local results; remaining warnings for other branches that conflict with main still require review. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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] Fixes: #5381 - [x] Unblocks: none (publication compatibility; no title run) - [x] GPUs tested: n/a - [x] AI-assisted: yes
github-actions[bot] commented 2026-10-14 07:39:45 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T07:39:45Z.


Thank you for your contribution! Authors with no pull requests merged into main can have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6163395777 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5710#issuecomment-6163395777). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T07:39:45Z. --- Thank you for your contribution! Authors with no pull requests merged into `main` can have 1 open pull request at a time, authors with at least 1 merged can have 20, and from 20 merged there is no limit. This PR has been automatically closed and labeled "open PR limit" because that limit was reached. This is not a judgment of the quality of your changes: reopen it once one of your open pull requests is merged or closed.
github-actions[bot] commented 2026-10-14 07:43:15 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T07:43:15Z.


Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 988 .github/workflows/pages.yml L59-60

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
docs/dev/BUILD.md
tools/package_release.py
PR 1835 CMakeLists.txt
docs/dev/BUILD.md
PR 5021 CMakeLists.txt
docs/dev/BUILD.md
PR 5797 tools/package_release.py
PR 6044 CMakeLists.txt
PR 6746 .github/workflows/pages.yml
.github/workflows/release.yml
CMakeLists.txt
tools/build_web.py
PR 6879 CMakeLists.txt
docs/dev/BUILD.md
PR 6946 CMakeLists.txt
PR 6947 CMakeLists.txt
PR 7201 CMakeLists.txt
PR 7332 CMakeLists.txt
docs/dev/BUILD.md
tools/build_web.py
PR 7642 CMakeLists.txt
<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6163455892 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5710#issuecomment-6163455892). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-14T07:43:15Z. --- <!-- pr-overlap --> Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in **Depends on**. | Pull request | Conflicting files (lines on `main`) | Same exports | Same new files | |---|---|---|---| | [PR 988](https://www.github.com/boykopovar/AnyPS5/pull/988) | `.github/workflows/pages.yml` [L59-60](https://github.com/boykopovar/AnyPS5/blob/49fd13a74150cfffdfcdfefd3c90404403e922b8/.github/workflows/pages.yml#L59-L60) | | | 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`<br>`docs/dev/BUILD.md`<br>`tools/package_release.py` | | [PR 1835](https://www.github.com/boykopovar/AnyPS5/pull/1835) | `CMakeLists.txt`<br>`docs/dev/BUILD.md` | | [PR 5021](https://www.github.com/boykopovar/AnyPS5/pull/5021) | `CMakeLists.txt`<br>`docs/dev/BUILD.md` | | [PR 5797](https://www.github.com/boykopovar/AnyPS5/pull/5797) | `tools/package_release.py` | | [PR 6044](https://www.github.com/boykopovar/AnyPS5/pull/6044) | `CMakeLists.txt` | | [PR 6746](https://www.github.com/boykopovar/AnyPS5/pull/6746) | `.github/workflows/pages.yml`<br>`.github/workflows/release.yml`<br>`CMakeLists.txt`<br>`tools/build_web.py` | | [PR 6879](https://www.github.com/boykopovar/AnyPS5/pull/6879) | `CMakeLists.txt`<br>`docs/dev/BUILD.md` | | [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 7332](https://www.github.com/boykopovar/AnyPS5/pull/7332) | `CMakeLists.txt`<br>`docs/dev/BUILD.md`<br>`tools/build_web.py` | | [PR 7642](https://www.github.com/boykopovar/AnyPS5/pull/7642) | `CMakeLists.txt` |
Roojool commented 2026-10-14 13:40:30 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Roojool on 2026-10-14T13:40:30Z.


Happy to carry this: you have the implementation, the issue it fixes (#5381) now has four independent title reproductions across Linux and Windows, and your slot is held by #3456.

If you want it, I'll push your branch as-is to my fork and open the PR from my side — every commit stays authored by you, the PR body credits the implementation as yours, and it would state explicitly that it's a carry of this one at your invitation, closed here only by the open-PR limit. Any rebase or CI fixes it needs would go on top as separate, clearly-marked commits.

Say the word and I'll have it up within the hour. (Alternatively, if you'd rather keep it until a slot frees, completely understood — just leaving the offer here.)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6169729291 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5710#issuecomment-6169729291). Originally posted by [Roojool](https://github.com/Roojool) on 2026-10-14T13:40:30Z. --- Happy to carry this: you have the implementation, the issue it fixes (#5381) now has four independent title reproductions across Linux and Windows, and your slot is held by #3456. If you want it, I'll push your branch as-is to my fork and open the PR from my side — every commit stays authored by you, the PR body credits the implementation as yours, and it would state explicitly that it's a carry of this one at your invitation, closed here only by the open-PR limit. Any rebase or CI fixes it needs would go on top as separate, clearly-marked commits. Say the word and I'll have it up within the hour. (Alternatively, if you'd rather keep it until a slot frees, completely understood — just leaving the offer here.)
AMRYB commented 2026-10-14 13:47:41 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AMRYB on 2026-10-14T13:47:41Z.


Happy to carry this: you have the implementation, the issue it fixes (#5381) now has four independent title reproductions across Linux and Windows, and your slot is held by #3456.

If you want it, I'll push your branch as-is to my fork and open the PR from my side — every commit stays authored by you, the PR body credits the implementation as yours, and it would state explicitly that it's a carry of this one at your invitation, closed here only by the open-PR limit. Any rebase or CI fixes it needs would go on top as separate, clearly-marked commits.

Say the word and I'll have it up within the hour. (Alternatively, if you'd rather keep it until a slot frees, completely understood — just leaving the offer here.)

Yes, please feel free to carry it. Thanks for keeping the commits and attribution intact ❤️✨

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6169874055 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5710#issuecomment-6169874055). Originally posted by [AMRYB](https://github.com/AMRYB) on 2026-10-14T13:47:41Z. --- > Happy to carry this: you have the implementation, the issue it fixes (#5381) now has four independent title reproductions across Linux and Windows, and your slot is held by #3456. > > If you want it, I'll push your branch as-is to my fork and open the PR from my side — every commit stays authored by you, the PR body credits the implementation as yours, and it would state explicitly that it's a carry of this one at your invitation, closed here only by the open-PR limit. Any rebase or CI fixes it needs would go on top as separate, clearly-marked commits. > > Say the word and I'll have it up within the hour. (Alternatively, if you'd rather keep it until a slot frees, completely understood — just leaving the offer here.) > Yes, please feel free to carry it. Thanks for keeping the commits and attribution intact ❤️✨
oneandonlydean commented 2026-10-18 00:57:12 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T00:57:12Z.


@Roojool, on 10-14 you offered to carry this from your fork and @AMRYB accepted. Is that still coming? We can't find a PR from you for it yet.

#6746 (mariusyo07) also fixes #5381 and is open and mergeable. It builds the relinker WASM in the Release workflow from the tagged commit and has Pages deploy from that release. This PR does more: it packages the whole web converter (frontend and WASM) as web-<tag>.zip, adds 17 release tests and was tested against a real WASM build, but it now conflicts with main. If you still plan to carry it, please say so and say how you'd like it to relate to #6746, so the two don't both land.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6243965565 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5710#issuecomment-6243965565). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-18T00:57:12Z. --- @Roojool, on 10-14 you offered to carry this from your fork and @AMRYB accepted. Is that still coming? We can't find a PR from you for it yet. #6746 (mariusyo07) also fixes #5381 and is open and mergeable. It builds the relinker WASM in the Release workflow from the tagged commit and has Pages deploy from that release. This PR does more: it packages the whole web converter (frontend and WASM) as `web-<tag>.zip`, adds 17 release tests and was tested against a real WASM build, but it now conflicts with main. If you still plan to carry it, please say so and say how you'd like it to relate to #6746, so the two don't both land.
AMRYB commented 2026-10-18 20:47:22 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by AMRYB on 2026-10-18T20:47:22Z.


@oneandonlydean Thanks for following up. I've now rebased this PR onto main (d17f456ea) and pushed e10616b17. The conflicts are resolved, and GitHub currently reports the PR as mergeable.

The update preserves main's release and archive-validation changes, includes the new batch.mjs and output-directory.mjs frontend files, and adds a regression checking that every frontend source is packaged. Local validation passed: 18 web-release tests; 83 Python tests passed in total, with 9 skipped on this Windows host; the real WASM rebuild and conversion checks also passed. GitHub Conventions passes. The upstream Build run still requires maintainer approval; I am not claiming a completed upstream build.

I've also updated the PR description to explicitly identify #6746 as an alternative, so the two publication mechanisms should not both land. I'm happy to follow the maintainers' preferred direction.

If @Roojool is unavailable to carry this forward, could you please help find another contributor who can, keeping the commits and attribution intact? I'd like to avoid the work stalling: the open-PR limit is holding up my next contribution while this remains pending. Thanks to both of you for your help.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254957783 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5710#issuecomment-6254957783). Originally posted by [AMRYB](https://github.com/AMRYB) on 2026-10-18T20:47:22Z. --- @oneandonlydean Thanks for following up. I've now rebased this PR onto main (`d17f456ea`) and pushed `e10616b17`. The conflicts are resolved, and GitHub currently reports the PR as mergeable. The update preserves main's release and archive-validation changes, includes the new `batch.mjs` and `output-directory.mjs` frontend files, and adds a regression checking that every frontend source is packaged. Local validation passed: 18 web-release tests; 83 Python tests passed in total, with 9 skipped on this Windows host; the real WASM rebuild and conversion checks also passed. GitHub Conventions passes. The upstream Build run still requires maintainer approval; I am not claiming a completed upstream build. I've also updated the PR description to explicitly identify #6746 as an alternative, so the two publication mechanisms should not both land. I'm happy to follow the maintainers' preferred direction. If @Roojool is unavailable to carry this forward, could you please help find another contributor who can, keeping the commits and attribution intact? I'd like to avoid the work stalling: the open-PR limit is holding up my next contribution while this remains pending. Thanks to both of you for your help.
oneandonlydean commented 2026-10-20 05:11:44 +00:00 (Migrated from github.com)

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


@boykopovar FYI on releases, now that this is merged:

  • Pages now deploys from the latest release's web-<tag>.zip. v0.1.2 has none, so the Pages job fails on main pushes and the site stays on its last deploy until the next release.
  • Both v0.1.3 Release runs (39158404755, 39322114724) stopped in "Run tests (Linux)" on precise_wait, which the hosted runner can't pass. #8216 (merged) skips that one test in the Linux release step only; normal CI still runs it.
  • Re-running the v0.1.3 runs won't help: the tag points at 5057673804 (18 Oct), which has neither #8216 nor this PR, so it would fail the same way and build no web zip.

So the next release needs a tag on current main (currently 68323bae74). A full release and Pages dry run on a fork passed with both changes. When to cut it is up to you.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6283899661 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/5710#issuecomment-6283899661). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-20T05:11:44Z. --- @boykopovar FYI on releases, now that this is merged: - Pages now deploys from the latest release's `web-<tag>.zip`. v0.1.2 has none, so the Pages job fails on main pushes and the site stays on its last deploy until the next release. - Both v0.1.3 Release runs (39158404755, 39322114724) stopped in "Run tests (Linux)" on `precise_wait`, which the hosted runner can't pass. #8216 (merged) skips that one test in the Linux release step only; normal CI still runs it. - Re-running the v0.1.3 runs won't help: the tag points at 5057673804 (18 Oct), which has neither #8216 nor this PR, so it would fail the same way and build no web zip. So the next release needs a tag on current main (currently 68323bae74). A full release and Pages dry run on a fork passed with both changes. When to cut it is up to you.
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!5710
No description provided.