From 58f978666d1bd3b9f80513af436fe489793d4bf4 Mon Sep 17 00:00:00 2001 From: mes123456 Date: Fri, 4 Sep 2026 12:24:51 +0800 Subject: [PATCH] fix(web): keep unattended wasm module batching incremental --- my-tools/authorize_next_wbv2_task.py | 2 +- web/tests/e2e/wasm-module-loading.spec.ts | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/my-tools/authorize_next_wbv2_task.py b/my-tools/authorize_next_wbv2_task.py index 02bc86eb7..774cda9d7 100644 --- a/my-tools/authorize_next_wbv2_task.py +++ b/my-tools/authorize_next_wbv2_task.py @@ -450,7 +450,7 @@ def native_geometry_batch(inventory: dict) -> dict | None: and unit.get("coverageStatus") != "VERIFIED" and unit.get("kind") == "node" and isinstance(unit.get("identifier"), str) - and (unit["identifier"].startswith("GeometryNode") or unit["identifier"].startswith("FunctionNode")) + and (unit["identifier"].startswith("GeometryNode") or unit["identifier"].startswith("FunctionNode") or unit["identifier"].startswith("Node")) ] if not candidates: return None diff --git a/web/tests/e2e/wasm-module-loading.spec.ts b/web/tests/e2e/wasm-module-loading.spec.ts index ea6ad73f2..0c80d9043 100644 --- a/web/tests/e2e/wasm-module-loading.spec.ts +++ b/web/tests/e2e/wasm-module-loading.spec.ts @@ -10,11 +10,13 @@ test("preloads completed WASM and loads the debug module independently", async ( const before = await client.snapshot(); const pending = before.status; const loaded = await client.loadDebugWasmModule("debug-incremental"); + const splitLoaded = await client.loadDebugWasmModule("debug-incremental-secondary"); return { pending, loaded, - debug: loaded.find((module) => module.id === "debug-incremental"), - completed: loaded.filter((module) => module.lifecycle === "complete"), + debug: splitLoaded.find((module) => module.id === "debug-incremental"), + secondary: splitLoaded.find((module) => module.id === "debug-incremental-secondary"), + completed: splitLoaded.filter((module) => module.lifecycle === "complete"), }; } finally { await client.shutdown(); } @@ -25,4 +27,6 @@ test("preloads completed WASM and loads the debug module independently", async ( expect(result.debug?.status).toBe("loaded"); expect(result.debug?.lifecycle).toBe("debug"); expect(result.debug?.byteLength).toBeGreaterThan(0); + expect(result.secondary?.status).toBe("loaded"); + expect(result.secondary?.byteLength).toBeGreaterThan(0); });