Test tools check #8

Closed
opened 2026-11-10 16:48:40 +01:00 by SirStone · 1 comment
Owner

Part of #2

Question

Which harness language for the test tools? Facts to find:

  • Prototype harnesses are Node .mjs (leak, restart, smoke, concurrency).
  • Devbox has no node. mummy has no WS client.
  • Check: node availability via devbox/nixpkgs; Nim WS client options that work with Nim 2.x (e.g. ws library, std), including cookie and Origin header control; effort to port vs rewrite.
  • Output: findings to docs/research/.md, linked here.
Part of #2 ## Question Which harness language for the test tools? Facts to find: - Prototype harnesses are Node .mjs (leak, restart, smoke, concurrency). - Devbox has no node. mummy has no WS client. - Check: node availability via devbox/nixpkgs; Nim WS client options that work with Nim 2.x (e.g. ws library, std), including cookie and Origin header control; effort to port vs rewrite. - Output: findings to docs/research/<name>.md, linked here.
SirStone added the wayfinder:research label 2026-11-10 16:48:40 +01:00
SirStone added a new dependency 2026-11-10 16:49:01 +01:00
SirStone added a new dependency 2026-11-10 16:49:05 +01:00
SirStone self-assigned this 2026-11-10 16:49:31 +01:00
Author
Owner

Findings (full file: docs/research/m3-test-tools.md, commit 8f65680176):

  • Prototype WS harnesses are plain Node .mjs (lib, smoke, leak, restart, concurrency; 302 lines). Built-ins + global WebSocket only, no npm ws. leakcheck.nim and faulttest.sh do not use WS.
  • Node global WebSocket takes {headers}: Cookie and Origin verified on the wire (local node v24.22.1). It cannot send raw/malformed frames.
  • Main devbox.json has no node. Prototype pins nodejs_26 (lock). Tools need no npm install.
  • Nim 2.2.4 stdlib has no WS client. treeform/ws: no header API, but exported tcpSocket allows raw writes. nim-websock: header hooks and 20 MB cap, but needs nim >= 2.2.14. whisky: archived, blocking.
  • Raw node:net gives full control with zero deps. Nim rewrite is roughly 150-250 lines hand-rolled (estimate).
  • Mummy default maxMessageLen is 64 KB; the server does not override it.
  • Open: Node 26 header behavior, npm ws, live runs of the Nim libs not done.
Findings (full file: docs/research/m3-test-tools.md, commit 8f6568017689cbf02cadaa6213e72f503b359625): - Prototype WS harnesses are plain Node .mjs (lib, smoke, leak, restart, concurrency; 302 lines). Built-ins + global WebSocket only, no npm ws. leakcheck.nim and faulttest.sh do not use WS. - Node global WebSocket takes {headers}: Cookie and Origin verified on the wire (local node v24.22.1). It cannot send raw/malformed frames. - Main devbox.json has no node. Prototype pins nodejs_26 (lock). Tools need no npm install. - Nim 2.2.4 stdlib has no WS client. treeform/ws: no header API, but exported tcpSocket allows raw writes. nim-websock: header hooks and 20 MB cap, but needs nim >= 2.2.14. whisky: archived, blocking. - Raw node:net gives full control with zero deps. Nim rewrite is roughly 150-250 lines hand-rolled (estimate). - Mummy default maxMessageLen is 64 KB; the server does not override it. - Open: Node 26 header behavior, npm ws, live runs of the Nim libs not done.
Sign in to join this conversation.