seriesoftubes/tests/durations.json
jvanvik 72f31e809b Server-run engine: every call answers, and a crashing load gets its own worker
A load whose networks did not all check out could hang its session for good, a
worker could spin on a job it could never run, a session whose load crashed its
worker never got a worker of its own, and an unload followed at once by a load
(a language change) lost the session's place or never answered. Fixed:

- Worker: a load call is checked whole before it touches anything. One that
  names no network, or one twice, is refused (ERR) and every realm stays as it
  was. A network without a save now answers err (broken) like one whose save
  does not load, and the others load. A network marked loading with no load
  under way answers NO_REALM instead of waiting for ever.
- Worker: it goes on only while something ran. If a job were ever still
  waiting when nothing could run, it is answered (ERR, logged) rather than left
  pending, and the worker no longer busy-loops on it.
- Engine: a session is on its worker from the moment its load is sent. A worker
  exit counts against the sessions whose load was under way (else against every
  session it held), so a save that crashes its worker gets a worker of its own
  after two exits and is given up (GAVE_UP) after a third, while the sessions
  that only shared the worker lose their realms but not their place in the pool.
  Loads under way count for placement.
- Engine: an unload no longer drops the placement of a session whose next load
  is under way, so an unload and a load sent back to back stay on one worker; a
  worker of its own is retired only when no call is pending on it (a pending
  call there used to never settle).
- Engine: a message that cannot be sent rejects (ERR) and leaves nothing pending.
- Realm: a what-if puts UI.hotMap back too (teSlop's trial left its own).
- Realm: a network in a language this server has no dictionary for plays in
  English, as the page does, instead of loading broken.

Tests (tests/mp-sim-engine.test.js): a malformed load changes nothing and every
call of the session answers within 3 s, with the workers idle after; an unload
and a load back to back keep the session on its worker; a session whose load
takes its worker down twice gets a worker of its own, then GAVE_UP, while the
bystander is never blamed; an ask leaves UI.hotMap as it was; a network in an
unknown language loads in English. Each fails on the engine before this change
(the worker's alone: the hang; the engine's alone: the placement and the exits;
the realm's alone: teSlop's hotMap and the language).

The two drafts no test played are played now (tests/mp-sim-acts.test.js): a
premium border crossing into Hong Kong (buildLink with cnPrem) and the AI's own
script deployed as it wrote it while it drops most of the traffic (teDeploy with
slop, on a small network with one capped transit port), each compared byte for
byte with the page's clicks, and both read in the DRAFTS check (nothing is left
unplayed).

Runs, each file alone under an 8G cap: mp-sim-engine 16/16 (11.6 s),
mp-sim-contract 8/8, mp-sim-acts 5 + 1 todo (10.9 s), mp-sim-determinism 6/6
(53.4 s).
2026-11-09 20:47:31 +01:00

81 lines
2.8 KiB
JSON

{
"tests/any-home-city.test.js": 12.0,
"tests/architect.test.js": 20.1,
"tests/automation.test.js": 13.8,
"tests/backbone-core.test.js": 27.5,
"tests/badges-variants.test.js": 20.2,
"tests/build.test.js": 1.3,
"tests/canonical-state.test.js": 64.0,
"tests/capacity-deals.test.js": 12.6,
"tests/chaos-monkey.test.js": 30.3,
"tests/city-size.test.js": 8.5,
"tests/compute-idempotent.test.js": 10.4,
"tests/ddos-floods.test.js": 22.8,
"tests/ddos-model.test.js": 31.7,
"tests/eyeballs.test.js": 13.0,
"tests/fiber-broker.test.js": 9.7,
"tests/find-city.test.js": 9.6,
"tests/game.test.js": 42.8,
"tests/gameplay-rules.test.js": 42.9,
"tests/gangnam.test.js": 12.3,
"tests/glowball-sakura-lager.test.js": 15.8,
"tests/i18n.test.js": 59.9,
"tests/islands-and-arctic.test.js": 13.7,
"tests/issues.test.js": 103.0,
"tests/language-picker.test.js": 12.5,
"tests/latency.test.js": 11.1,
"tests/levels.test.js": 16.3,
"tests/link-metrics.test.js": 22.0,
"tests/link-trial.test.js": 6.4,
"tests/load-time.test.js": 102.7,
"tests/metric-panel.test.js": 8.1,
"tests/modes.test.js": 41.1,
"tests/more-cables.test.js": 14.3,
"tests/moscow-premium.test.js": 12.0,
"tests/mp-sim-acts.test.js": 14.0,
"tests/mp-sim-contract.test.js": 7.0,
"tests/mp-sim-determinism.test.js": 40.0,
"tests/mp-sim-engine.test.js": 11.4,
"tests/networks-list.test.js": 6.4,
"tests/new-game-speed.test.js": 10.1,
"tests/optic-counts.test.js": 9.7,
"tests/own-asn.test.js": 7.9,
"tests/pages.test.js": 12.4,
"tests/peering-desk.test.js": 13.9,
"tests/peering.test.js": 27.6,
"tests/perf.test.js": 10.9,
"tests/persist.test.js": 16.1,
"tests/pni-all.test.js": 12.5,
"tests/pni-global.test.js": 17.9,
"tests/pni-list.test.js": 15.4,
"tests/pnis-and-sold-out.test.js": 11.6,
"tests/puzzle-monkey.test.js": 7.9,
"tests/puzzles.test.js": 73.3,
"tests/regions.test.js": 80.3,
"tests/release-story.test.js": 2.8,
"tests/report-link.test.js": 12.0,
"tests/router-art.test.js": 7.8,
"tests/routers-per-pop.test.js": 8.1,
"tests/routing-reference.test.js": 11.6,
"tests/rules-locked.test.js": 8.4,
"tests/rules.test.js": 29.4,
"tests/sales-trial.test.js": 33.3,
"tests/save-size.test.js": 16.1,
"tests/save-slots.test.js": 48.5,
"tests/scenarios-playtest.test.js": 113.2,
"tests/sea-routing.test.js": 42.6,
"tests/server-sim-prereqs.test.js": 16.0,
"tests/services.test.js": 15.7,
"tests/specialist.test.js": 14.3,
"tests/speed.test.js": 144.6,
"tests/standing-orders.test.js": 66.8,
"tests/subsea-upgrade-timing.test.js": 13.5,
"tests/supply.test.js": 11.0,
"tests/tier1-cone.test.js": 19.8,
"tests/useless-subsea-upgrades.test.js": 7.2,
"tests/utilities-caches.test.js": 9.5,
"tests/utilities.test.js": 15.6,
"tests/weekly-architect.test.js": 28.7,
"tests/weekly-puzzle.test.js": 145.0,
"tests/weekly-scenario.test.js": 54.4
}