BlueGit

projects-timfalken-com allianties

unit_tests

Pipelines Pipeline Editor

Passed Started 4 days ago by timfa

Raw

Running on Steve

Log timestamps in UTC.

  1. 100:01:07Using docker image node:20-bookworm ...
  2. 200:01:07Using docker image sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 for node:20-bookworm with digest node@sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 ...
  1. 300:01:07Running on Steve via BlueGit...
  2. 400:01:07Working directory: /workspace
  3. 500:01:07Pipeline #709, job #2750
  1. 600:01:09debconf: delaying package configuration, since apt-utils is not installed
  2. 700:01:14TAP version 13
  3. 800:01:14# Subtest: deploy_guard
  4. 900:01:14 # Subtest: expands $timftproot and ${timftproot} and collapses double slashes
  5. 1000:01:14 ok 1 - expands $timftproot and ${timftproot} and collapses double slashes
  6. 1100:01:14 ---
  7. 1200:01:14 duration_ms: 46.38536
  8. 1300:01:14 ...
  9. 1400:01:14 # Subtest: refuses the FTP root, a missing secret, and a non-allianties leaf
  10. 1500:01:14 ok 2 - refuses the FTP root, a missing secret, and a non-allianties leaf
  11. 1600:01:14 ---
  12. 1700:01:14 duration_ms: 41.972008
  13. 1800:01:14 ...
  14. 1900:01:14 # Subtest: the CLI exits 0 for a good path and does not print the path
  15. 2000:01:14 ok 3 - the CLI exits 0 for a good path and does not print the path
  16. 2100:01:14 ---
  17. 2200:01:14 duration_ms: 14.0316
  18. 2300:01:14 ...
  19. 2400:01:14 1..3
  20. 2500:01:14ok 1 - deploy_guard
  21. 2600:01:14 ---
  22. 2700:01:14 duration_ms: 103.495144
  23. 2800:01:14 type: 'suite'
  24. 2900:01:14 ...
  25. 3000:01:14# Subtest: assert_safe_target
  26. 3100:01:14 # Subtest: allows a new, empty, previous, or leftover-files folder and only logs foreign names
  27. 3200:01:14 ok 1 - allows a new, empty, previous, or leftover-files folder and only logs foreign names
  28. 3300:01:14 ---
  29. 3400:01:14 duration_ms: 24.778295
  30. 3500:01:14 ...
  31. 3600:01:14 # Subtest: the FTP mirror never deletes, never uploads favicon.ico, and leaves data/ alone
  32. 3700:01:14 ok 2 - the FTP mirror never deletes, never uploads favicon.ico, and leaves data/ alone
  33. 3800:01:14 ---
  34. 3900:01:14 duration_ms: 22.498606
  35. 4000:01:14 ...
  36. 4100:01:14 1..2
  37. 4200:01:14ok 2 - assert_safe_target
  38. 4300:01:14 ---
  39. 4400:01:14 duration_ms: 47.487989
  40. 4500:01:14 type: 'suite'
  41. 4600:01:14 ...
  42. 4700:01:14# Subtest: auth_config_php
  43. 4800:01:14 # Subtest: is covered by ci/test_deploy_auth.py (PHP escaping, empty secret, no leak in lftp)
  44. 4900:01:14 ok 1 - is covered by ci/test_deploy_auth.py (PHP escaping, empty secret, no leak in lftp)
  45. 5000:01:14 ---
  46. 5100:01:14 duration_ms: 45.039101
  47. 5200:01:14 ...
  48. 5300:01:14 1..1
  49. 5400:01:14ok 3 - auth_config_php
  50. 5500:01:14 ---
  51. 5600:01:14 duration_ms: 45.298901
  52. 5700:01:14 type: 'suite'
  53. 5800:01:14 ...
  54. 5900:01:14# Subtest: i18n catalog
  55. 6000:01:14 # Subtest: lists every supported locale
  56. 6100:01:14 ok 1 - lists every supported locale
  57. 6200:01:14 ---
  58. 6300:01:14 duration_ms: 1.111566
  59. 6400:01:14 ...
  60. 6500:01:14 # Subtest: has the same non-empty keys in every language
  61. 6600:01:14 ok 2 - has the same non-empty keys in every language
  62. 6700:01:14 ---
  63. 6800:01:14 duration_ms: 1.876288
  64. 6900:01:14 ...
  65. 7000:01:14 # Subtest: keeps English placeholders in every translation
  66. 7100:01:14 ok 3 - keeps English placeholders in every translation
  67. 7200:01:14 ---
  68. 7300:01:14 duration_ms: 3.010857
  69. 7400:01:14 ...
  70. 7500:01:14 # Subtest: never translates the game name Allianties
  71. 7600:01:14 ok 4 - never translates the game name Allianties
  72. 7700:01:14 ---
  73. 7800:01:14 duration_ms: 0.19609
  74. 7900:01:14 ...
  75. 8000:01:14 # Subtest: maps every known server error code
  76. 8100:01:14 ok 5 - maps every known server error code
  77. 8200:01:14 ---
  78. 8300:01:14 duration_ms: 0.165893
  79. 8400:01:14 ...
  80. 8500:01:14 1..5
  81. 8600:01:14ok 4 - i18n catalog
  82. 8700:01:14 ---
  83. 8800:01:14 duration_ms: 7.414842
  84. 8900:01:14 type: 'suite'
  85. 9000:01:14 ...
  86. 9100:01:14# Subtest: Rules grid and Chebyshev
  87. 9200:01:14 # Subtest: suggests max(6 + ceil(n/2), n + 1), capped at 24
  88. 9300:01:14 ok 1 - suggests max(6 + ceil(n/2), n + 1), capped at 24
  89. 9400:01:14 ---
  90. 9500:01:14 duration_ms: 0.689911
  91. 9600:01:15 ...
  92. 9700:01:15 # Subtest: uses Chebyshev distance (diagonals included)
  93. 9800:01:15 ok 2 - uses Chebyshev distance (diagonals included)
  94. 9900:01:15 ---
  95. 10000:01:15 duration_ms: 0.164139
  96. 10100:01:15 ...
  97. 10200:01:15 # Subtest: passable accounts for arena inset
  98. 10300:01:15 ok 3 - passable accounts for arena inset
  99. 10400:01:15 ---
  100. 10500:01:15 duration_ms: 0.167035
  101. 10600:01:15 ...
  102. 10700:01:15 1..3
  103. 10800:01:15ok 5 - Rules grid and Chebyshev
  104. 10900:01:15 ---
  105. 11000:01:15 duration_ms: 1.90864
  106. 11100:01:15 type: 'suite'
  107. 11200:01:15 ...
  108. 11300:01:15# Subtest: Rules cease-fire, midnight wrap and DST
  109. 11400:01:15 # Subtest: treats 23:30 as cease-fire wrapping to 06:00 next day
  110. 11500:01:15 ok 1 - treats 23:30 as cease-fire wrapping to 06:00 next day
  111. 11600:01:15 ---
  112. 11700:01:15 duration_ms: 13.949675
  113. 11800:01:15 ...
  114. 11900:01:15 # Subtest: treats the end timestamp as exclusive
  115. 12000:01:15 ok 2 - treats the end timestamp as exclusive
  116. 12100:01:15 ---
  117. 12200:01:15 duration_ms: 1.903029
  118. 12300:01:15 ...
  119. 12400:01:15 # Subtest: handles a second daytime range and countdown seconds
  120. 12500:01:15 ok 3 - handles a second daytime range and countdown seconds
  121. 12600:01:15 ---
  122. 12700:01:15 duration_ms: 4.118957
  123. 12800:01:15 ...
  124. 12900:01:15 # Subtest: shortens 01:00–04:00 across the 2026 spring-forward to 2 real hours
  125. 13000:01:15 ok 4 - shortens 01:00–04:00 across the 2026 spring-forward to 2 real hours
  126. 13100:01:15 ---
  127. 13200:01:15 duration_ms: 1.652626
  128. 13300:01:15 ...
  129. 13400:01:15 # Subtest: lengthens 01:00–03:30 across the 2026 fall-back to 3.5 real hours
  130. 13500:01:15 ok 5 - lengthens 01:00–03:30 across the 2026 fall-back to 3.5 real hours
  131. 13600:01:15 ---
  132. 13700:01:15 duration_ms: 1.689366
  133. 13800:01:15 ...
  134. 13900:01:15 # Subtest: is inactive when the rule is off or ranges are empty
  135. 14000:01:15 ok 6 - is inactive when the rule is off or ranges are empty
  136. 14100:01:15 ---
  137. 14200:01:15 duration_ms: 0.278766
  138. 14300:01:15 ...
  139. 14400:01:15 # Subtest: merges overlapping ranges for the countdown
  140. 14500:01:15 ok 7 - merges overlapping ranges for the countdown
  141. 14600:01:15 ---
  142. 14700:01:15 duration_ms: 0.913403
  143. 14800:01:15 ...
  144. 14900:01:15 # Subtest: formats HH:MM:SS countdowns
  145. 15000:01:15 ok 8 - formats HH:MM:SS countdowns
  146. 15100:01:15 ---
  147. 15200:01:15 duration_ms: 0.148359
  148. 15300:01:15 ...
  149. 15400:01:15 1..8
  150. 15500:01:15ok 6 - Rules cease-fire, midnight wrap and DST
  151. 15600:01:15 ---
  152. 15700:01:15 duration_ms: 25.230087
  153. 15800:01:15 type: 'suite'
  154. 15900:01:15 ...
  155. 16000:01:15# Subtest: Rules timelineIndex (nearest event)
  156. 16100:01:15 # Subtest: returns 0 when there are no spends
  157. 16200:01:15 ok 1 - returns 0 when there are no spends
  158. 16300:01:15 ---
  159. 16400:01:15 duration_ms: 0.159511
  160. 16500:01:15 ...
  161. 16600:01:15 # Subtest: maps 0 to the start and 1 to live (after the last spend)
  162. 16700:01:15 ok 2 - maps 0 to the start and 1 to live (after the last spend)
  163. 16800:01:15 ---
  164. 16900:01:15 duration_ms: 0.170121
  165. 17000:01:15 ...
  166. 17100:01:15 # Subtest: jumps to the nearest event along the bar
  167. 17200:01:15 ok 3 - jumps to the nearest event along the bar
  168. 17300:01:15 ---
  169. 17400:01:15 duration_ms: 0.133742
  170. 17500:01:15 ...
  171. 17600:01:15 1..3
  172. 17700:01:15ok 7 - Rules timelineIndex (nearest event)
  173. 17800:01:15 ---
  174. 17900:01:15 duration_ms: 0.777907
  175. 18000:01:15 type: 'suite'
  176. 18100:01:15 ...
  177. 18200:01:15# Subtest: Rules.angleToMinutes (cease-fire clock)
  178. 18300:01:15 # Subtest: maps the dial with 0 at the top, clockwise, snapped to 15 min
  179. 18400:01:15 ok 1 - maps the dial with 0 at the top, clockwise, snapped to 15 min
  180. 18500:01:15 ---
  181. 18600:01:15 duration_ms: 0.154862
  182. 18700:01:15 ...
  183. 18800:01:15 1..1
  184. 18900:01:15ok 8 - Rules.angleToMinutes (cease-fire clock)
  185. 19000:01:15 ---
  186. 19100:01:15 duration_ms: 0.27579
  187. 19200:01:15 type: 'suite'
  188. 19300:01:15 ...
  189. 19400:01:15# Subtest: Rules time zones (host zone → viewer local)
  190. 19500:01:15 # Subtest: converts wall-clock times between zones, DST-aware
  191. 19600:01:15 ok 1 - converts wall-clock times between zones, DST-aware
  192. 19700:01:15 ---
  193. 19800:01:15 duration_ms: 3.633812
  194. 19900:01:15 ...
  195. 20000:01:15 # Subtest: uses the offset of the reference day around a DST switch
  196. 20100:01:15 ok 2 - uses the offset of the reference day around a DST switch
  197. 20200:01:15 ---
  198. 20300:01:15 duration_ms: 0.215857
  199. 20400:01:15 ...
  200. 20500:01:15 # Subtest: converts rules for a viewer; ranges may wrap midnight after conversion
  201. 20600:01:15 ok 3 - converts rules for a viewer; ranges may wrap midnight after conversion
  202. 20700:01:15 ---
  203. 20800:01:15 duration_ms: 0.99185
  204. 20900:01:15 ...
  205. 21000:01:15 # Subtest: computes the cease-fire in the rules zone
  206. 21100:01:15 ok 4 - computes the cease-fire in the rules zone
  207. 21200:01:15 ---
  208. 21300:01:15 duration_ms: 0.561369
  209. 21400:01:15 ...
  210. 21500:01:15 1..4
  211. 21600:01:15ok 9 - Rules time zones (host zone → viewer local)
  212. 21700:01:15 ---
  213. 21800:01:15 duration_ms: 5.55225
  214. 21900:01:15 type: 'suite'
  215. 22000:01:15 ...
  216. 22100:01:151..9
  217. 22200:01:15# tests 30
  218. 22300:01:15# suites 9
  219. 22400:01:15# pass 30
  220. 22500:01:15# fail 0
  221. 22600:01:15# cancelled 0
  222. 22700:01:15# skipped 0
  223. 22800:01:15# todo 0
  224. 22900:01:15# duration_ms 243.649437
  225. 23000:01:15auth-config ok
  226. 23100:01:15Engine: grid suggestion and placement
  227. 23200:01:15 ok 1 player → 7 (max(6+ceil(0.5), 2) = max(7, 2))
  228. 23300:01:15 ok 2 players → 7 (max(6+1, 3))
  229. 23400:01:15 ok 3 players → 8 (ceil(1.5)=2, max(8, 4))
  230. 23500:01:15 ok 6 players → 9 (max(6+3, 7))
  231. 23600:01:15 ok 9 players → 11 (ceil(4.5)=5, max(11, 10))
  232. 23700:01:15 ok 10 players → 11 (max(6+5, 11))
  233. 23800:01:15 ok 14 players → 15 (max(6+7, 15))
  234. 23900:01:15 ok 16 players → 17
  235. 24000:01:15 ok capped at MAX_GRID 24
  236. 24100:01:15 ok gridSize aliases suggestedGrid
  237. 24200:01:15 ok clamp below min → 6
  238. 24300:01:15 ok clamp above max → 24
  239. 24400:01:15 ok clamp mid unchanged
  240. 24500:01:15 ok 6×6 fits 2
  241. 24600:01:15 ok 6×6 has enough tiles for 16
  242. 24700:01:15 ok below MIN_GRID does not fit
  243. 24800:01:15 ok above MAX_GRID does not fit
  244. 24900:01:15 ok 6×6 max inset 1 (leaves 4×4, min arena 3)
  245. 25000:01:15 ok 7×7 max inset 2 (leaves 3×3)
  246. 25100:01:15 ok 4 starting positions
  247. 25200:01:15 ok starting positions are unique
  248. 25300:01:15 ok start in bounds 3,1
  249. 25400:01:15 ok start in bounds 4,3
  250. 25500:01:15 ok start in bounds 3,4
  251. 25600:01:15 ok start in bounds 1,3
  252. 25700:01:15Engine: Chebyshev range
  253. 25800:01:15 ok diagonal 2 is range 2
  254. 25900:01:15 ok orthogonal 2 is range 2
  255. 26000:01:15 ok same tile is 0
  256. 26100:01:15Engine: midnight Amsterdam
  257. 26200:01:15 ok next midnight after 23:30 is 00:00 next day: 2026-11-14 00:00:00
  258. 26300:01:15 ok at exactly 00:00, next is tomorrow
  259. 26400:01:15 ok DST: next midnight still 00:00: 2026-03-29 00:00:00
  260. 26500:01:15Engine: lobby and start
  261. 26600:01:15 ok new lobby
  262. 26700:01:15 ok jury default ON
  263. 26800:01:15 ok shrink default OFF
  264. 26900:01:15 ok shrink interval default 7
  265. 27000:01:15 ok ceasefire default OFF
  266. 27100:01:15 ok ceasefire ranges empty by default
  267. 27200:01:15 ok vis_shots default public
  268. 27300:01:15 ok vis_gifts default public
  269. 27400:01:15 ok vis_ap default public
  270. 27500:01:15 ok vis_range default public
  271. 27600:01:15 ok vis_lives default public
  272. 27700:01:15 ok ap_loot default OFF
  273. 27800:01:15 ok ap_time default 00:00
  274. 27900:01:15 ok lobby suggested grid 7 for 1 player
  275. 28000:01:15 ok grid_auto default ON
  276. 28100:01:15 ok game.grid mirrors suggestion in lobby
  277. 28200:01:15 ok host is creator
  278. 28300:01:15 ok start alone: min_players
  279. 28400:01:15 ok 2 players
  280. 28500:01:15 ok non-host cannot start
  281. 28600:01:15 ok started
  282. 28700:01:15 ok auto grid for 2 players is 7
  283. 28800:01:15 ok start with 1 AP
  284. 28900:01:15 ok start with 3 lives
  285. 29000:01:15 ok start with range 2
  286. 29100:01:15 ok not overlapping
  287. 29200:01:15 ok next AP at next midnight: 2026-11-14 00:00:00
  288. 29300:01:15Engine: move, blocked, AP
  289. 29400:01:15 ok Alice has at least one move
  290. 29500:01:15 ok moved
  291. 29600:01:15 ok spent 1 AP
  292. 29700:01:15 ok move event
  293. 29800:01:15 ok move is a spend tick
  294. 29900:01:15 ok no AP: invalid_move
  295. 30000:01:15Engine: shoot and death and win
  296. 30100:01:15 ok Bob is in range 2 (actually dist 1)
  297. 30200:01:15 ok Bob has 2 lives
  298. 30300:01:15 ok Bob is dead
  299. 30400:01:15 ok game finished
  300. 30500:01:15 ok Alice wins
  301. 30600:01:15 ok death event
  302. 30700:01:15 ok win event
  303. 30800:01:15Engine: give AP and upgrade
  304. 30900:01:15 ok Alice spent 2
  305. 31000:01:15 ok Bob received 2
  306. 31100:01:15 ok bad_give
  307. 31200:01:15 ok range is now 3
  308. 31300:01:15 ok upgrade costs 1
  309. 31400:01:15Engine: out of range and occupied
  310. 31500:01:15 ok Bob at (5,5) is out of range 2 from (0,0)
  311. 31600:01:15 ok out_of_range
  312. 31700:01:15 ok cannot move onto Bob
  313. 31800:01:15Engine: surrender
  314. 31900:01:15 ok Bob surrendered
  315. 32000:01:15 ok flagged surrendered
  316. 32100:01:15 ok Alice wins after surrender
  317. 32200:01:15Engine: daily AP grant
  318. 32300:01:15 ok day is 1
  319. 32400:01:15 ok Alice got 1 AP
  320. 32500:01:15 ok Bob got 1 AP
  321. 32600:01:15 ok caught up to day 3, day=3
  322. 32700:01:15 ok 3 AP after 3 days (started 0): 3
  323. 32800:01:15Engine: jury
  324. 32900:01:15 ok still running with 2 alive
  325. 33000:01:15 ok c voted a
  326. 33100:01:15 ok d changed vote to b
  327. 33200:01:15 ok living cannot vote
  328. 33300:01:15 ok Alice (living) has no vote
  329. 33400:01:15 ok Charlie sees own vote
  330. 33500:01:15 ok votes not in present payload
  331. 33600:01:15 ok Alice got 1+1 (tie): 2
  332. 33700:01:15 ok Bob got 1+1 (tie): 2
  333. 33800:01:15 ok votes reset after distribution
  334. 33900:01:15 ok Alice unique jury winner: 2
  335. 34000:01:15 ok Bob only regular 1: 1
  336. 34100:01:15 ok jury off: cannot_vote
  337. 34200:01:15Engine: shrinking arena
  338. 34300:01:15 ok host-chosen 6×6
  339. 34400:01:15 ok shrink in 2 days (interval 2, day 0): 2
  340. 34500:01:15 ok day 1
  341. 34600:01:15 ok no shrink on day 1
  342. 34700:01:15 ok Alice still on (0,0)
  343. 34800:01:15 ok Alice still 3 lives
  344. 34900:01:15 ok shrink in 1 day
  345. 35000:01:15 ok day 2
  346. 35100:01:15 ok inset is 1
  347. 35200:01:15 ok Alice lost 1 life: 2
  348. 35300:01:15 ok Alice pushed inward to passable 1,1
  349. 35400:01:15 ok not onto Bob
  350. 35500:01:15 ok Bob unhurt in centre
  351. 35600:01:15 ok Alice got day-1 and day-2 AP after surviving shrink: 2
  352. 35700:01:15 ok legal move 1,2 is passable
  353. 35800:01:15 ok legal move 2,1 is passable
  354. 35900:01:15 ok does not shrink past max inset: 1
  355. 36000:01:15 ok no upcoming shrink at max
  356. 36100:01:15Engine: shrink kills and crush and draw
  357. 36200:01:15 ok Alice died on shrink (1 life)
  358. 36300:01:15 ok Bob died on shrink (1 life)
  359. 36400:01:15 ok finished
  360. 36500:01:15 ok draw when both die in the same shrink
  361. 36600:01:15Engine: notes and chat privacy
  362. 36700:01:15 ok Alice sees her note on Bob
  363. 36800:01:15 ok Bob does not see Alice’s note
  364. 36900:01:15 ok Alice sees chat
  365. 37000:01:15 ok Bob sees chat
  366. 37100:01:15Engine: modular rule flags
  367. 37200:01:15 ok jury "0" is false
  368. 37300:01:15 ok shrink "1" is true
  369. 37400:01:15 ok interval clamped to max 30: 30
  370. 37500:01:15 ok ceasefire "1" is true
  371. 37600:01:15Engine: cease-fire ranges and midnight wrap
  372. 37700:01:15 ok 2 valid ranges: 2
  373. 37800:01:15 ok sorted, first is 12:00
  374. 37900:01:15 ok wrap range kept
  375. 38000:01:15 ok 23:30 is cease-fire (wrap)
  376. 38100:01:15 ok ends at 06:00 next day: 2026-11-14 06:00
  377. 38200:01:15 ok Attack disabled during cease-fire
  378. 38300:01:15 ok legal.ceasefire true
  379. 38400:01:15 ok non-shoot actions still considered
  380. 38500:01:15 ok can still move during cease-fire
  381. 38600:01:15 ok error code ceasefire: ceasefire
  382. 38700:01:15 ok 06:00 exactly is not cease-fire (end exclusive)
  383. 38800:01:15 ok next cease-fire at 12:00: 12:00
  384. 38900:01:15 ok 12:30 is cease-fire
  385. 39000:01:15 ok ends 13:00: 13:00
  386. 39100:01:15 ok 15:00 is free
  387. 39200:01:15 ok until 22:00: 2026-11-14 22:00
  388. 39300:01:15 ok can shoot when not in cease-fire
  389. 39400:01:15 ok shot landed outside cease-fire
  390. 39500:01:15 ok 21:59 is free
  391. 39600:01:15 ok 60 seconds until cease-fire: 60
  392. 39700:01:15 ok 05:59 still cease-fire
  393. 39800:01:15 ok 60 seconds left in cease-fire: 60
  394. 39900:01:15Engine: cease-fire DST spring-forward (2026-03-29 02:00→03:00)
  395. 40000:01:15 ok 01:00 CEST-transition day is cease-fire
  396. 40100:01:15 ok ends 04:00: 2026-03-29 04:00
  397. 40200:01:15 ok spring-forward 01:00-04:00 is 2 real hours: 7200
  398. 40300:01:15 ok 03:00 (after the jump) is still cease-fire
  399. 40400:01:15 ok 1 hour left at 03:00: 3600
  400. 40500:01:15 ok 00:30 is free
  401. 40600:01:15 ok 30 min until 01:00: 1800
  402. 40700:01:15Engine: cease-fire DST fall-back (2026-10-25 03:00→02:00)
  403. 40800:01:15 ok 01:00 fall-back day is cease-fire
  404. 40900:01:15 ok ends 03:30: 2026-10-25 03:30
  405. 41000:01:15 ok fall-back 01:00-03:30 is 3.5 real hours: 12600
  406. 41100:01:15 ok first 02:15 (still DST) is cease-fire
  407. 41200:01:15 ok second 02:15 (CET) is still cease-fire
  408. 41300:01:15 ok 03:30 exactly is free (end exclusive)
  409. 41400:01:15Engine: cease-fire off or empty ranges
  410. 41500:01:15 ok rule off → no info (ranges ignored)
  411. 41600:01:15 ok on but empty ranges → treated as no cease-fire
  412. 41700:01:15Engine: overlapping ranges merge for countdown
  413. 41800:01:15 ok merged overlapping ends at 13:00: 13:00
  414. 41900:01:15Engine: visibility defaults and invalid values fall back to public
  415. 42000:01:15 ok bad vis_shots → public
  416. 42100:01:15 ok bad vis_gifts → public
  417. 42200:01:15 ok bad vis_ap → public
  418. 42300:01:15 ok bad vis_range → public
  419. 42400:01:15 ok bad vis_lives → public
  420. 42500:01:15 ok accepts elim_known_target
  421. 42600:01:15 ok accepts anonymous
  422. 42700:01:15 ok accepts vis_ap within_range
  423. 42800:01:15 ok accepts known_in_range
  424. 42900:01:15 ok accepts vis_lives within_range
  425. 43000:01:15 ok accepts manual grid 14
  426. 43100:01:15 ok still accepts hidden
  427. 43200:01:15 ok unknown vis_ap/lives values → public
  428. 43300:01:15Engine: vis shots — public (everyone sees, including lives_left when lives public)
  429. 43400:01:15 ok shooter sees public shot
  430. 43500:01:15 ok target sees public shot
  431. 43600:01:15 ok third party sees public shot
  432. 43700:01:15 ok third party sees shooter id
  433. 43800:01:15 ok public lives_left on shot
  434. 43900:01:15 ok damage is 1
  435. 44000:01:15 ok public lives in state
  436. 44100:01:15Engine: vis shots — elim_public (non-elim hidden from third party, visible to target)
  437. 44200:01:15 ok shooter sees non-elim
  438. 44300:01:15 ok target sees non-elim under elim_public
  439. 44400:01:15 ok third party does not see non-elim
  440. 44500:01:15 ok no death on non-elim
  441. 44600:01:15 ok third party sees only the eliminating shot: 1
  442. 44700:01:15 ok the visible shot is the kill
  443. 44800:01:15 ok third party sees death
  444. 44900:01:15 ok elim_public death includes killer
  445. 45000:01:15 ok target sees killer
  446. 45100:01:15 ok death/alive is always public
  447. 45200:01:15Engine: vis shots — known_target (others never see the shot, death without by)
  448. 45300:01:15 ok shooter sees known_target shot
  449. 45400:01:15 ok target sees known_target shot
  450. 45500:01:15 ok third party does not see known_target shot
  451. 45600:01:15 ok third party still sees that B died
  452. 45700:01:15 ok killer stripped for third party under known_target
  453. 45800:01:15 ok target still sees who shot them
  454. 45900:01:15Engine: vis shots — elim_known_target (non-elim hidden even from target)
  455. 46000:01:15 ok shooter sees non-elim under elim_known_target
  456. 46100:01:15 ok target does NOT see non-elim shot (must deduce)
  457. 46200:01:15 ok third party does not see non-elim
  458. 46300:01:15 ok target still sees own lives drop
  459. 46400:01:15 ok lives still public in this game (default)
  460. 46500:01:15 ok target sees only the eliminating shot
  461. 46600:01:15 ok elim shot names the shooter for the target
  462. 46700:01:15 ok third party never sees shots under elim_known_target
  463. 46800:01:15 ok third party death has no by
  464. 46900:01:15Engine: vis shots + hidden lives — lives_left stripped except for the target
  465. 47000:01:15 ok shooter does not get target lives_left
  466. 47100:01:15 ok target sees own lives_left
  467. 47200:01:15 ok third party does not get lives_left
  468. 47300:01:15 ok shooter still sees damage 1
  469. 47400:01:15 ok own lives always visible
  470. 47500:01:15 ok other lives hidden from shooter
  471. 47600:01:15 ok other lives hidden from third party
  472. 47700:01:15 ok target sees own lives
  473. 47800:01:15 ok alive flag still present when lives hidden
  474. 47900:01:15Engine: vis gifts — public, known_recipient, anonymous
  475. 48000:01:15 ok public gift visible to third party with giver and amount
  476. 48100:01:15 ok giver sees own gift
  477. 48200:01:15 ok recipient sees giver
  478. 48300:01:15 ok third party does not see known_recipient gift
  479. 48400:01:15 ok giver sees full anonymous gift in their own log
  480. 48500:01:15 ok recipient sees an anonymous gift event
  481. 48600:01:15 ok event marked anonymous
  482. 48700:01:15 ok giver id stripped for recipient
  483. 48800:01:15 ok recipient sees the AP amount
  484. 48900:01:15 ok recipient is named as target
  485. 49000:01:15 ok third party does not see anonymous gift
  486. 49100:01:15 ok recipient AP actually increased
  487. 49200:01:15 ok stored event still has the giver (present does not mutate)
  488. 49300:01:15 ok sanity
  489. 49400:01:15 ok clone is independent of stored event
  490. 49500:01:15Engine: vis AP totals hidden
  491. 49600:01:15 ok own AP visible when hidden rule is on
  492. 49700:01:15 ok other AP hidden
  493. 49800:01:15 ok third party does not see A’s AP
  494. 49900:01:15 ok daily event present
  495. 50000:01:15 ok hidden AP: only own grant in daily event: {"a":1}
  496. 50100:01:15 ok jury vote counts stripped
  497. 50200:01:15Engine: vis range — hidden and known_in_range
  498. 50300:01:15 ok own range after upgrade
  499. 50400:01:15 ok other range hidden
  500. 50500:01:15 ok upgrader sees own upgrade
  501. 50600:01:15 ok third party does not see hidden upgrade
  502. 50700:01:15 ok B is within A’s range, sees A’s range
  503. 50800:01:15 ok A is within B’s range, sees B’s range
  504. 50900:01:15 ok C is outside A’s range (dist 3 > 2)
  505. 51000:01:15 ok A is outside C’s range (dist 3 > 2)
  506. 51100:01:15 ok C always sees own range
  507. 51200:01:15 ok after upgrade, C is within A’s range and sees it
  508. 51300:01:15 ok C now also sees the upgrade event
  509. 51400:01:15 ok A is still outside C’s range 2
  510. 51500:01:15Engine: movement is always public, even with everything hidden
  511. 51600:01:15 ok move is public
  512. 51700:01:15 ok move names the player and destination
  513. 51800:01:15 ok new position is in the public state
  514. 51900:01:15 ok AP still hidden after the move
  515. 52000:01:15 ok lives still hidden
  516. 52100:01:15 ok range still hidden
  517. 52200:01:15Engine: present() does not leak hidden keys with real values
  518. 52300:01:15 ok JSON-facing ap is null
  519. 52400:01:15 ok JSON-facing lives is null
  520. 52500:01:15 ok JSON-facing range is null
  521. 52600:01:15 ok no numeric secrets for a
  522. 52700:01:15 ok no numeric secrets for b
  523. 52800:01:15Engine: nextDistribution (per-lobby AP time) and DST
  524. 52900:01:15 ok 14:00 → today 15:00: 2026-11-14 15:00:00
  525. 53000:01:15 ok exactly 15:00 → tomorrow 15:00: 2026-11-15 15:00:00
  526. 53100:01:15 ok 16:00 → tomorrow 15:00: 2026-11-15 15:00:00
  527. 53200:01:15 ok 00:00 path equals nextMidnight
  528. 53300:01:15 ok ap_time normalised to HH:MM
  529. 53400:01:15 ok bad ap_time → 00:00
  530. 53500:01:15 ok 24:00 invalid → 00:00
  531. 53600:01:15 ok DST spring: 02:30 candidate is strictly after 01:30
  532. 53700:01:15 ok DST spring: still that calendar day: 2026-03-29 03:30:00 CEST
  533. 53800:01:15 ok DST spring: 04:00 exact: 2026-03-29 04:00:00
  534. 53900:01:15 ok DST fall-back: 02:30 that day: 2026-10-25 02:30:00 CEST
  535. 54000:01:15Engine: AP at a non-midnight lobby time
  536. 54100:01:15 ok start schedules 15:00
  537. 54200:01:15 ok day increments at 15:00
  538. 54300:01:15 ok AP granted at 15:00
  539. 54400:01:15 ok one second before 15:00: no grant
  540. 54500:01:15Engine: AP loot default off; on only for eliminating shots
  541. 54600:01:15 ok B is dead
  542. 54700:01:15 ok dead B has 0 AP
  543. 54800:01:15 ok loot off: A spent 1, did not receive B’s 4 (has 2)
  544. 54900:01:15 ok loot off: no loot field on the kill shot
  545. 55000:01:15 ok loot on: B dead, AP zeroed
  546. 55100:01:15 ok loot on: A spent 1 (3→2) then looted 4 → 6: 6
  547. 55200:01:15 ok shooter sees loot amount
  548. 55300:01:15 ok public AP: third party sees loot
  549. 55400:01:15 ok shooter sees loot even if AP totals hidden
  550. 55500:01:15 ok third party does not see loot amount when AP is hidden
  551. 55600:01:15 ok shooter sees own AP including loot
  552. 55700:01:15 ok third party still does not see A’s total
  553. 55800:01:15 ok non-elim: no loot
  554. 55900:01:15 ok non-elim: B keeps AP
  555. 56000:01:15 ok B surrendered
  556. 56100:01:15 ok surrender does not transfer AP
  557. 56200:01:15 ok surrendered AP is zeroed, not looted
  558. 56300:01:15Engine: vis lives+AP within_range uses the VIEWER's range
  559. 56400:01:15 ok A always sees own lives/AP
  560. 56500:01:15 ok A sees B (dist 1 ≤ A’s range 2)
  561. 56600:01:15 ok A does not see C (dist 3 > A’s range 2)
  562. 56700:01:15 ok B sees A (dist 1 ≤ B’s range 2)
  563. 56800:01:15 ok B does not see C (dist 3 > 2)
  564. 56900:01:15 ok C sees neither A
  565. 57000:01:15 ok C sees neither B
  566. 57100:01:15 ok C sees own lives
  567. 57200:01:15 ok within_range lives/AP: A still cannot see C (C is outside A’s range)
  568. 57300:01:15 ok within_range lives/AP: C can see A (A is inside C’s range 4)
  569. 57400:01:15 ok known_in_range: A CAN see C’s range (A is inside C’s range 4) — opposite of lives/AP
  570. 57500:01:15 ok known_in_range: C cannot see A’s range (C is outside A’s range 2)
  571. 57600:01:15 ok A range is 3
  572. 57700:01:15 ok after A upgrades to 3, A sees C’s lives/AP
  573. 57800:01:15 ok A sees lives_left (B in A’s range)
  574. 57900:01:15 ok B sees own lives_left
  575. 58000:01:15 ok C does not see lives_left (B outside C’s range)
  576. 58100:01:15 ok C still sees damage on a public shot
  577. 58200:01:15 ok C does not see B’s lives in state
  578. 58300:01:15 ok A’s daily grants: own + B, not C: {"a":1,"b":1}
  579. 58400:01:15 ok C’s daily grants: only own: {"c":1}
  580. 58500:01:15 ok A sees loot on eliminating shot
  581. 58600:01:15 ok C sees the public kill shot
  582. 58700:01:15 ok C does not see loot (A is outside C’s range)
  583. 58800:01:15 ok shrink event present for A
  584. 58900:01:15 ok stored shrink has hurt list
  585. 59000:01:15 ok A’s filtered hurt id a is someone whose lives A may see
  586. 59100:01:15Engine: lobby grid option — auto suggestion and manual lock
  587. 59200:01:15 ok new lobby 7 and auto
  588. 59300:01:15 ok 2 players still 7
  589. 59400:01:15 ok 3rd player bumps to 8 (ceil(1.5)=2)
  590. 59500:01:15 ok 4 players stay 8
  591. 59600:01:15 ok 5th player bumps to 9
  592. 59700:01:15 ok 10 players
  593. 59800:01:15 ok 10 players → 11
  594. 59900:01:15 ok 11th player bumps suggestion to 12
  595. 60000:01:15 ok leave drops suggestion back to 11
  596. 60100:01:15 ok manual 14
  597. 60200:01:15 ok 16 players
  598. 60300:01:15 ok manual 14 stays at 16 players (suggestion would be 17)
  599. 60400:01:15 ok starts on host’s 14×14
  600. 60500:01:15 ok all 16 placed
  601. 60600:01:15 ok placed in bounds
  602. 60700:01:15 ok unique start 7,1
  603. 60800:01:15 ok placed in bounds
  604. 60900:01:15 ok unique start 9,1
  605. 61000:01:15 ok placed in bounds
  606. 61100:01:15 ok unique start 10,3
  607. 61200:01:15 ok placed in bounds
  608. 61300:01:15 ok unique start 12,4
  609. 61400:01:15 ok placed in bounds
  610. 61500:01:15 ok unique start 12,7
  611. 61600:01:15 ok placed in bounds
  612. 61700:01:15 ok unique start 12,9
  613. 61800:01:15 ok placed in bounds
  614. 61900:01:15 ok unique start 10,10
  615. 62000:01:15 ok placed in bounds
  616. 62100:01:15 ok unique start 9,12
  617. 62200:01:15 ok placed in bounds
  618. 62300:01:15 ok unique start 7,12
  619. 62400:01:15 ok placed in bounds
  620. 62500:01:15 ok unique start 4,12
  621. 62600:01:15 ok placed in bounds
  622. 62700:01:15 ok unique start 3,10
  623. 62800:01:15 ok placed in bounds
  624. 62900:01:15 ok unique start 1,9
  625. 63000:01:15 ok placed in bounds
  626. 63100:01:15 ok unique start 1,7
  627. 63200:01:15 ok placed in bounds
  628. 63300:01:15 ok unique start 1,4
  629. 63400:01:15 ok placed in bounds
  630. 63500:01:15 ok unique start 3,3
  631. 63600:01:15 ok placed in bounds
  632. 63700:01:15 ok unique start 4,1
  633. 63800:01:15 ok host may start a 6×6
  634. 63900:01:15 ok auto start uses suggested 7 for 2 players
  635. 64000:01:15Engine: rules time zone (host's IANA zone)
  636. 64100:01:15 ok tz default Europe/Amsterdam
  637. 64200:01:15 ok accepts America/New_York
  638. 64300:01:15 ok unknown zone → Amsterdam
  639. 64400:01:15 ok raw offset rejected (no DST rules)
  640. 64500:01:15 ok UTC accepted
  641. 64600:01:15 ok NY 09:00 in winter = 14:00 UTC: 2026-11-14 14:00
  642. 64700:01:15 ok NY 09:00 in summer (DST) = 13:00 UTC: 2026-07-14 13:00
  643. 64800:01:15 ok NY spring-forward: 09:00→09:00 is 23 real hours
  644. 64900:01:15 ok Tokyo 08:00 = 23:00 UTC
  645. 65000:01:15 ok cease-fire active at 23:30 Tokyo
  646. 65100:01:15 ok not active at 23:30 Amsterdam (07:30 Tokyo)
  647. 65200:01:15 ok Tokyo cease-fire ends 06:00 next day (midnight wrap)
  648. 65300:01:15 ok present() reports the rules zone
  649. 65400:01:15Engine: no hearts, no buying lives (options do not exist)
  650. 65500:01:15 ok hearts / buy-lives are not accepted rule keys
  651. 65600:01:15
  652. 65700:01:15Engine passed: 387 Failed: 0
  653. 65800:01:15Store: lobby, join, start, actions, sync
  654. 65900:01:15 ok create lobby
  655. 66000:01:15 ok status lobby
  656. 66100:01:15 ok 6-char code: 6ZPA9M
  657. 66200:01:15 ok jury on
  658. 66300:01:15 ok shrink off
  659. 66400:01:15 ok ceasefire off
  660. 66500:01:15 ok start alone refused
  661. 66600:01:15 ok Bob joined
  662. 66700:01:15 ok same lobby
  663. 66800:01:15 ok re-join is idempotent
  664. 66900:01:15 ok non-host refused
  665. 67000:01:15 ok non-host setRules refused: not_host
  666. 67100:01:15 ok not_host maps to HTTP 403
  667. 67200:01:15 ok rules unchanged after refused non-host update
  668. 67300:01:15 ok other status codes unchanged
  669. 67400:01:15 ok host set shrink on
  670. 67500:01:15 ok interval 3
  671. 67600:01:15 ok ceasefire on
  672. 67700:01:15 ok one range stored
  673. 67800:01:15 ok started
  674. 67900:01:15 ok 1 AP at start
  675. 68000:01:15 ok view running
  676. 68100:01:15 ok legal moves in view
  677. 68200:01:15 ok has version
  678. 68300:01:15 ok has server_now
  679. 68400:01:15 ok timezone
  680. 68500:01:15 ok unchanged sync
  681. 68600:01:15 ok no full state when unchanged
  682. 68700:01:15 ok lightweight fields present
  683. 68800:01:15 ok Alice can move
  684. 68900:01:15 ok AP spent
  685. 69000:01:15 ok Bob sees a change
  686. 69100:01:15 ok full state on change
  687. 69200:01:15 ok Bob sees Alice’s new position
  688. 69300:01:15 ok Alice sees her note
  689. 69400:01:15 ok Bob does not
  690. 69500:01:15 ok Alice sees message
  691. 69600:01:15 ok Bob sees message
  692. 69700:01:15 ok join after start refused
  693. 69800:01:15 ok locale stored
  694. 69900:01:15 ok locale read
  695. 70000:01:15 ok zh-Hans normalised to zh
  696. 70100:01:15 ok listed running game
  697. 70200:01:15 ok Dan wins after Cara surrenders
  698. 70300:01:15 ok unknown_code
  699. 70400:01:15 ok bad shoot refused: out_of_range
  700. 70500:01:15 ok AP unchanged after refused action (rollback)
  701. 70600:01:15safeNext
  702. 70700:01:15 ok null next
  703. 70800:01:15 ok empty next
  704. 70900:01:15 ok plain path
  705. 71000:01:15 ok join query with =
  706. 71100:01:15 ok ampersand
  707. 71200:01:15 ok hash fragment
  708. 71300:01:15 ok rejects scheme
  709. 71400:01:15 ok rejects protocol-relative
  710. 71500:01:15 ok rejects absolute path
  711. 71600:01:15 ok rejects backslash
  712. 71700:01:15
  713. 71800:01:15Total passed: 444 Failed: 0