Commit Graph
21 Commits
Author SHA1 Message Date
Dean a992b80376 Merge pull request #12806 from rooklz/fix/build-web-symlink-loop
fix(tools): report build_web symlink-loop build dir as usage error
2026-11-05 12:30:33 +13:00
Dean Galvinandrooklz 02e5fbda82 test(tools): skip the build_web symlink-loop test without symlink support
Apply review request from 2026-11-01: catch (NotImplementedError, OSError) around only the two symlink_to calls and report an unavailable capability through skipTest, so the test no longer raises PermissionError before the subprocess starts on hosts without symlink privilege. The subprocess and the exit-code, message and no-traceback assertions stay outside the catch; the production change is untouched.

Co-authored-by: rooklz <[email protected]>
2026-11-04 23:26:39 +13:00
MarcZX10 daabfd1de4 test(tools): require the release asset digest check to reject null and malformed digests
test_selected_asset_metadata_is_checked_before_any_download now includes null, empty, uppercase and md5 digests among the rejected values, and its baseline and the deep-JSON fixture carry a valid digest. On the previous build_web.py seven of these cases are accepted and the test fails.
2026-11-01 11:18:46 +00:00
rooklz 4cf6df4626 fix(tools): report build_web symlink-loop build dir as usage error 2026-10-30 15:56:55 +00:00
AdriàandClaude Sonnet 5.5 7cd8e51b9b fix(main): loosen Linux timed-wait latency bounds, pin web layout test file list
Culprits #11725 (guest_timed_wait_cpu) and #12788 (web_library_assets), run 41054424215.
guest_timed_wait_cpu aborted on a latency bound on a loaded runner (max overshoot 3.8 ms already
in the 100 us case); Linux bounds are now 10 ms p99 / 50 ms max, Windows keeps its own.
test_invalid_archive_entries_are_rejected resolved a historical revision with git, which the
shallow CI checkout on Windows lacks; it now patches release_web_files like its siblings.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-30 14:04:13 +01:00
lakhantheboss 5e99a54222 fix(web): validate file path types before checking duplicates 2026-10-30 12:38:11 +05:30
lakhantheboss 407ce05fcb fix(web): validate release archive layout against release revision 2026-10-30 12:38:09 +05:30
AdriàandClaude Sonnet 5.5 3ca0c36c2e fix(tools): decode web-release.json through load_release and use a depth that recurses on every Python
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
2026-10-29 15:55:36 +01:00
jagrat Singh 55693dcc51 fix(tools): catch recursion error decoding release metadata in build_web 2026-10-29 15:55:19 +01:00
Dean Galvin 11bdd371fa fix(web): accept web release archives that predate newer web files
The Pages deploy has failed since #11228 added failure-report.mjs to
WEB_FILES: build_web.py --release required the release zip's file set to
equal main's current WEB_FILES, but the latest release (v0.1.3) was
packaged before that file existed, so every run stopped with "Invalid web
release archive layout".

Require the core files the site needs (index.html, app.mjs, worker.mjs and
native/relinker_wasm.*) plus web-release.json, and allow only names from
WEB_FILES. Unknown or duplicate entries, encrypted or empty files, the
size limits and the tag/revision check are unchanged. The release is
served as shipped, so it stays self-consistent.
2026-10-29 21:35:21 +13:00
Dean 5f67667872 Merge pull request #12484 from StoneDC/fix/b20-library-zip-compatibility
fix(web): validate library ZIP compatibility before writing
2026-10-29 16:23:58 +13:00
StoneDC 161606cf61 fix(web): validate library ZIP compatibility before writing 2026-10-28 21:52:12 +08:00
StoneDC 668fb237cd fix(tools): reject empty native web build artifacts 2026-10-28 17:47:58 +08:00
StoneDC f82d22aacb fix(tools): validate web release metadata before publication 2026-10-27 09:59:18 +08:00
Bram910 995958eb97 test(tools): cover Unicode ZIP path rewrites 2026-10-24 18:13:45 +02:00
Bram910 8d935498a0 fix(tools): reject rewritten library ZIP paths 2026-10-24 15:21:53 +02:00
emirplus 082a799e7e fix(tools): reconfigure streams with backslashreplace in build_web 2026-10-23 19:06:52 +03:00
emirplus c74eae6393 fix(tools): handle errors cleanly and reconfigure streams in build_web 2026-10-21 21:04:09 +03:00
MrMha 9834a9f851 fix: reject library archive file and directory conflicts 2026-10-17 17:59:40 +04:00
MrMha c94e015c92 fix: bound expanded library archives before CRC validation 2026-10-15 18:54:23 +04:00
Ondra97 c7800dd96b fix(tools): reject colliding web library archive paths 2026-10-13 20:40:46 +02:00