Skip to content

test: size mocha timeouts for a loaded host and the Windows runner - #223

Merged
Upd4ting merged 1 commit into
mainfrom
test/wec9b4589-20-nightly-timeouts
Nov 20, 2026
Merged

Upd4ting merged 1 commit into
mainfrom
test/wec9b4589-20-nightly-timeouts

Conversation

@Upd4ting

@Upd4ting Upd4ting commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

Wec9b4589-20: the nightly (ci.yml, schedule) fails two ways, both mocha's default 2000 ms.

  • ci / Stress failed 3 of 3 since 2026-11-17. Stress runs the suite under load, and the integration suites that talk to the in-memory MongoDB and the booted DMS exceed 2 s (run 44660718110 timed out in 10 tests, spread over [property] external access write-back, data journeys, diagram layout routes, config journeys, editing journeys, a table mapped from an external connection and external connections: changing access). The set that fails changes from run to run, so each of these suites now has a 30 s budget (LOADED_HOST_TIMEOUT_MS).
  • ci / Node .nvmrc on Windows, new on 2026-11-20: the root before all hook seed (redesign.test.ts) timed out at 2 s on the slower Windows runner. It and the sibling seed of schemas-page.test.ts now have 120 s (SEED_HOOK_TIMEOUT_MS).

The two constants live in src/test/helpers/timeouts.ts. Nothing outside src/test changes.

Related issue

ANT-3515

Verification

Config/CI change, command output before and after:

Before (run 44660718110):

ci / Node .nvmrc on Windows: 1) "before all" hook: seed in "{root}" -> Timeout of 2000ms exceeded
ci / Stress: 285 passing, 10 failing (all "Timeout of 2000ms exceeded")

After: a manual run cannot reach the nightly tier (the shared ci-tier action returns nightly only for schedule), so the next 02:17 UTC scheduled nightly is the proof.

Local reproduction under load: diagram-routes.test.js run through ajs module test beside one busy loop per CPU: 8 passing (3s).

  • pnpm run typecheck, oxlint and oxfmt --check on src/test: clean.
flowchart LR
  A[nightly: Stress or Windows] --> B[mocha suite or seed hook]
  B -->|before: 2 s default| C[timeout]
  B -->|after: 30 s suite, 120 s seed| D[passes on a loaded host]
Loading

Follow-ups

  • none

Checklist

  • The pull request title follows Conventional Commits.
  • I added or updated tests when behavior changed.
  • I updated documentation when users or contributors are affected.
  • I documented breaking changes and migration steps.
  • I did not include credentials or unrelated changes.

@Upd4ting
Upd4ting marked this pull request as ready for review November 20, 2026 22:15
@Upd4ting
Upd4ting added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit b2b557a Nov 20, 2026
32 checks passed
@Upd4ting
Upd4ting deleted the test/wec9b4589-20-nightly-timeouts branch November 20, 2026 22:39
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