Track ONNX WebAssembly asset downloads
Build and publish frontend / publish (push) Failing after 3s

This commit is contained in:
Ein Anderssono
2026-10-16 08:44:38 +02:00
parent 8e7c74bb41
commit 04bac2ba30
6 changed files with 78 additions and 20 deletions
+2
View File
@@ -261,6 +261,8 @@ test('Piper model download progress is reported as a bounded percentage', async
await new Promise(resolve => setImmediate(resolve));
h.piperProgressCallbacks[0]({stage: 'loading-model'});
assert.match(h.states.at(-1).message, /Ansluter till servern/);
h.piperProgressCallbacks[0]({asset: 'runtime', file: 'ort-wasm-simd-threaded.wasm', loaded: 5 * 1024 * 1024, total: 10 * 1024 * 1024});
assert.match(h.states.at(-1).message, /ort-wasm-simd-threaded\.wasm: 50 procent/);
h.piperProgressCallbacks[0]({loaded: 31_500_000, total: 63_000_000});
assert.equal(h.states.at(-1).state, 'PROCESSING');
assert.match(h.states.at(-1).message, /50 procent/);