fix(web): publish converter and libraries from one release #5710
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5710"
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 AMRYB on 2026-10-14T07:39:29Z.
What
Fixes #5381. Pages builds the converter from
mainbut 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>.zipwith 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 inrelease.json.--librariesis 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 newbatch.mjsandoutput-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 maind17f456eac16da6d067c03c3cbbd79aabc42ac6c.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.pypass: 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.
actionlint1.7.12, conventions and whitespace checks pass. Localgit merge-tree --write-treesucceeds against the recorded main and #7456 head361f56a081aee3df5a4ff577976e1d8d48efac2b; 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
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)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
maincan 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.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.
main).github/workflows/pages.ymlL59-60Some 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.
.github/workflows/release.ymlCMakeLists.txtdocs/dev/BUILD.mdtools/package_release.pyCMakeLists.txtdocs/dev/BUILD.mdCMakeLists.txtdocs/dev/BUILD.mdtools/package_release.pyCMakeLists.txt.github/workflows/pages.yml.github/workflows/release.ymlCMakeLists.txttools/build_web.pyCMakeLists.txtdocs/dev/BUILD.mdCMakeLists.txtCMakeLists.txtCMakeLists.txtCMakeLists.txtdocs/dev/BUILD.mdtools/build_web.pyCMakeLists.txtImported 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.)
Imported from boykopovar/AnyPS5. Originally posted by AMRYB on 2026-10-14T13:47:41Z.
Yes, please feel free to carry it. Thanks for keeping the commits and attribution intact ❤️✨
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.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 pushede10616b17. 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.mjsandoutput-directory.mjsfrontend 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.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-20T05:11:44Z.
@boykopovar FYI on releases, now that this is merged:
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.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.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.