feat(ci): publish tested main snapshots with matching web assets #5896
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5896"
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 Recapi on 2026-10-14T15:02:37Z.
What
Fixes #5381 by publishing the browser converter, frontend and both native library sets from the same tested
maincommit.vdev-<full SHA>prerelease containing native binaries, ZIP/tar library archives, the complete web site and user documentation. PR and manual combined-PR builds cannot publish. Development tags are excluded from the stable Release workflow and are never marked latest.release.jsonrecords the SHA, tag, commit-scoped frontend/converter URLs and content-addressed library URLs, sizes and hashes. The browser uses the selected manifest without the latest-release API. Frontend, worker, archive module, CSS and WASM use the same commit namespace; stale cached frontend/manifest combinations fail with a reload instruction instead of mixing versions.docs/dev/BUILD.md.Related closed PRs #5409 and #5710 align the website with tagged stable releases. This PR takes the different approach of automatic tested-main snapshots. It does not reuse their patches. Publication changes overlap conceptually and should not be merged as parallel deployment mechanisms.
Tested
Linux x86-64, GCC 15.2.0, Python 3.14.4, Emscripten 6.0.3, Node 24 from emsdk and managed Chromium 153. Final head
6c0809d14a1f8bbc1b8f777ee748aa8f6caf0a3c, based on main84b01f9cd042e1d2e9e112f8783aa5a9d26399ee. CTest and WASM smoke were rerun after the final rebase atd253870af; the only later change clears the Windows compiler launcher for uncached snapshot builds. Final workflow lint and conventions pass. Browser/local publication checks were on7a1710289, before that rebase.actionlintpasses for Build, Snapshots, Pages and Release; conventions and test-registration checks pass (29 test executables, none built and unregistered).No full native Linux/Windows library rebuild, Windows executable run, official GitHub prerelease publication or upstream Pages deployment was performed. The remote Build → Snapshots → Pages chain needs the workflows on the upstream default branch; the live service is unchanged by opening this PR.
Checklist
main; no other open PR implements the same functions.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by Recapi on 2026-10-14T22:58:32Z.
Rebased onto
main6239ceffc; new headd99a3c0fe. Conflicts and follow-ups from the main changes since the last head:tools/build_web.py/tools/tests/test_build_web.py(c7800dd96): the duplicate and case-colliding library path check now runs in the snapshot archive validation. Its cases (exact duplicate, case collision, directory/file collision, distinct nested paths) are in the same suite, which keeps theweb_library_assetsCTest name.demo/web/worker.mjs(f496c0854,244200708): kept the per-target conversion limit and the Windows-only icon budget. The latest-release API check and its rate-limit fallback are removed with this PR, so their worker tests inarchive.test.mjsare replaced by a test that the worker rejects a manifest from another site revision before downloading libraries.demo/web/output-directory.mjs(new on main, imported byapp.mjs) is now part of the commit-scoped frontend, so the scopedapp.mjsloads it from the same commit.build.yml(808790823,abfdd4b83): push builds still setfull, so every main push produces the native artifacts. The hosted Linux snapshot build uses 4 build/test jobs instead of the self-hosted runner's 1. The Windows push build no longer restores the main-scoped ccache that manual PR builds can write, but still saves it for manual builds; its timeout is 60 min for cold push builds.Linux (GCC 15.2.0, Python 3.14.4, Emscripten 6.0.3):
web_library_assets15/15,release_package23 (3 symlink skips),actionlinton all workflows, conventions and test registration pass. Relinker-only CTest: 170/172; the two failures arefile_writer_binaryandfile_writer_textfrom main'sFileWriterTests.cpp, which this PR does not touch. They copy/bin/sleepunder another name, and on this host/bin/sleepis the uutils multicall binary (coreutils: unknown program 'running'). Real WASM build andtools/test_web.pypass, including the new folder-output and archive-root tests. In Chromium, a locally assembled snapshot (fixture library ZIPs) converted generated ELF fixtures to Windows and Linux. CSS,app.mjs,output-directory.mjs, worker, archive module and WASM all loaded fromnative/<commit>/, with no page errors.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-14T23:15:26Z.
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)tools/package_release.pyL22-23demo/web/app.mjsL229demo/web/tests/archive.test.mjsL200-212, L222-223demo/web/worker.mjsL17-18, L61-66, L96-97, L110, L112-115Some 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.ymldocs/dev/BUILD.mdtools/package_release.pydocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mddocs/dev/BUILD.mdtools/package_release.py.github/workflows/build.ymlPull request closed