From 117ab4343247c949749fa09a6cc79ee1bbbb0cb7 Mon Sep 17 00:00:00 2001 From: Michal Harakal Date: Sat, 6 Jun 2026 23:56:50 +0200 Subject: [PATCH] test(lang-models): raise browser Mocha timeout 10s -> 60s for the micrograd demo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MicrogradMoonsDemoTest trains a 200-epoch moons MLP; in a browser engine (especially wasmJs under CI/parallel load) the run can exceed Mocha's 2s default before the computation finishes — the test computes the correct result (loss 0.082, accuracy 0.85) but the harness times out. 10s was not always enough under contention; 60s gives headroom on both js and wasmJs browser targets. Verified: :skainet-lang-models:wasmJsBrowserTest + jsBrowserTest green (1/1 each). --- skainet-lang/skainet-lang-models/build.gradle.kts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/skainet-lang/skainet-lang-models/build.gradle.kts b/skainet-lang/skainet-lang-models/build.gradle.kts index 49b96ab9..0021c82a 100644 --- a/skainet-lang/skainet-lang-models/build.gradle.kts +++ b/skainet-lang/skainet-lang-models/build.gradle.kts @@ -34,7 +34,10 @@ kotlin { browser { testTask { useMocha { - timeout = "10s" + // Generous timeout: the micrograd moons demo trains a 200-epoch MLP, + // which is slow in a browser engine (especially wasmJs under CI/parallel + // load) and can exceed Mocha's 2s default before the computation finishes. + timeout = "60s" } } } @@ -45,7 +48,10 @@ kotlin { browser { testTask { useMocha { - timeout = "10s" + // Generous timeout: the micrograd moons demo trains a 200-epoch MLP, + // which is slow in a browser engine (especially wasmJs under CI/parallel + // load) and can exceed Mocha's 2s default before the computation finishes. + timeout = "60s" } } }