Skip to content

test(lang-models): raise browser Mocha timeout to 60s for the micrograd demo#703

Merged
michalharakal merged 1 commit into
developfrom
ci/browser-test-mocha-timeout
Jun 6, 2026
Merged

test(lang-models): raise browser Mocha timeout to 60s for the micrograd demo#703
michalharakal merged 1 commit into
developfrom
ci/browser-test-mocha-timeout

Conversation

@michalharakal

Copy link
Copy Markdown
Contributor

MicrogradMoonsDemoTest.micrograd_moons_demo_trains_and_classifies flaked on the wasmJs-browser target under allTests (parallel load) with Mocha's default Timeout of 2000ms exceeded. The test isn't broken — its system-out shows it trained all 200 epochs (loss=0.082) and hit accuracy 0.85 (17/20), identical to jvm / native / jsBrowser / wasmWasi. It just ran slower than the harness allowed under contention.

The module already set useMocha { timeout = "10s" } (since 0.19.0), but that wasn't always enough — this raises it to 60s for both js and wasmJs browser test tasks.

Surfaced now because browser tests only run when CHROME_BIN is set; without it they skip/fail-to-launch, so this slow test was never actually executed in the browser before.

Verified: :skainet-lang-models:wasmJsBrowserTest + jsBrowserTest green (1/1 each) with the bump.

…rograd demo

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).
@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown

📖 Documentation Preview

The documentation has been built successfully for this PR.

Generated Files:

  • Operator documentation: docs/modules/operators/_generated_/
  • JSON schema output: operators.json

Artifacts:

  • Download the documentation-preview-703 artifact to view the complete documentation locally.

This comment will be updated automatically when the PR is updated.

@michalharakal michalharakal merged commit 4769eee into develop Jun 6, 2026
7 checks passed
@michalharakal michalharakal deleted the ci/browser-test-mocha-timeout branch June 6, 2026 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant