Skip to content

test: size the formal route tree timeout for a loaded host - #168

Merged
Upd4ting merged 1 commit into
mainfrom
test/wec9b4589-27-route-tree-stress
Nov 20, 2026
Merged

Upd4ting merged 1 commit into
mainfrom
test/wec9b4589-27-route-tree-stress

Conversation

@Upd4ting

@Upd4ting Upd4ting commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Wec9b4589-27

Summary

The nightly ci / Stress run of 2026-11-20 (run 44660723759, 1 of 3 runs) failed in dist/test/formal-route-tree.test.js with Timeout of 2000ms exceeded beside 16 busy loops. The property test runs 200 generated scenarios, about 360 ms on an idle host, and had mocha's default 2000 ms.

The test now sets its own timeout: max(30 s, FORMAL_RUNS * 150 ms). The generated tree is unchanged, so the checked property and the seed's coverage stay the same. The timeout also scales with --full (2000 runs) of the formal-route-tree skill.

.agents/skills/formal-route-tree/check.mjs is run by no CI leg (only by the skill), so its spawnSync("pnpm", …) is left alone.

Proof

Before (nightly run 44660723759): Error: Timeout of 2000ms exceeded in registers, matches and unregisters like the reference….
After, locally: ✔ registers, matches and unregisters like the reference… (356ms), 1 passing.
Local reproduction beside 64 busy loops (4 per CPU on 16 CPUs), same test file:

  • timeout 2000 ms: 1 failing, Error: Timeout of 2000ms exceeded
  • this change: ✔ registers, matches and unregisters like the reference… (12675ms), 1 passing

A manual dispatch of this branch passed its checks (run 44826154957). The nightly tier cannot be dispatched by hand (ci-tier returns nightly only for schedule); the next scheduled nightly is the proof.

flowchart LR
  A[mocha runs the test] --> B{timeout}
  B -->|before: 2000 ms| C[loaded host: killed]
  B -->|after: max 30 s, runs x 150 ms| D[property completes]
Loading

Follow-ups

  • none

@Upd4ting
Upd4ting marked this pull request as ready for review November 20, 2026 22:13
@Upd4ting
Upd4ting added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 2d423be Nov 20, 2026
13 checks passed
@Upd4ting
Upd4ting deleted the test/wec9b4589-27-route-tree-stress branch November 20, 2026 22:14
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