prototype-server-vision: close-out: final-run results (commit 18c9884), HANDOFF.md, README headers/numbers, commit leak transcripts + faults.log, move spike logs to results/spike
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,4 @@ tests/t[a-z]*
|
||||
!tests/*.nim
|
||||
server
|
||||
run/
|
||||
results/*.jsonl
|
||||
results/faults.log
|
||||
results/*-15s*
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
# Handoff: server-authoritative vision prototype -> real VTT
|
||||
|
||||
Each item verified against code at the commit named in README. Pointers = where to look.
|
||||
|
||||
## Port as-is
|
||||
- Vision/geometry: `src/geometry.nim` (visibilityPolygon, cellsTouched, inside, moveBlocked) + `tests/tgeometry.nim` (corner tests, run `nimble test`; mutation check `devbox run mutation`, `tools/mutation.sh`). Leak harness (`tools/leak.mjs`, `tools/leakcheck.nim`, `tools/faulttest.sh`) is the acceptance test for any port.
|
||||
- Limits: token exactly on a wall cannot move off it (`moveBlocked`, inclusive `segsCross`, `geometry.nim:59-85`); vision is O(rays x walls) per token, bbox cull only (`geometry.nim` visibilityPolygon); cellsTouched ~12x the polygon cost (`results/bench.log`).
|
||||
|
||||
## Leaks / security
|
||||
- Tile leak: a revealed tile exposes all 256 px, not just explored cells; door changes never affect tiles (static art). `src/server.nim` tile handler, `data/tiles/`.
|
||||
- Invite links = permanent bearer secrets, cookie `sid` IS the secret, no expiry/rotation (`server.nim` ~L270-290, L346). Needs expiry/rotation + HTTPS. `nginx/nginx.conf` `listen NGX_PORT` has no address => binds 0.0.0.0.
|
||||
- Move collision checks only the centre path (a->b) and the destination circle (`moveBlocked`, `server.nim:194`), not the swept circle: corner clipping possible.
|
||||
- Leak test explored/tile checks use the server's own `cellsTouched` (self-consistency, not an independent oracle); see README.
|
||||
|
||||
## Protocol / scale
|
||||
- Full vision polygon (~3 KB) resent on every player move (`bytes/delivery`, `results/concurrency-final1-server.log`) -> send deltas or coarser polygons.
|
||||
- Explored grid sent whole on connect, one SQLite row per cell (`server.nim` persistCells/loadState) -> bitmap/RLE + per-tile summaries.
|
||||
|
||||
## Ops / robustness
|
||||
- No SIGTERM handler: only `setControlCHook` (SIGINT) prints stats (`server.nim:359`); shutdown = hard kill. Durability rests on WAL commit before ack (`results/final-restart.log`).
|
||||
- `PRAGMA synchronous=NORMAL` (`server.nim:331`): process kill loses nothing, OS crash/power loss may drop last commits (never corrupts). Tail (~20 ms server worst) unchanged by it: `results/spike/investigation.md`.
|
||||
- 583 ms intent->ack spike: not reproduced (base worst 73.1/21.8/18.1 ms, fixed 21.3/20.8/21.0), cause undetermined (host-wide stall or node harness pause; original run was ~3.5x slower on average). Server tail >50 ms = SQLite COMMIT stall + lock_wait queued behind it. `results/spike/investigation.md`.
|
||||
- mummy: send queue is one unbounded server-wide deque, no backpressure for slow clients; `WebSocket` keyed in `conns` by its raw bytes (no hash/==) (`server.nim` Conn/conns, README "mummy suitability").
|
||||
|
||||
## Client
|
||||
- Fog masks are Graphics that grow unbounded (`client/src/main.ts` ~L98, shortcut comment) -> bake to RenderTexture. One Pixi `Text` per token (`main.ts:55`) is heavy -> BitmapText.
|
||||
- Browser rendering never verified (no browser in build env): only reducer (`client/src/state.test.ts`, `results/client-tests.log`) and HTTP/WS paths are tested.
|
||||
@@ -18,16 +18,18 @@ Browser rendering was NOT verified (no browser in the build environment): only H
|
||||
## Tests
|
||||
| cmd | what |
|
||||
|---|---|
|
||||
| `devbox run test` | regen map + `nimble test` (geometry), smoke, leaktest, faulttest, restart, concurrency (DUR=15) |
|
||||
| `devbox run client` | includes client reducer test (`npm run check`, incl. reconnect reset) |
|
||||
| `devbox run test` | regen map + `nimble test` (geometry), smoke, leaktest, faulttest, restart, concurrency (DUR=15; its log `results/concurrency-15s*` is gitignored) |
|
||||
| `devbox run clienttest` | client reducer tests (`client/src/state.test.ts` via `npm run check`, incl. reconnect reset) -> `results/client-tests.log`; `devbox run client` also runs them |
|
||||
| `devbox run smoke` | fresh DB, server+nginx, auth/cookie/tile/steal/garbage checks |
|
||||
| `devbox run leaktest` | runs twice (SUBJECT=A, SUBJECT=B), fresh DB each; subject walks ~240 steps through rooms, corridor, open/closed doors while GM + B act; Nim checker (`tools/leakcheck.nim`) replays the transcript. Output per subject: `results/leak-A.log`, `results/leak-B.log` (committed), transcripts `results/leak-{A,B}.jsonl` (1.1-1.3 MB, gitignored) |
|
||||
| `devbox run faulttest` | deliberate leaks: builds the server with `-d:leakfault` (hook absent from the normal build, asserted by grepping the clean binary for `LEAK_FAULT`), injects 8 faults one at a time (`LEAK_FAULT=`): hidden token sent (`hidden`), wall data to player (`walls`), unexplored tile 200 (`tile`), visible token withheld (`withhold`), B's vision / explored / ownership sent to A (`other-vision`, `other-explored`, `other-owner`), missing `remove` (`noremove`). Passes only if the checker fails each with exactly the expected failure-class set (classes: HIDDEN_TOKEN WALLDATA TILE WITHHELD OTHER_PLAYER NO_REMOVE, plus collateral OWN_VIEW / EXPLORED) and the clean build still passes. Details in `results/faults.log` (gitignored) |
|
||||
| `devbox run leaktest` | runs twice (SUBJECT=A, SUBJECT=B), fresh DB each; subject walks ~240 steps through rooms, corridor, open/closed doors while GM + B act; Nim checker (`tools/leakcheck.nim`) replays the transcript. Output per subject: `results/leak-A.log`, `results/leak-B.log` (committed), transcripts `results/leak-{A,B}.jsonl` (1.1-1.3 MB each, 2.4 MB total, committed) |
|
||||
| `devbox run faulttest` | deliberate leaks: builds the server with `-d:leakfault` (hook absent from the normal build, asserted by grepping the clean binary for `LEAK_FAULT`), injects 8 faults one at a time (`LEAK_FAULT=`): hidden token sent (`hidden`), wall data to player (`walls`), unexplored tile 200 (`tile`), visible token withheld (`withhold`), B's vision / explored / ownership sent to A (`other-vision`, `other-explored`, `other-owner`), missing `remove` (`noremove`). Passes only if the checker fails each with exactly the expected failure-class set (classes: HIDDEN_TOKEN WALLDATA TILE WITHHELD OTHER_PLAYER NO_REMOVE, plus collateral OWN_VIEW / EXPLORED) and the clean build still passes. Details in `results/faults.log` (committed), summary `results/final-faulttest.log` |
|
||||
| `devbox run restart` | isolated server, moves A/B/monsters, toggles doors, A explores a new area; stops with SIGTERM then (second round of changes) SIGKILL, restarts on the same DB; asserts invite secrets, token positions, doors, vision, explored grids per role and the full hello+state a reconnecting client receives are identical (gseq excluded: in-memory). Note: the server has no SIGTERM handler, so SIGTERM is as abrupt as SIGKILL; durability rests on the SQLite WAL commit before ack (`synchronous=NORMAL`: survives process kill, may lose the last commits on OS crash/power loss; see `results/spike-investigation.md`) |
|
||||
| `devbox run concurrency` | 60 s (`DUR=` secs) A, B, GM(6 monsters + doors) at 20-50 ms per token; logs `results/concurrency-<DUR>s.log` + `...-server.log` (server STATS) |
|
||||
| `devbox run concurrency` | 60 s (`DUR=` secs) A, B, GM(6 monsters + doors) at 20-50 ms per token; logs `results/concurrency-<TAG>.log` + `...-server.log` (server STATS; TAG defaults to `<DUR>s`; final runs use `TAG=final1..3`) |
|
||||
| `devbox run mutation` | geometry mutation check on a temp copy (`tools/mutation.sh`): (a) no ±RayEps rays, (b) upper segment end exclusive, (c) lower end exclusive; control must pass, each mutation must fail a corner test. Logs `results/mutation-{a,b,c}.log` |
|
||||
| `devbox run bench` | vision microbench, log `results/bench.log` |
|
||||
|
||||
Other saved outputs: `results/nimble-test.log` (`nimble test`), `results/mutation-summary.log`, `results/final-{leaktest,faulttest,restart}.log`, `results/smoke.log`, `results/final-rc.txt` (exit code of every final-run step), `results/spike/` (historical 583 ms investigation, earlier commits, see its `investigation.md`).
|
||||
|
||||
Tests are isolated: `tools/withserver.sh` uses `run/test/` (own DB, invites, nginx conf/logs) and ports 18088 (nginx) / 19000 (server), overridable via `TEST_PORT`/`TEST_BACKEND_PORT`; the live session on 8088/9000 and `run/` are never touched. Server stats print on stop into `run/test/server.log`.
|
||||
|
||||
### Leak test asserts
|
||||
@@ -37,38 +39,62 @@ Ground truth = GM socket (tokens + doors per gseq). A's expected vision/explored
|
||||
- (c) `remove` arrives when a token leaves; scenario must show M1, M2, M5, B and >= 3 removes.
|
||||
- (d) 256 tiles requested per sweep (A: 39 sweeps = 9984 requests, B: 29 = 7424; incl. unexplored): 200 iff an explored cell touches the tile at that gseq, else 403.
|
||||
- (e) A never gets B-bound info: no B string outside token/remove, no `by:B` on others' tokens, hello tokens == ["A"], no error msgs.
|
||||
**Caveat (self-consistency, not an independent oracle):** the explored-set check in (b) and the tile 200/403 check in (d) recompute the expected values with the server's own `geometry.nim` (`visibilityPolygon` + `cellsTouched`). They prove the server sends/gates exactly what its own geometry says and that nothing else leaks, not that `cellsTouched` is geometrically right. Only the token-visibility checks (clear-LOS segment oracle + polygon containment) are independent of the explored-cell computation.
|
||||
Negative control: automated, `devbox run faulttest` (above).
|
||||
|
||||
Result (`results/leak-A.log`): PASS (218 gseq groups, 467 A msgs, 4 other tokens seen, 4 removes, tiles 1709 x 200 / 8275 x 403, 2142 explored cells, 0 failures).
|
||||
Run 2026-11-07, AMD Ryzen 7 7840U (16 threads), 60.6 GiB RAM, NixOS 26.05 (kernel 6.18.55), CPU power mode: power-save, capped (governor `powersave`, deliberately not changed). Code commit tested: `18c9884`.
|
||||
Result (`results/leak-A.log`): PASS (218 gseq groups, 467 A msgs, 4 other tokens seen, 4 removes, tiles 1709 x 200 / 8275 x 403, 2142 explored cells, 0 failures). Fault test: 8/8 faults caught with the exact class set + clean build passes (`results/final-faulttest.log`).
|
||||
Result (`results/leak-B.log`): PASS (218 gseq groups, 217 B msgs, 3 other tokens seen, 3 removes, tiles 686 x 200 / 6738 x 403, 1114 explored cells, 0 failures).
|
||||
|
||||
### Concurrency result (60 s, PASS; `results/concurrency-60s.log`)
|
||||
Load was ~223 intents/s (A 28, B 28, 6 monsters 167; `results/concurrency-60s.log`) + door toggles every 1-3 s. 13781 mutations (10300 monster + 3421 player moves + 60 doors; `results/concurrency-60s-server.log`, = final gseq in the log), no crash, 0 errors, gseq never went backwards at any client (non-decreasing; messages of one mutation share a gseq), every intent acked (sent == acks for all 3 clients; nacks = blocked random-walk moves: GM 64, A 17, B 0), and after quiesce each client's tokens/doors/vision/explored == a fresh connection's snapshot.
|
||||
### Concurrency result (60 s x3, all PASS; `results/concurrency-final{1,2,3}.log`, server side `...-server.log`)
|
||||
Run 2026-11-07, AMD Ryzen 7 7840U (16 threads), 60.6 GiB RAM, NixOS 26.05 (kernel 6.18.55), CPU power mode: power-save, capped (governor `powersave`, deliberately not changed). Code commit tested: `18c9884`.
|
||||
Load ~223 intents/s (final1: A 28, B 28, 6 monsters 167/s) + door toggles every 1-3 s. final1: 13748 mutations (10286 monster + 3400 player moves + 62 doors, `results/concurrency-final1-server.log`, = final gseq), no crash, 0 errors, gseq never went backwards at any client, every intent acked (sent == acks for all 3 clients; nacks = blocked random-walk moves, final1: GM 13, A 26, B 0), and after quiesce each client's tokens/doors/vision/explored == a fresh connection's snapshot (the script asserts this; PASS line).
|
||||
| run | intent->ack avg | p99 | worst | source |
|
||||
|---|---|---|---|---|
|
||||
| final1 | 1.40 ms | 4.58 ms | 20.31 ms | `concurrency-final1.log` |
|
||||
| final2 | 1.50 ms | 4.98 ms | 21.73 ms | `concurrency-final2.log` |
|
||||
| final3 | 1.43 ms | 4.75 ms | 24.72 ms | `concurrency-final3.log` |
|
||||
|
||||
No `SLOW` (>50 ms) line in any final run. The 583 ms outlier seen once in an earlier, differently-built run did not reproduce and has no known cause (`results/spike/investigation.md`).
|
||||
|
||||
### Other final-run results (all PASS; exit codes in `results/final-rc.txt`)
|
||||
Run 2026-11-07, AMD Ryzen 7 7840U (16 threads), 60.6 GiB RAM, NixOS 26.05 (kernel 6.18.55), CPU power mode: power-save, capped (governor `powersave`, deliberately not changed). Code commit tested: `18c9884`.
|
||||
All results in `results/` were produced at code commit `18c9884` (last code/test-script commit; later commits are docs/results only).
|
||||
| step | result | file |
|
||||
|---|---|---|
|
||||
| `nimble test` | 33 checks OK | `results/nimble-test.log` |
|
||||
| `devbox run mutation` | control passes; a, b, c each fail >= 1 corner test (1, 2, 2) | `results/mutation-summary.log`, `results/mutation-{a,b,c}.log` |
|
||||
| faulttest | 8/8 faults caught, clean build passes | `results/final-faulttest.log`, `results/faults.log` |
|
||||
| restart | PASS | `results/final-restart.log` |
|
||||
| smoke | PASS | `results/smoke.log` |
|
||||
| client tests | 4/4 pass | `results/client-tests.log` |
|
||||
|
||||
## Measurements (laptop, release build, localhost)
|
||||
Sources: C = `results/concurrency-60s.log`, S = `results/concurrency-60s-server.log` (server STATS), B = `results/bench.log`.
|
||||
Run 2026-11-07, AMD Ryzen 7 7840U (16 threads), 60.6 GiB RAM, NixOS 26.05 (kernel 6.18.55), CPU power mode: power-save, capped (governor `powersave`, deliberately not changed). Code commit tested: `18c9884`.
|
||||
Sources: C = `results/concurrency-final1.log`, S = `results/concurrency-final1-server.log` (server STATS), B = `results/bench.log`.
|
||||
| metric | avg | p95 | worst | source |
|
||||
|---|---|---|---|---|
|
||||
| vision recompute per player move (server, incl. cellsTouched + diff) | 1.16 ms | - | 14.0 ms | S `vision_ms move-player` |
|
||||
| vision recompute per monster move | 0.000 ms (no vision) | - | 0.025 ms | S `vision_ms move-monster` |
|
||||
| door toggle (2 roles) | 0.19 ms | - | 0.49 ms | S `vision_ms door` |
|
||||
| bench: 1 visibility polygon | 0.038 ms | - | 0.19 ms | B |
|
||||
| bench: 6 polygons | 0.21 ms | - | 0.29 ms | B |
|
||||
| bench: 1 poly + cellsTouched | 0.46 ms | - | 1.2 ms | B |
|
||||
| bench: 6 polys + cellsTouched | 3.0 ms | - | 5.1 ms | B |
|
||||
| latency intent -> ack (sender, via nginx) | 6.33 ms | 11.58 ms | 583 ms | C |
|
||||
| latency intent -> arrival at other clients | 7.22 ms | 12.89 ms | 583 ms | C |
|
||||
| vision recompute per player move (server, incl. cellsTouched + diff) | 1.18 ms | - | 4.55 ms | S `vision_ms move-player` |
|
||||
| vision recompute per monster move | 0.000 ms (no vision) | - | 0.024 ms | S `vision_ms move-monster` |
|
||||
| door toggle (2 roles) | 0.20 ms | - | 0.30 ms | S `vision_ms door` |
|
||||
| server total per mutation (lock wait + vision + sqlite + send) | 0.70 ms | - (p99 3.71) | 19.63 ms | S `timing_ms total` |
|
||||
| bench: 1 visibility polygon | 0.038 ms | - | 0.18 ms | B |
|
||||
| bench: 6 polygons | 0.205 ms | - | 0.29 ms | B |
|
||||
| bench: 1 poly + cellsTouched | 0.451 ms | - | 0.98 ms | B |
|
||||
| bench: 6 polys + cellsTouched | 2.95 ms | - | 3.73 ms | B |
|
||||
| latency intent -> ack (sender, via nginx) | 1.40 ms | 2.99 ms | 20.31 ms | C |
|
||||
| latency intent -> arrival at other clients | 2.04 ms | 3.66 ms | 18.94 ms | C |
|
||||
|
||||
Bytes per delivery (only recipients that got something; S `bytes/delivery`):
|
||||
| mutation | recipient | avg B |
|
||||
|---|---|---|
|
||||
| monster move | GM | 243 |
|
||||
| monster move | player who sees it | 145 (A) - 148 (B) |
|
||||
| player move | the mover (ack + token + new `vision` + `explored` diff) | 3181 (B) - 3679 (A) (worst 4.9 KB) |
|
||||
| player move | GM | 145 |
|
||||
| door toggle | GM | 45 |
|
||||
| monster move | GM | 243.5 |
|
||||
| monster move | player who sees it | 145.5 (B) - 146.0 (A) |
|
||||
| player move | the mover (ack + token + new `vision` + `explored` diff) | 3359 (B) - 3653 (A) (worst 4.9 KB) |
|
||||
| player move | GM | 144.6 |
|
||||
| door toggle | GM | 44.8 |
|
||||
|
||||
"6 moving tokens" with vision: monsters have none in this design, so the 6-token case is the bench (a 6-token party in one role = 6 polys per recompute: 0.21 ms polys, 3.0 ms with cell marking; B). Concurrency exercised 6 simultaneously moving monsters (no vision cost) + 2 players.
|
||||
"6 moving tokens" with vision: monsters have none in this design, so the 6-token case is the bench (a 6-token party in one role = 6 polys per recompute: 0.205 ms polys, 2.95 ms with cell marking; B). Concurrency exercised 6 simultaneously moving monsters (no vision cost) + 2 players.
|
||||
|
||||
## Findings
|
||||
**Worked**
|
||||
@@ -81,14 +107,14 @@ Bytes per delivery (only recipients that got something; S `bytes/delivery`):
|
||||
**Edge cases that broke (see NOTES.md)**: `cellsTouched` missed polygons wholly inside one cell (fix: vertex-in-cell test); client did not reset on reconnect (fix: reset on `hello`); door id 0 falsy check; leak scenario steps crossing walls diagonally (scenario bug, server correctly refused).
|
||||
|
||||
**mummy suitability**
|
||||
- Send is thread-safe by construction: `WebSocket.send` appends the encoded frame to one server-wide deque under `sendQueueLock` and triggers the IO thread (mummy.nim ~L262-311); the IO thread drains it. Per-socket events are serialized by mummy. Because we also send while holding our own lock, per-socket order == gseq order, so no separate broadcaster was needed. 60 s of mixed 3-client load, 13781 mutations, ~36k messages (C): no crash, no reorder, no loss, consistent final views.
|
||||
- Caveats: `WebSocket` has no `==`/hash, we key a table by its raw bytes (shortcut, works while it is one pointer-sized ref). Everything is serialized by one lock, so throughput is single-core bound (fine here: ~1.2 ms/player move, S). Sending under the lock is cheap (queue push) but a slow client cannot block it; there is no backpressure/limit on a slow client's queue (memory grows).
|
||||
- Send is thread-safe by construction: `WebSocket.send` appends the encoded frame to one server-wide deque under `sendQueueLock` and triggers the IO thread (mummy.nim ~L262-311); the IO thread drains it. Per-socket events are serialized by mummy. Because we also send while holding our own lock, per-socket order == gseq order, so no separate broadcaster was needed. 60 s of mixed 3-client load, 13748 mutations, ~36k messages (C: 24054 + 6093 + 6035 recv, final1): no crash, no reorder, no loss, consistent final views.
|
||||
- Caveats: `WebSocket` has no `==`/hash, we key a table by its raw bytes (shortcut, works while it is one pointer-sized ref). Everything is serialized by one lock, so throughput is single-core bound (fine here: ~1.18 ms/player move, S). Sending under the lock is cheap (queue push) but a slow client cannot block it; there is no backpressure/limit on a slow client's queue (memory grows).
|
||||
- Pinned to an exact commit (no tags upstream).
|
||||
|
||||
**Worries for a real VTT**
|
||||
- Vision is O(rays x walls) per token (culled only by bbox); needs a spatial grid for big maps. cellsTouched (O(bbox cells x poly edges)) is ~12x costlier than the polygon itself (0.46 vs 0.038 ms, B) and dominates.
|
||||
- Vision is O(rays x walls) per token (culled only by bbox); needs a spatial grid for big maps. cellsTouched (O(bbox cells x poly edges)) is ~12x costlier than the polygon itself (0.451 vs 0.038 ms, B) and dominates.
|
||||
- Explored grid: 128x128 cells here; explored set sent whole on connect, kept in memory + one SQLite row per cell. Larger maps need run-length/bitmap + per-tile summaries.
|
||||
- Full `vision` polygon resent on each player move (most of the ~3.2-3.7 KB per mover delivery); needs deltas or lower-res polygons.
|
||||
- Full `vision` polygon resent on each player move (most of the ~3.4-3.7 KB per mover delivery); needs deltas or lower-res polygons.
|
||||
- Cookie = the secret (bearer, no rotation/expiry); invite links in logs/URLs are credentials. HTTPS needed beyond localhost.
|
||||
- Tiles do not update when a door changes (static art; only fog changes); a revealed tile stays visible forever and leaks the whole tile (256 px), not just the explored cells; tile granularity vs exploredCell is a leak/size tradeoff.
|
||||
- Polygon boundary epsilon: ray nudges (1e-4 rad) and inclusive tolerances; tokens right on the boundary are ambiguous (tests use a 0.5 px tolerance). A token standing exactly on a wall cannot move off it; server must keep tokens off walls.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
1 poly (jittered start positions): n=2000 avg=0.036ms worst=0.069ms
|
||||
6 polys (one 6-token party): n=500 avg=0.202ms worst=0.266ms
|
||||
1 poly + cellsTouched: n=2000 avg=0.448ms worst=0.913ms
|
||||
6 polys + cellsTouched: n=300 avg=2.943ms worst=3.651ms
|
||||
1 poly (jittered start positions): n=2000 avg=0.038ms worst=0.180ms
|
||||
6 polys (one 6-token party): n=500 avg=0.205ms worst=0.291ms
|
||||
1 poly + cellsTouched: n=2000 avg=0.451ms worst=0.980ms
|
||||
6 polys + cellsTouched: n=300 avg=2.947ms worst=3.727ms
|
||||
(sink 2063860)
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
|
||||
> check
|
||||
> node --test src/state.test.ts
|
||||
|
||||
✔ protocol reducer: fake server script (1.456001ms)
|
||||
✔ gm walls + door (0.181201ms)
|
||||
✔ tilesOfCells (0.268275ms)
|
||||
✔ hello resets state (reconnect) (0.211899ms)
|
||||
ℹ tests 4
|
||||
ℹ suites 0
|
||||
ℹ pass 4
|
||||
ℹ fail 0
|
||||
ℹ cancelled 0
|
||||
ℹ skipped 0
|
||||
ℹ todo 0
|
||||
ℹ duration_ms 132.877698
|
||||
@@ -0,0 +1,15 @@
|
||||
STATS bytes/delivery door gm: n=62 avg=44.8 worst=46.
|
||||
STATS bytes/delivery move-monster A: n=843 avg=146.0 worst=154.
|
||||
STATS bytes/delivery move-monster B: n=754 avg=145.5 worst=154.
|
||||
STATS bytes/delivery move-monster gm: n=10286 avg=243.5 worst=252.
|
||||
STATS bytes/delivery move-player A: n=1689 avg=3652.8 worst=4887.
|
||||
STATS bytes/delivery move-player B: n=1711 avg=3358.9 worst=4433.
|
||||
STATS bytes/delivery move-player gm: n=3400 avg=144.6 worst=149.
|
||||
STATS timing_ms lock_wait: n=13748 avg=0.119 p50=0.000 p99=2.181 worst=16.860
|
||||
STATS timing_ms send: n=13748 avg=0.061 p50=0.040 p99=0.187 worst=0.335
|
||||
STATS timing_ms sqlite: n=13748 avg=0.167 p50=0.139 p99=0.307 worst=17.568
|
||||
STATS timing_ms total: n=13748 avg=0.701 p50=0.286 p99=3.714 worst=19.634
|
||||
STATS timing_ms vision: n=13748 avg=0.293 p50=0.000 p99=2.491 worst=4.549
|
||||
STATS vision_ms door: n=62 avg=0.204 worst=0.297
|
||||
STATS vision_ms move-monster: n=10286 avg=0.000 worst=0.024
|
||||
STATS vision_ms move-player: n=3400 avg=1.181 worst=4.549
|
||||
@@ -0,0 +1,6 @@
|
||||
gm: sent 10299 moves (167/s), acks 10299 (nack 13), recv 24054 msgs 2935 KiB, final gseq 13748, tokens in view 8
|
||||
A: sent 1715 moves (28/s), acks 1715 (nack 26), recv 6093 msgs 6153 KiB, final gseq 13745, tokens in view 2
|
||||
B: sent 1711 moves (28/s), acks 1711 (nack 0), recv 6035 msgs 5725 KiB, final gseq 13742, tokens in view 1
|
||||
latency intent->ack (sender): n=13725 avg=1.40ms p95=2.99ms p99=4.58ms worst=20.31ms
|
||||
latency intent->arrival at other clients: n=4926 avg=2.04ms p95=3.66ms p99=5.17ms worst=18.94ms
|
||||
concurrency: PASS
|
||||
@@ -0,0 +1,15 @@
|
||||
STATS bytes/delivery door gm: n=58 avg=44.8 worst=46.
|
||||
STATS bytes/delivery move-monster A: n=1393 avg=149.0 worst=154.
|
||||
STATS bytes/delivery move-monster B: n=850 avg=147.4 worst=154.
|
||||
STATS bytes/delivery move-monster gm: n=10222 avg=243.6 worst=252.
|
||||
STATS bytes/delivery move-player A: n=1699 avg=3903.2 worst=4949.
|
||||
STATS bytes/delivery move-player B: n=1716 avg=3341.6 worst=4514.
|
||||
STATS bytes/delivery move-player gm: n=3414 avg=144.6 worst=148.
|
||||
STATS timing_ms lock_wait: n=13695 avg=0.146 p50=0.000 p99=2.640 worst=19.868
|
||||
STATS timing_ms send: n=13695 avg=0.064 p50=0.041 p99=0.199 worst=0.486
|
||||
STATS timing_ms sqlite: n=13695 avg=0.169 p50=0.142 p99=0.301 worst=19.760
|
||||
STATS timing_ms total: n=13695 avg=0.789 p50=0.293 p99=4.092 worst=21.321
|
||||
STATS timing_ms vision: n=13695 avg=0.347 p50=0.000 p99=3.059 worst=4.930
|
||||
STATS vision_ms door: n=58 avg=0.224 worst=0.328
|
||||
STATS vision_ms move-monster: n=10222 avg=0.000 worst=0.022
|
||||
STATS vision_ms move-player: n=3415 avg=1.387 worst=4.930
|
||||
@@ -0,0 +1,6 @@
|
||||
gm: sent 10271 moves (166/s), acks 10271 (nack 49), recv 23971 msgs 2926 KiB, final gseq 13695, tokens in view 8
|
||||
A: sent 1709 moves (28/s), acks 1709 (nack 10), recv 6617 msgs 6685 KiB, final gseq 13693, tokens in view 2
|
||||
B: sent 1716 moves (28/s), acks 1716 (nack 0), recv 6148 msgs 5728 KiB, final gseq 13690, tokens in view 2
|
||||
latency intent->ack (sender): n=13696 avg=1.50ms p95=3.39ms p99=4.98ms worst=21.73ms
|
||||
latency intent->arrival at other clients: n=5610 avg=2.10ms p95=4.11ms p99=5.47ms worst=21.78ms
|
||||
concurrency: PASS
|
||||
@@ -0,0 +1,15 @@
|
||||
STATS bytes/delivery door gm: n=64 avg=44.8 worst=46.
|
||||
STATS bytes/delivery move-monster A: n=912 avg=146.8 worst=154.
|
||||
STATS bytes/delivery move-monster B: n=739 avg=143.6 worst=154.
|
||||
STATS bytes/delivery move-monster gm: n=10278 avg=243.4 worst=252.
|
||||
STATS bytes/delivery move-player A: n=1709 avg=3639.5 worst=4978.
|
||||
STATS bytes/delivery move-player B: n=1707 avg=3280.8 worst=4489.
|
||||
STATS bytes/delivery move-player gm: n=3413 avg=144.7 worst=149.
|
||||
STATS timing_ms lock_wait: n=13758 avg=0.128 p50=0.000 p99=2.341 worst=21.024
|
||||
STATS timing_ms send: n=13758 avg=0.061 p50=0.039 p99=0.184 worst=0.336
|
||||
STATS timing_ms sqlite: n=13758 avg=0.170 p50=0.141 p99=0.297 worst=23.209
|
||||
STATS timing_ms total: n=13758 avg=0.719 p50=0.288 p99=3.874 worst=24.258
|
||||
STATS timing_ms vision: n=13758 avg=0.297 p50=0.000 p99=2.874 worst=4.548
|
||||
STATS vision_ms door: n=64 avg=0.209 worst=0.288
|
||||
STATS vision_ms move-monster: n=10278 avg=0.000 worst=0.026
|
||||
STATS vision_ms move-player: n=3416 avg=1.191 worst=4.548
|
||||
@@ -0,0 +1,6 @@
|
||||
gm: sent 10302 moves (163/s), acks 10302 (nack 24), recv 24064 msgs 2936 KiB, final gseq 13758, tokens in view 8
|
||||
A: sent 1724 moves (27/s), acks 1724 (nack 15), recv 6214 msgs 6212 KiB, final gseq 13748, tokens in view 1
|
||||
B: sent 1707 moves (27/s), acks 1707 (nack 0), recv 6065 msgs 5578 KiB, final gseq 13756, tokens in view 2
|
||||
latency intent->ack (sender): n=13733 avg=1.43ms p95=3.15ms p99=4.75ms worst=24.72ms
|
||||
latency intent->arrival at other clients: n=4987 avg=2.04ms p95=3.90ms p99=5.41ms worst=24.80ms
|
||||
concurrency: PASS
|
||||
@@ -0,0 +1,148 @@
|
||||
== fault hidden
|
||||
FAIL [HIDDEN_TOKEN] LEAK token M5 outside A vision at g=0
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=0
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=1
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=2
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=3
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=4
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=5
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=6
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=7
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=8
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=9
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=10
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=11
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=12
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=13
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=14
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=15
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=16
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=17
|
||||
FAIL [HIDDEN_TOKEN] view mismatch M5 want=false at g=18
|
||||
FAILCLASS HIDDEN_TOKEN 144
|
||||
leakcheck: 218 gseq groups, subject msgs 466, tokens seen 4 others, removes 3, tiles 9984 (200:1709 403:8275 other:0), explored cells 2142, failures 144
|
||||
== fault walls
|
||||
FAIL [WALLDATA] A got forbidden type walls
|
||||
FAILCLASS WALLDATA 1
|
||||
leakcheck: 218 gseq groups, subject msgs 468, tokens seen 4 others, removes 4, tiles 9984 (200:1709 403:8275 other:0), explored cells 2142, failures 1
|
||||
== fault tile
|
||||
FAIL [TILE] tile 3_0 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 4_0 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 5_0 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 6_0 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 7_0 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 8_0 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 9_0 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 10_0 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 11_0 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 12_0 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 13_0 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 14_0 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 15_0 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 4_1 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 5_1 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 6_1 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 7_1 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 8_1 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 9_1 g=0 (start) status 200 expected 403
|
||||
FAIL [TILE] tile 10_1 g=0 (start) status 200 expected 403
|
||||
FAILCLASS TILE 8275
|
||||
leakcheck: 218 gseq groups, subject msgs 467, tokens seen 4 others, removes 4, tiles 9984 (200:9984 403:0 other:0), explored cells 2142, failures 8275
|
||||
== fault withhold
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=21
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=22
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=23
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=24
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=25
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=26
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=27
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=28
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=29
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=30
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=31
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=32
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=33
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=34
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=35
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=36
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=37
|
||||
FAIL [WITHHELD] view mismatch M1 want=true at g=38
|
||||
FAIL [WITHHELD] scenario never showed subject token M1
|
||||
FAILCLASS WITHHELD 19
|
||||
leakcheck: 218 gseq groups, subject msgs 465, tokens seen 3 others, removes 3, tiles 9984 (200:1709 403:8275 other:0), explored cells 2142, failures 19
|
||||
== fault other-vision
|
||||
FAIL [OTHER_PLAYER] vision carries B's polygon at g=0
|
||||
FAIL [OWN_VIEW] vision shape at g=0
|
||||
FAIL [OTHER_PLAYER] vision carries B's polygon at g=1
|
||||
FAIL [OWN_VIEW] vision shape at g=1
|
||||
FAIL [OTHER_PLAYER] vision carries B's polygon at g=2
|
||||
FAIL [OWN_VIEW] vision shape at g=2
|
||||
FAIL [OTHER_PLAYER] vision carries B's polygon at g=3
|
||||
FAIL [OWN_VIEW] vision shape at g=3
|
||||
FAIL [OTHER_PLAYER] vision carries B's polygon at g=4
|
||||
FAIL [OWN_VIEW] vision shape at g=4
|
||||
FAIL [OTHER_PLAYER] vision carries B's polygon at g=5
|
||||
FAIL [OWN_VIEW] vision shape at g=5
|
||||
FAIL [OTHER_PLAYER] vision carries B's polygon at g=6
|
||||
FAIL [OWN_VIEW] vision shape at g=6
|
||||
FAIL [OTHER_PLAYER] vision carries B's polygon at g=7
|
||||
FAIL [OWN_VIEW] vision shape at g=7
|
||||
FAIL [OTHER_PLAYER] vision carries B's polygon at g=8
|
||||
FAIL [OWN_VIEW] vision shape at g=8
|
||||
FAIL [OTHER_PLAYER] vision carries B's polygon at g=9
|
||||
FAIL [OWN_VIEW] vision shape at g=9
|
||||
FAILCLASS OTHER_PLAYER 218
|
||||
FAILCLASS OWN_VIEW 218
|
||||
leakcheck: 218 gseq groups, subject msgs 574, tokens seen 4 others, removes 4, tiles 9984 (200:1709 403:8275 other:0), explored cells 2142, failures 436
|
||||
== fault other-explored
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [7,65]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [24,68]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [11,64]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [14,81]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [7,72]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [11,79]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [8,68]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [21,75]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [18,64]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [15,69]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [15,66]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [10,73]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [8,72]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [18,74]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [11,75]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [21,66]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [16,72]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [23,64]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [10,77]
|
||||
FAIL [OTHER_PLAYER] LEAK explored cell not yet explored [12,77]
|
||||
FAILCLASS OTHER_PLAYER 786
|
||||
FAILCLASS EXPLORED 218
|
||||
leakcheck: 218 gseq groups, subject msgs 505, tokens seen 4 others, removes 4, tiles 9984 (200:1709 403:8275 other:0), explored cells 2142, failures 1004
|
||||
== fault other-owner
|
||||
FAIL [OTHER_PLAYER] B mentioned in {"role":"player","tokens":["A","B"],"world":{"w":4096,"h":4096},"tileSize":256,"exploredCell":32,"tokenRadius":20,"t":"hello","gseq":0}
|
||||
FAIL [OTHER_PLAYER] hello tokens ["A","B"]
|
||||
FAILCLASS OTHER_PLAYER 2
|
||||
leakcheck: 218 gseq groups, subject msgs 467, tokens seen 4 others, removes 4, tiles 9984 (200:1709 403:8275 other:0), explored cells 2142, failures 2
|
||||
== fault noremove
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=39
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=40
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=41
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=42
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=43
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=44
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=45
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=46
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=47
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=48
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=49
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=50
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=51
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=52
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=53
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=54
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=55
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=56
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=57
|
||||
FAIL [NO_REMOVE] view mismatch M1 want=false at g=58
|
||||
FAILCLASS NO_REMOVE 356
|
||||
leakcheck: 218 gseq groups, subject msgs 463, tokens seen 4 others, removes 0, tiles 9984 (200:1709 403:8275 other:0), explored cells 2142, failures 356
|
||||
@@ -0,0 +1,11 @@
|
||||
Info: Running script "faulttest" on /home/davide/Projects/GDR/FFF_vtt/prototype-server-vision
|
||||
PASS run/test/server-clean has no fault hook
|
||||
PASS fault hidden caught as: HIDDEN_TOKEN
|
||||
PASS fault walls caught as: WALLDATA
|
||||
PASS fault tile caught as: TILE
|
||||
PASS fault withhold caught as: WITHHELD
|
||||
PASS fault other-vision caught as: OTHER_PLAYER OWN_VIEW
|
||||
PASS fault other-explored caught as: EXPLORED OTHER_PLAYER
|
||||
PASS fault other-owner caught as: OTHER_PLAYER
|
||||
PASS fault noremove caught as: NO_REMOVE
|
||||
PASS clean build passes
|
||||
@@ -0,0 +1,7 @@
|
||||
Info: Running script "leaktest" on /home/davide/Projects/GDR/FFF_vtt/prototype-server-vision
|
||||
== SUBJECT=A
|
||||
driver done: 237 actions, 0 unexpected acks, final gseq 217
|
||||
leakcheck: 218 gseq groups, subject msgs 467, tokens seen 4 others, removes 4, tiles 9984 (200:1709 403:8275 other:0), explored cells 2142, failures 0
|
||||
== SUBJECT=B
|
||||
driver done: 237 actions, 0 unexpected acks, final gseq 217
|
||||
leakcheck: 218 gseq groups, subject msgs 217, tokens seen 3 others, removes 3, tiles 7424 (200:686 403:6738 other:0), explored cells 1114, failures 0
|
||||
@@ -0,0 +1,12 @@
|
||||
nimble-test 0
|
||||
mutation 0
|
||||
leaktest 0
|
||||
faulttest 0
|
||||
restart 0
|
||||
smoke 0
|
||||
bench 0
|
||||
client-tests 0
|
||||
concurrency-final1 0
|
||||
concurrency-final2 0
|
||||
concurrency-final3 0
|
||||
DONE
|
||||
@@ -0,0 +1,28 @@
|
||||
Info: Running script "restart" on /home/davide/Projects/GDR/FFF_vtt/prototype-server-vision
|
||||
PASS move A -> 400,800
|
||||
PASS move A -> 800,800
|
||||
PASS move A -> 800,640
|
||||
PASS move A -> 1000,640
|
||||
PASS move A -> 1510,640
|
||||
PASS move B -> 700,2300
|
||||
PASS move M1 -> 900,640
|
||||
PASS move M2 -> 2200,300
|
||||
PASS move A -> 1700,640
|
||||
PASS cycle1: invite secrets identical
|
||||
PASS cycle1: gm state identical after SIGTERM restart
|
||||
PASS cycle1: A state identical after SIGTERM restart
|
||||
PASS cycle1: B state identical after SIGTERM restart
|
||||
PASS A explored new area (292 -> 1145)
|
||||
PASS cycle1: token positions are the moved ones
|
||||
PASS cycle1: door states are the toggled ones
|
||||
PASS cycle1: doors differ from initial (test is not vacuous)
|
||||
PASS move A -> 1900,640
|
||||
PASS move B -> 1000,2300
|
||||
PASS move M1 -> 1200,640
|
||||
PASS cycle2: invite secrets identical
|
||||
PASS cycle2: gm state identical after SIGKILL restart
|
||||
PASS cycle2: A state identical after SIGKILL restart
|
||||
PASS cycle2: B state identical after SIGKILL restart
|
||||
PASS cycle2: A explored more before kill -9
|
||||
PASS cycle2: B explored more before kill -9
|
||||
restart: PASS
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -11,9 +11,9 @@
|
||||
[OK] shared endpoint: no leak at the vertex
|
||||
[OK] '<' apex: ray through the shared tip must not leak
|
||||
[OK] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
/tmp/tmp.NVulDEmX9F/w/tests/tgeometry.nim(65, 14): Check failed: sees(w, (0.0, 7.4), (100.0, -6.0))
|
||||
/tmp/tmp.NVulDEmX9F/w/tests/tgeometry.nim(69, 14): Check failed: sees(m, (0.0, -7.4), (100.0, 6.0))
|
||||
/tmp/tmp.NVulDEmX9F/w/tests/tgeometry.nim(73, 14): Check failed: sees(b, (0.0, -24.0), (200.0, 130.0))
|
||||
/tmp/tmp.JzjWCOxzvp/w/tests/tgeometry.nim(65, 14): Check failed: sees(w, (0.0, 7.4), (100.0, -6.0))
|
||||
/tmp/tmp.JzjWCOxzvp/w/tests/tgeometry.nim(69, 14): Check failed: sees(m, (0.0, -7.4), (100.0, 6.0))
|
||||
/tmp/tmp.JzjWCOxzvp/w/tests/tgeometry.nim(73, 14): Check failed: sees(b, (0.0, -24.0), (200.0, 130.0))
|
||||
[FAILED] rays nudged past a corner: area just beyond a wall end is visible
|
||||
[OK] shared endpoint: closed corner of box has no crack
|
||||
[OK] collinear walls act as one
|
||||
@@ -50,7 +50,7 @@
|
||||
[OK] near closed door blocks, open door passes
|
||||
[OK] 64px corridor and doorway passable on centerline
|
||||
[OK] legacy overlap can escape, not stay overlapped
|
||||
Error: execution of an external program failed: '/tmp/tmp.NVulDEmX9F/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/tmp.JzjWCOxzvp/w/tests/tgeometry'
|
||||
|
||||
# test exit=1
|
||||
# NEW tests failed:
|
||||
|
||||
@@ -10,14 +10,14 @@
|
||||
[OK] open space is a circle
|
||||
[OK] wall blocks
|
||||
[OK] shared endpoint: no leak at the vertex
|
||||
/tmp/tmp.NVulDEmX9F/w/tests/tgeometry.nim(45, 59): Check failed: visibilityPolygon((0.0, 0.0), w, 500).hasVertex((100.0, 0.0))
|
||||
/tmp/tmp.NVulDEmX9F/w/tests/tgeometry.nim(46, 12): Check failed: not sees(w, (0.0, 0.0), (150.0, 0.0))
|
||||
/tmp/tmp.JzjWCOxzvp/w/tests/tgeometry.nim(45, 59): Check failed: visibilityPolygon((0.0, 0.0), w, 500).hasVertex((100.0, 0.0))
|
||||
/tmp/tmp.JzjWCOxzvp/w/tests/tgeometry.nim(46, 12): Check failed: not sees(w, (0.0, 0.0), (150.0, 0.0))
|
||||
sees(w, (0.0, 0.0), (150.0, 0.0)) was true
|
||||
/tmp/tmp.NVulDEmX9F/w/tests/tgeometry.nim(47, 12): Check failed: not sees(w, (0.0, 0.0), (300.0, 0.0))
|
||||
/tmp/tmp.JzjWCOxzvp/w/tests/tgeometry.nim(47, 12): Check failed: not sees(w, (0.0, 0.0), (300.0, 0.0))
|
||||
sees(w, (0.0, 0.0), (300.0, 0.0)) was true
|
||||
[FAILED] '<' apex: ray through the shared tip must not leak
|
||||
/tmp/tmp.NVulDEmX9F/w/tests/tgeometry.nim(55, 24): Check failed: poly.hasVertex((80.0, 10.0))
|
||||
/tmp/tmp.NVulDEmX9F/w/tests/tgeometry.nim(58, 22): Check failed: pr.hasVertex((50.0, -30.0))
|
||||
/tmp/tmp.JzjWCOxzvp/w/tests/tgeometry.nim(55, 24): Check failed: poly.hasVertex((80.0, 10.0))
|
||||
/tmp/tmp.JzjWCOxzvp/w/tests/tgeometry.nim(58, 22): Check failed: pr.hasVertex((50.0, -30.0))
|
||||
[FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
[OK] rays nudged past a corner: area just beyond a wall end is visible
|
||||
[OK] shared endpoint: closed corner of box has no crack
|
||||
@@ -55,7 +55,7 @@
|
||||
[OK] near closed door blocks, open door passes
|
||||
[OK] 64px corridor and doorway passable on centerline
|
||||
[OK] legacy overlap can escape, not stay overlapped
|
||||
Error: execution of an external program failed: '/tmp/tmp.NVulDEmX9F/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/tmp.JzjWCOxzvp/w/tests/tgeometry'
|
||||
|
||||
# test exit=1
|
||||
# NEW tests failed:
|
||||
|
||||
@@ -10,14 +10,14 @@
|
||||
[OK] open space is a circle
|
||||
[OK] wall blocks
|
||||
[OK] shared endpoint: no leak at the vertex
|
||||
/tmp/tmp.NVulDEmX9F/w/tests/tgeometry.nim(45, 59): Check failed: visibilityPolygon((0.0, 0.0), w, 500).hasVertex((100.0, 0.0))
|
||||
/tmp/tmp.NVulDEmX9F/w/tests/tgeometry.nim(46, 12): Check failed: not sees(w, (0.0, 0.0), (150.0, 0.0))
|
||||
/tmp/tmp.JzjWCOxzvp/w/tests/tgeometry.nim(45, 59): Check failed: visibilityPolygon((0.0, 0.0), w, 500).hasVertex((100.0, 0.0))
|
||||
/tmp/tmp.JzjWCOxzvp/w/tests/tgeometry.nim(46, 12): Check failed: not sees(w, (0.0, 0.0), (150.0, 0.0))
|
||||
sees(w, (0.0, 0.0), (150.0, 0.0)) was true
|
||||
/tmp/tmp.NVulDEmX9F/w/tests/tgeometry.nim(47, 12): Check failed: not sees(w, (0.0, 0.0), (300.0, 0.0))
|
||||
/tmp/tmp.JzjWCOxzvp/w/tests/tgeometry.nim(47, 12): Check failed: not sees(w, (0.0, 0.0), (300.0, 0.0))
|
||||
sees(w, (0.0, 0.0), (300.0, 0.0)) was true
|
||||
[FAILED] '<' apex: ray through the shared tip must not leak
|
||||
/tmp/tmp.NVulDEmX9F/w/tests/tgeometry.nim(54, 24): Check failed: poly.hasVertex((50.0, -30.0))
|
||||
/tmp/tmp.NVulDEmX9F/w/tests/tgeometry.nim(59, 22): Check failed: pr.hasVertex((80.0, 10.0))
|
||||
/tmp/tmp.JzjWCOxzvp/w/tests/tgeometry.nim(54, 24): Check failed: poly.hasVertex((50.0, -30.0))
|
||||
/tmp/tmp.JzjWCOxzvp/w/tests/tgeometry.nim(59, 22): Check failed: pr.hasVertex((80.0, 10.0))
|
||||
[FAILED] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
[OK] rays nudged past a corner: area just beyond a wall end is visible
|
||||
[OK] shared endpoint: closed corner of box has no crack
|
||||
@@ -55,7 +55,7 @@
|
||||
[OK] near closed door blocks, open door passes
|
||||
[OK] 64px corridor and doorway passable on centerline
|
||||
[OK] legacy overlap can escape, not stay overlapped
|
||||
Error: execution of an external program failed: '/tmp/tmp.NVulDEmX9F/w/tests/tgeometry'
|
||||
Error: execution of an external program failed: '/tmp/tmp.JzjWCOxzvp/w/tests/tgeometry'
|
||||
|
||||
# test exit=1
|
||||
# NEW tests failed:
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
Info: Running script "mutation" on /home/davide/Projects/GDR/FFF_vtt/prototype-server-vision
|
||||
control: exit=0 newfailed=0
|
||||
a: exit=1 newfailed=1
|
||||
b: exit=1 newfailed=2
|
||||
c: exit=1 newfailed=2
|
||||
@@ -0,0 +1,45 @@
|
||||
Info: Running script "nimble" on /home/davide/Projects/GDR/FFF_vtt/prototype-server-vision
|
||||
Info: Ensuring packages are installed.
|
||||
Info: Using the environment variable: NIMBLE_DIR='/home/davide/Projects/GDR/FFF_vtt/prototype-server-vision/.devbox/nimble'
|
||||
Info: using /nix/store/0cbdz34lsakfirycixckf6ypsd8hazhg-x86_64-unknown-linux-gnu-nim-wrapper-2.2.12/bin/nim for compilation
|
||||
Compiling /home/davide/Projects/GDR/FFF_vtt/prototype-server-vision/tests/tgeometry (from package servervision) using c backend
|
||||
Nim Output [Suite] visibility
|
||||
... [OK] open space is a circle
|
||||
... [OK] wall blocks
|
||||
... [OK] shared endpoint: no leak at the vertex
|
||||
... [OK] '<' apex: ray through the shared tip must not leak
|
||||
... [OK] every segment endpoint is a polygon vertex (lower and upper end inclusive)
|
||||
... [OK] rays nudged past a corner: area just beyond a wall end is visible
|
||||
... [OK] shared endpoint: closed corner of box has no crack
|
||||
... [OK] collinear walls act as one
|
||||
... [OK] collinear walls with a gap let light through
|
||||
... [OK] T-junction: no leak and correct shadow
|
||||
... [OK] pillar mid-room casts a shadow, sides visible
|
||||
... [OK] closed door blocks, open door passes
|
||||
... [OK] token exactly at wall endpoint
|
||||
... [OK] token at endpoint of free-standing wall sees along it
|
||||
... [OK] long thin corridor
|
||||
... [OK] wall endpoints behind the viewer: fan stays angularly ordered
|
||||
... [OK] radius clips
|
||||
... [Suite] moves
|
||||
... [OK] crossing blocked, parallel ok
|
||||
... [OK] grazing an endpoint is blocked
|
||||
... [OK] no leak through shared vertex
|
||||
... [OK] diagonal squeeze through corner vertex of L
|
||||
... [OK] moving along a collinear wall is blocked
|
||||
... [OK] doors
|
||||
... [OK] zero-length move
|
||||
... [Suite] cells
|
||||
... [OK] square polygon
|
||||
... [OK] tiny polygon inside one cell
|
||||
... [OK] polygon spanning a cell with no vertex in it
|
||||
... [OK] big polygon includes fully covered interior cells
|
||||
... [Suite] seed
|
||||
... [OK] every token in seed sees itself and is not walled in
|
||||
... [Suite] token clearance (r=20)
|
||||
... [OK] near pillar: circle overlapping blocked, clear ok
|
||||
... [OK] near closed door blocks, open door passes
|
||||
... [OK] 64px corridor and doorway passable on centerline
|
||||
... [OK] legacy overlap can escape, not stay overlapped
|
||||
Success: Execution finished
|
||||
Success: All tests passed
|
||||
@@ -0,0 +1,20 @@
|
||||
Info: Running script "smoke" on /home/davide/Projects/GDR/FFF_vtt/prototype-server-vision
|
||||
PASS join A: 302 + HttpOnly SameSite cookie
|
||||
PASS bad secret 403
|
||||
PASS ws without cookie refused
|
||||
PASS ws bad cookie refused
|
||||
player A msgs: hello,vision,explored,token
|
||||
PASS hello first, player owns A
|
||||
PASS no walls/door to player
|
||||
PASS vision + explored sent
|
||||
PASS only own token visible
|
||||
PASS explored tile 200, 767 bytes
|
||||
PASS unexplored tile 403
|
||||
PASS tile without cookie 403
|
||||
PASS /_tiles not reachable directly
|
||||
PASS path trick rejected
|
||||
PASS GM gets any tile
|
||||
PASS steal/door/garbage -> 3 errors
|
||||
PASS move through wall rejected
|
||||
PASS legal move acked
|
||||
PASS GM: walls, all 8 tokens, no explored
|
||||
@@ -1,5 +1,7 @@
|
||||
# 583 ms spike investigation (results/spike/original-60s.log: worst intent->ack 583.13 ms, avg 6.33 ms)
|
||||
|
||||
HISTORICAL: measured 2026-11-07 on AMD Ryzen 7 7840U, 60.6 GiB, NixOS 26.05, power-save (capped), at commits b202eb6 (baseline) and a337cec (fixed). Not the final-run data (see README).
|
||||
|
||||
Setup: DUR=60, isolated stack (run/test, :18088/:19000), CPU powersave governor untouched, runs strictly sequential.
|
||||
Server now logs per mutation: lock_wait / vision / sqlite / send / total, `SLOW` line when total > `SLOW_MS` (default 50), percentiles in `STATS timing_ms` (end of run + every 5000 mutations).
|
||||
Client p99 added to `tools/concurrency.mjs`. Logs: `results/spike/base{1,2,3}[-server].log` (baseline), `results/spike/fixed{1,2,3}[-server].log` (after fix).
|
||||
|
||||
Reference in New Issue
Block a user