fix(tools): accept web release archives that predate newer web files #12783
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12783"
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 oneandonlydean on 2026-10-29T08:48:19Z.
What
Fixes the website's Pages deploy, which has failed on every run since 28 Oct.
The
Pagesjob stops in "Download matching release converter and libraries":tools/build_web.py --releaseraisesInvalid web release archive layout. It required the release zip's file set to equal main's currentWEB_FILES. #11228 addedfailure-report.mjstoWEB_FILES, but the latest release (v0.1.3, 20 Oct) shipsweb-v0.1.3.zipwithout it, so no run can pass until a newer release is cut.The release zip's
web-release.jsononly recordstagandrevision(no file list), so the check now does this instead:index.html,app.mjs,worker.mjs,native/relinker_wasm.mjs,native/relinker_wasm.wasm, andweb-release.json;WEB_FILES(plusweb-release.json), so an older release that lacks a newer optional file is accepted and anything unknown is still rejected;Pages serves the release exactly as shipped, so the v0.1.3 site stays self-consistent: its
app.mjsimports onlyoutput-directory.mjsandbatch.mjs, notfailure-report.mjs.Tested
tools/tests/test_build_web.py: 24 tests OK (6 new: a release lacking a newer web file is published; a full current release is published; unknown/escaping files, a missing core file, a duplicate entry, an empty file and mismatched metadata are rejected). Already registered in CMake.test_package_release.py: 65 OK (5 skipped, as on main).build_web.py --releasefails withInvalid web release archive layouton main and succeeds with this change (Published web converter and libraries from v0.1.3).check_conventions.pyagainst origin/main: all passed.Checklist