fix(web): keep unattended wasm module batching incremental
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-09-04 12:24:51 +08:00
parent 68f1397b6f
commit 58f978666d
2 changed files with 7 additions and 3 deletions

View File

@@ -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

View File

@@ -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);
});