BlueGit

projects-timfalken-com allianties

unit_tests

Pipelines Pipeline Editor

Passed Started 3 days ago by timfa

Raw

Running on Steve

Log timestamps in UTC.

  1. 117:16:55Using docker image node:20-bookworm ...
  2. 217:16:55Using docker image sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 for node:20-bookworm with digest node@sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 ...
  1. 317:16:55Running on Steve via BlueGit...
  2. 417:16:55Working directory: /workspace
  3. 517:16:55Pipeline #714, job #2765
  1. 617:16:57debconf: delaying package configuration, since apt-utils is not installed
  2. 717:17:02TAP version 13
  3. 817:17:02# Subtest: Avatar helpers
  4. 917:17:02 # Subtest: makes initials from names
  5. 1017:17:02 ok 1 - makes initials from names
  6. 1117:17:02 ---
  7. 1217:17:02 duration_ms: 0.950282
  8. 1317:17:02 ...
  9. 1417:17:02 # Subtest: rejects empty, whitespace, script and failed URLs
  10. 1517:17:02 ok 2 - rejects empty, whitespace, script and failed URLs
  11. 1617:17:02 ---
  12. 1717:17:02 duration_ms: 0.490935
  13. 1817:17:02 ...
  14. 1917:17:02 # Subtest: picks readable text colour
  15. 2017:17:02 ok 3 - picks readable text colour
  16. 2117:17:02 ---
  17. 2217:17:02 duration_ms: 0.271742
  18. 2317:17:02 ...
  19. 2417:17:02 1..3
  20. 2517:17:02ok 1 - Avatar helpers
  21. 2617:17:02 ---
  22. 2717:17:02 duration_ms: 2.639095
  23. 2817:17:02 type: 'suite'
  24. 2917:17:02 ...
  25. 3017:17:02# Subtest: Avatar.piece
  26. 3117:17:02 # Subtest: without avatar: coloured circle with initials, no img
  27. 3217:17:02 ok 1 - without avatar: coloured circle with initials, no img
  28. 3317:17:02 ---
  29. 3417:17:02 duration_ms: 0.642431
  30. 3517:17:02 ...
  31. 3617:17:02 # Subtest: image error removes only the img; the token itself stays and keeps initials
  32. 3717:17:02 ok 2 - image error removes only the img; the token itself stays and keeps initials
  33. 3817:17:02 ---
  34. 3917:17:02 duration_ms: 1.047325
  35. 4017:17:02 ...
  36. 4117:17:02 # Subtest: loaded image hides initials via has-img; remembered across renders
  37. 4217:17:02 ok 3 - loaded image hides initials via has-img; remembered across renders
  38. 4317:17:02 ---
  39. 4417:17:02 duration_ms: 0.36601
  40. 4517:17:02 ...
  41. 4617:17:02 # Subtest: dead players keep the dead style; missing colour gets a deterministic one
  42. 4717:17:02 ok 4 - dead players keep the dead style; missing colour gets a deterministic one
  43. 4817:17:02 ---
  44. 4917:17:02 duration_ms: 0.342786
  45. 5017:17:02 ...
  46. 5117:17:02 1..4
  47. 5217:17:02ok 2 - Avatar.piece
  48. 5317:17:02 ---
  49. 5417:17:02 duration_ms: 2.672698
  50. 5517:17:02 type: 'suite'
  51. 5617:17:02 ...
  52. 5717:17:02# Subtest: deploy_guard
  53. 5817:17:02 # Subtest: expands $timftproot and ${timftproot} and collapses double slashes
  54. 5917:17:02 ok 1 - expands $timftproot and ${timftproot} and collapses double slashes
  55. 6017:17:02 ---
  56. 6117:17:02 duration_ms: 48.074907
  57. 6217:17:02 ...
  58. 6317:17:02 # Subtest: refuses the FTP root, a missing secret, and a non-allianties leaf
  59. 6417:17:02 ok 2 - refuses the FTP root, a missing secret, and a non-allianties leaf
  60. 6517:17:02 ---
  61. 6617:17:02 duration_ms: 41.995767
  62. 6717:17:02 ...
  63. 6817:17:02 # Subtest: the CLI exits 0 for a good path and does not print the path
  64. 6917:17:02 ok 3 - the CLI exits 0 for a good path and does not print the path
  65. 7017:17:02 ---
  66. 7117:17:02 duration_ms: 13.707249
  67. 7217:17:02 ...
  68. 7317:17:02 1..3
  69. 7417:17:02ok 3 - deploy_guard
  70. 7517:17:02 ---
  71. 7617:17:02 duration_ms: 104.937319
  72. 7717:17:02 type: 'suite'
  73. 7817:17:02 ...
  74. 7917:17:02# Subtest: assert_safe_target
  75. 8017:17:02 # Subtest: allows a new, empty, previous, or leftover-files folder and only logs foreign names
  76. 8117:17:02 ok 1 - allows a new, empty, previous, or leftover-files folder and only logs foreign names
  77. 8217:17:02 ---
  78. 8317:17:02 duration_ms: 25.457962
  79. 8417:17:02 ...
  80. 8517:17:02 # Subtest: the FTP mirror never deletes, never uploads favicon.ico, and leaves data/ alone
  81. 8617:17:02 ok 2 - the FTP mirror never deletes, never uploads favicon.ico, and leaves data/ alone
  82. 8717:17:02 ---
  83. 8817:17:02 duration_ms: 23.348324
  84. 8917:17:02 ...
  85. 9017:17:02 1..2
  86. 9117:17:02ok 4 - assert_safe_target
  87. 9217:17:02 ---
  88. 9317:17:02 duration_ms: 49.011873
  89. 9417:17:02 type: 'suite'
  90. 9517:17:02 ...
  91. 9617:17:02# Subtest: auth_config_php
  92. 9717:17:02 # Subtest: is covered by ci/test_deploy_auth.py (PHP escaping, empty secret, no leak in lftp)
  93. 9817:17:02 ok 1 - is covered by ci/test_deploy_auth.py (PHP escaping, empty secret, no leak in lftp)
  94. 9917:17:02 ---
  95. 10017:17:02 duration_ms: 45.984787
  96. 10117:17:02 ...
  97. 10217:17:02 1..1
  98. 10317:17:02ok 5 - auth_config_php
  99. 10417:17:02 ---
  100. 10517:17:02 duration_ms: 46.266618
  101. 10617:17:02 type: 'suite'
  102. 10717:17:02 ...
  103. 10817:17:02# Subtest: i18n catalog
  104. 10917:17:02 # Subtest: lists every supported locale
  105. 11017:17:02 ok 1 - lists every supported locale
  106. 11117:17:02 ---
  107. 11217:17:02 duration_ms: 1.103801
  108. 11317:17:02 ...
  109. 11417:17:02 # Subtest: has the same non-empty keys in every language
  110. 11517:17:02 ok 2 - has the same non-empty keys in every language
  111. 11617:17:02 ---
  112. 11717:17:02 duration_ms: 1.991034
  113. 11817:17:02 ...
  114. 11917:17:02 # Subtest: keeps English placeholders in every translation
  115. 12017:17:02 ok 3 - keeps English placeholders in every translation
  116. 12117:17:02 ---
  117. 12217:17:02 duration_ms: 3.638809
  118. 12317:17:02 ...
  119. 12417:17:02 # Subtest: never translates the game name Allianties
  120. 12517:17:02 ok 4 - never translates the game name Allianties
  121. 12617:17:02 ---
  122. 12717:17:02 duration_ms: 0.247476
  123. 12817:17:02 ...
  124. 12917:17:02 # Subtest: maps every known server error code
  125. 13017:17:02 ok 5 - maps every known server error code
  126. 13117:17:02 ---
  127. 13217:17:02 duration_ms: 0.18032
  128. 13317:17:02 ...
  129. 13417:17:02 1..5
  130. 13517:17:02ok 6 - i18n catalog
  131. 13617:17:02 ---
  132. 13717:17:02 duration_ms: 8.212342
  133. 13817:17:02 type: 'suite'
  134. 13917:17:02 ...
  135. 14017:17:02# Subtest: Rules grid and Chebyshev
  136. 14117:17:02 # Subtest: suggests max(6 + ceil(n/2), n + 1), capped at 24
  137. 14217:17:02 ok 1 - suggests max(6 + ceil(n/2), n + 1), capped at 24
  138. 14317:17:02 ---
  139. 14417:17:02 duration_ms: 0.693006
  140. 14517:17:02 ...
  141. 14617:17:02 # Subtest: uses Chebyshev distance (diagonals included)
  142. 14717:17:02 ok 2 - uses Chebyshev distance (diagonals included)
  143. 14817:17:02 ---
  144. 14917:17:02 duration_ms: 0.166334
  145. 15017:17:02 ...
  146. 15117:17:02 # Subtest: passable accounts for arena inset
  147. 15217:17:02 ok 3 - passable accounts for arena inset
  148. 15317:17:02 ---
  149. 15417:17:02 duration_ms: 0.170812
  150. 15517:17:02 ...
  151. 15617:17:02 1..3
  152. 15717:17:02ok 7 - Rules grid and Chebyshev
  153. 15817:17:02 ---
  154. 15917:17:02 duration_ms: 1.932753
  155. 16017:17:02 type: 'suite'
  156. 16117:17:02 ...
  157. 16217:17:02# Subtest: Rules cease-fire, midnight wrap and DST
  158. 16317:17:02 # Subtest: treats 23:30 as cease-fire wrapping to 06:00 next day
  159. 16417:17:02 ok 1 - treats 23:30 as cease-fire wrapping to 06:00 next day
  160. 16517:17:02 ---
  161. 16617:17:02 duration_ms: 17.719864
  162. 16717:17:02 ...
  163. 16817:17:02 # Subtest: treats the end timestamp as exclusive
  164. 16917:17:02 ok 2 - treats the end timestamp as exclusive
  165. 17017:17:02 ---
  166. 17117:17:02 duration_ms: 2.154411
  167. 17217:17:02 ...
  168. 17317:17:02 # Subtest: handles a second daytime range and countdown seconds
  169. 17417:17:02 ok 3 - handles a second daytime range and countdown seconds
  170. 17517:17:02 ---
  171. 17617:17:02 duration_ms: 2.601544
  172. 17717:17:02 ...
  173. 17817:17:02 # Subtest: shortens 01:00–04:00 across the 2026 spring-forward to 2 real hours
  174. 17917:17:02 ok 4 - shortens 01:00–04:00 across the 2026 spring-forward to 2 real hours
  175. 18017:17:02 ---
  176. 18117:17:02 duration_ms: 1.560562
  177. 18217:17:02 ...
  178. 18317:17:02 # Subtest: lengthens 01:00–03:30 across the 2026 fall-back to 3.5 real hours
  179. 18417:17:02 ok 5 - lengthens 01:00–03:30 across the 2026 fall-back to 3.5 real hours
  180. 18517:17:02 ---
  181. 18617:17:02 duration_ms: 1.802588
  182. 18717:17:02 ...
  183. 18817:17:02 # Subtest: is inactive when the rule is off or ranges are empty
  184. 18917:17:02 ok 6 - is inactive when the rule is off or ranges are empty
  185. 19017:17:03 ---
  186. 19117:17:03 duration_ms: 0.285158
  187. 19217:17:03 ...
  188. 19317:17:03 # Subtest: merges overlapping ranges for the countdown
  189. 19417:17:03 ok 7 - merges overlapping ranges for the countdown
  190. 19517:17:03 ---
  191. 19617:17:03 duration_ms: 0.940633
  192. 19717:17:03 ...
  193. 19817:17:03 # Subtest: formats HH:MM:SS countdowns
  194. 19917:17:03 ok 8 - formats HH:MM:SS countdowns
  195. 20017:17:03 ---
  196. 20117:17:03 duration_ms: 0.156134
  197. 20217:17:03 ...
  198. 20317:17:03 1..8
  199. 20417:17:03ok 8 - Rules cease-fire, midnight wrap and DST
  200. 20517:17:03 ---
  201. 20617:17:03 duration_ms: 27.722871
  202. 20717:17:03 type: 'suite'
  203. 20817:17:03 ...
  204. 20917:17:03# Subtest: Rules timelineIndex (nearest event)
  205. 21017:17:03 # Subtest: returns 0 when there are no spends
  206. 21117:17:03 ok 1 - returns 0 when there are no spends
  207. 21217:17:03 ---
  208. 21317:17:03 duration_ms: 0.161485
  209. 21417:17:03 ...
  210. 21517:17:03 # Subtest: maps 0 to the start and 1 to live (after the last spend)
  211. 21617:17:03 ok 2 - maps 0 to the start and 1 to live (after the last spend)
  212. 21717:17:03 ---
  213. 21817:17:03 duration_ms: 0.309574
  214. 21917:17:03 ...
  215. 22017:17:03 # Subtest: jumps to the nearest event along the bar
  216. 22117:17:03 ok 3 - jumps to the nearest event along the bar
  217. 22217:17:03 ---
  218. 22317:17:03 duration_ms: 0.125497
  219. 22417:17:03 ...
  220. 22517:17:03 1..3
  221. 22617:17:03ok 9 - Rules timelineIndex (nearest event)
  222. 22717:17:03 ---
  223. 22817:17:03 duration_ms: 0.769771
  224. 22917:17:03 type: 'suite'
  225. 23017:17:03 ...
  226. 23117:17:03# Subtest: Rules.angleToMinutes (cease-fire clock)
  227. 23217:17:03 # Subtest: maps the dial with 0 at the top, clockwise, snapped to 15 min
  228. 23317:17:03 ok 1 - maps the dial with 0 at the top, clockwise, snapped to 15 min
  229. 23417:17:03 ---
  230. 23517:17:03 duration_ms: 0.155554
  231. 23617:17:03 ...
  232. 23717:17:03 1..1
  233. 23817:17:03ok 10 - Rules.angleToMinutes (cease-fire clock)
  234. 23917:17:03 ---
  235. 24017:17:03 duration_ms: 0.276401
  236. 24117:17:03 type: 'suite'
  237. 24217:17:03 ...
  238. 24317:17:03# Subtest: Rules time zones (host zone → viewer local)
  239. 24417:17:03 # Subtest: converts wall-clock times between zones, DST-aware
  240. 24517:17:03 ok 1 - converts wall-clock times between zones, DST-aware
  241. 24617:17:03 ---
  242. 24717:17:03 duration_ms: 1.191647
  243. 24817:17:03 ...
  244. 24917:17:03 # Subtest: uses the offset of the reference day around a DST switch
  245. 25017:17:03 ok 2 - uses the offset of the reference day around a DST switch
  246. 25117:17:03 ---
  247. 25217:17:03 duration_ms: 0.250713
  248. 25317:17:03 ...
  249. 25417:17:03 # Subtest: converts rules for a viewer; ranges may wrap midnight after conversion
  250. 25517:17:03 ok 3 - converts rules for a viewer; ranges may wrap midnight after conversion
  251. 25617:17:03 ---
  252. 25717:17:03 duration_ms: 1.011086
  253. 25817:17:03 ...
  254. 25917:17:03 # Subtest: computes the cease-fire in the rules zone
  255. 26017:17:03 ok 4 - computes the cease-fire in the rules zone
  256. 26117:17:03 ---
  257. 26217:17:03 duration_ms: 0.565636
  258. 26317:17:03 ...
  259. 26417:17:03 1..4
  260. 26517:17:03ok 11 - Rules time zones (host zone → viewer local)
  261. 26617:17:03 ---
  262. 26717:17:03 duration_ms: 3.164665
  263. 26817:17:03 type: 'suite'
  264. 26917:17:03 ...
  265. 27017:17:031..11
  266. 27117:17:03# tests 37
  267. 27217:17:03# suites 11
  268. 27317:17:03# pass 37
  269. 27417:17:03# fail 0
  270. 27517:17:03# cancelled 0
  271. 27617:17:03# skipped 0
  272. 27717:17:03# todo 0
  273. 27817:17:03# duration_ms 245.113037
  274. 27917:17:03auth-config ok
  275. 28017:17:03Engine: grid suggestion and placement
  276. 28117:17:03 ok 1 player → 7 (max(6+ceil(0.5), 2) = max(7, 2))
  277. 28217:17:03 ok 2 players → 7 (max(6+1, 3))
  278. 28317:17:03 ok 3 players → 8 (ceil(1.5)=2, max(8, 4))
  279. 28417:17:03 ok 6 players → 9 (max(6+3, 7))
  280. 28517:17:03 ok 9 players → 11 (ceil(4.5)=5, max(11, 10))
  281. 28617:17:03 ok 10 players → 11 (max(6+5, 11))
  282. 28717:17:03 ok 14 players → 15 (max(6+7, 15))
  283. 28817:17:03 ok 16 players → 17
  284. 28917:17:03 ok capped at MAX_GRID 24
  285. 29017:17:03 ok gridSize aliases suggestedGrid
  286. 29117:17:03 ok clamp below min → 6
  287. 29217:17:03 ok clamp above max → 24
  288. 29317:17:03 ok clamp mid unchanged
  289. 29417:17:03 ok 6×6 fits 2
  290. 29517:17:03 ok 6×6 has enough tiles for 16
  291. 29617:17:03 ok below MIN_GRID does not fit
  292. 29717:17:03 ok above MAX_GRID does not fit
  293. 29817:17:03 ok 6×6 max inset 1 (leaves 4×4, min arena 3)
  294. 29917:17:03 ok 7×7 max inset 2 (leaves 3×3)
  295. 30017:17:03 ok 4 starting positions
  296. 30117:17:03 ok starting positions are unique
  297. 30217:17:03 ok start in bounds 3,1
  298. 30317:17:03 ok start in bounds 4,3
  299. 30417:17:03 ok start in bounds 3,4
  300. 30517:17:03 ok start in bounds 1,3
  301. 30617:17:03Engine: Chebyshev range
  302. 30717:17:03 ok diagonal 2 is range 2
  303. 30817:17:03 ok orthogonal 2 is range 2
  304. 30917:17:03 ok same tile is 0
  305. 31017:17:03Engine: midnight Amsterdam
  306. 31117:17:03 ok next midnight after 23:30 is 00:00 next day: 2026-11-14 00:00:00
  307. 31217:17:03 ok at exactly 00:00, next is tomorrow
  308. 31317:17:03 ok DST: next midnight still 00:00: 2026-03-29 00:00:00
  309. 31417:17:03Engine: lobby and start
  310. 31517:17:03 ok new lobby
  311. 31617:17:03 ok jury default ON
  312. 31717:17:03 ok shrink default OFF
  313. 31817:17:03 ok shrink interval default 7
  314. 31917:17:03 ok ceasefire default OFF
  315. 32017:17:03 ok ceasefire ranges empty by default
  316. 32117:17:03 ok vis_shots default public
  317. 32217:17:03 ok vis_gifts default public
  318. 32317:17:03 ok vis_ap default public
  319. 32417:17:03 ok vis_range default public
  320. 32517:17:03 ok vis_lives default public
  321. 32617:17:03 ok ap_loot default OFF
  322. 32717:17:03 ok ap_time default 00:00
  323. 32817:17:03 ok lobby suggested grid 7 for 1 player
  324. 32917:17:03 ok grid_auto default ON
  325. 33017:17:03 ok game.grid mirrors suggestion in lobby
  326. 33117:17:03 ok host is creator
  327. 33217:17:03 ok start alone: min_players
  328. 33317:17:03 ok 2 players
  329. 33417:17:03 ok non-host cannot start
  330. 33517:17:03 ok started
  331. 33617:17:03 ok auto grid for 2 players is 7
  332. 33717:17:03 ok start with 1 AP
  333. 33817:17:03 ok start with 3 lives
  334. 33917:17:03 ok start with range 2
  335. 34017:17:03 ok not overlapping
  336. 34117:17:03 ok next AP at next midnight: 2026-11-14 00:00:00
  337. 34217:17:03Engine: move, blocked, AP
  338. 34317:17:03 ok Alice has at least one move
  339. 34417:17:03 ok moved
  340. 34517:17:03 ok spent 1 AP
  341. 34617:17:03 ok move event
  342. 34717:17:03 ok move is a spend tick
  343. 34817:17:03 ok no AP: invalid_move
  344. 34917:17:03Engine: shoot and death and win
  345. 35017:17:03 ok Bob is in range 2 (actually dist 1)
  346. 35117:17:03 ok Bob has 2 lives
  347. 35217:17:03 ok Bob is dead
  348. 35317:17:03 ok game finished
  349. 35417:17:03 ok Alice wins
  350. 35517:17:03 ok death event
  351. 35617:17:03 ok win event
  352. 35717:17:03Engine: give AP and upgrade
  353. 35817:17:03 ok Alice spent 2
  354. 35917:17:03 ok Bob received 2
  355. 36017:17:03 ok bad_give
  356. 36117:17:03 ok range is now 3
  357. 36217:17:03 ok upgrade costs 1
  358. 36317:17:03Engine: out of range and occupied
  359. 36417:17:03 ok Bob at (5,5) is out of range 2 from (0,0)
  360. 36517:17:03 ok out_of_range
  361. 36617:17:03 ok cannot move onto Bob
  362. 36717:17:03Engine: surrender
  363. 36817:17:03 ok Bob surrendered
  364. 36917:17:03 ok flagged surrendered
  365. 37017:17:03 ok Alice wins after surrender
  366. 37117:17:03Engine: daily AP grant
  367. 37217:17:03 ok day is 1
  368. 37317:17:03 ok Alice got 1 AP
  369. 37417:17:03 ok Bob got 1 AP
  370. 37517:17:03 ok caught up to day 3, day=3
  371. 37617:17:03 ok 3 AP after 3 days (started 0): 3
  372. 37717:17:03Engine: jury
  373. 37817:17:03 ok still running with 2 alive
  374. 37917:17:03 ok c voted a
  375. 38017:17:03 ok d changed vote to b
  376. 38117:17:03 ok living cannot vote
  377. 38217:17:03 ok Alice (living) has no vote
  378. 38317:17:03 ok Charlie sees own vote
  379. 38417:17:03 ok votes not in present payload
  380. 38517:17:03 ok Alice got 1+1 (tie): 2
  381. 38617:17:03 ok Bob got 1+1 (tie): 2
  382. 38717:17:03 ok votes reset after distribution
  383. 38817:17:03 ok Alice unique jury winner: 2
  384. 38917:17:03 ok Bob only regular 1: 1
  385. 39017:17:03 ok jury off: cannot_vote
  386. 39117:17:03Engine: shrinking arena
  387. 39217:17:03 ok host-chosen 6×6
  388. 39317:17:03 ok shrink in 2 days (interval 2, day 0): 2
  389. 39417:17:03 ok day 1
  390. 39517:17:03 ok no shrink on day 1
  391. 39617:17:03 ok Alice still on (0,0)
  392. 39717:17:03 ok Alice still 3 lives
  393. 39817:17:03 ok shrink in 1 day
  394. 39917:17:03 ok day 2
  395. 40017:17:03 ok inset is 1
  396. 40117:17:03 ok Alice lost 1 life: 2
  397. 40217:17:03 ok Alice pushed inward to passable 1,1
  398. 40317:17:03 ok not onto Bob
  399. 40417:17:03 ok Bob unhurt in centre
  400. 40517:17:03 ok Alice got day-1 and day-2 AP after surviving shrink: 2
  401. 40617:17:03 ok legal move 1,2 is passable
  402. 40717:17:03 ok legal move 2,1 is passable
  403. 40817:17:03 ok does not shrink past max inset: 1
  404. 40917:17:03 ok no upcoming shrink at max
  405. 41017:17:03Engine: shrink kills and crush and draw
  406. 41117:17:03 ok Alice died on shrink (1 life)
  407. 41217:17:03 ok Bob died on shrink (1 life)
  408. 41317:17:03 ok finished
  409. 41417:17:03 ok draw when both die in the same shrink
  410. 41517:17:03Engine: notes and chat privacy
  411. 41617:17:03 ok Alice sees her note on Bob
  412. 41717:17:03 ok Bob does not see Alice’s note
  413. 41817:17:03 ok Alice sees chat
  414. 41917:17:03 ok Bob sees chat
  415. 42017:17:03Engine: modular rule flags
  416. 42117:17:03 ok jury "0" is false
  417. 42217:17:03 ok shrink "1" is true
  418. 42317:17:03 ok interval clamped to max 30: 30
  419. 42417:17:03 ok ceasefire "1" is true
  420. 42517:17:03Engine: cease-fire ranges and midnight wrap
  421. 42617:17:03 ok 2 valid ranges: 2
  422. 42717:17:03 ok sorted, first is 12:00
  423. 42817:17:03 ok wrap range kept
  424. 42917:17:03 ok 23:30 is cease-fire (wrap)
  425. 43017:17:03 ok ends at 06:00 next day: 2026-11-14 06:00
  426. 43117:17:03 ok Attack disabled during cease-fire
  427. 43217:17:03 ok legal.ceasefire true
  428. 43317:17:03 ok non-shoot actions still considered
  429. 43417:17:03 ok can still move during cease-fire
  430. 43517:17:03 ok error code ceasefire: ceasefire
  431. 43617:17:03 ok 06:00 exactly is not cease-fire (end exclusive)
  432. 43717:17:03 ok next cease-fire at 12:00: 12:00
  433. 43817:17:03 ok 12:30 is cease-fire
  434. 43917:17:03 ok ends 13:00: 13:00
  435. 44017:17:03 ok 15:00 is free
  436. 44117:17:03 ok until 22:00: 2026-11-14 22:00
  437. 44217:17:03 ok can shoot when not in cease-fire
  438. 44317:17:03 ok shot landed outside cease-fire
  439. 44417:17:03 ok 21:59 is free
  440. 44517:17:03 ok 60 seconds until cease-fire: 60
  441. 44617:17:03 ok 05:59 still cease-fire
  442. 44717:17:03 ok 60 seconds left in cease-fire: 60
  443. 44817:17:03Engine: cease-fire DST spring-forward (2026-03-29 02:00→03:00)
  444. 44917:17:03 ok 01:00 CEST-transition day is cease-fire
  445. 45017:17:03 ok ends 04:00: 2026-03-29 04:00
  446. 45117:17:03 ok spring-forward 01:00-04:00 is 2 real hours: 7200
  447. 45217:17:03 ok 03:00 (after the jump) is still cease-fire
  448. 45317:17:03 ok 1 hour left at 03:00: 3600
  449. 45417:17:03 ok 00:30 is free
  450. 45517:17:03 ok 30 min until 01:00: 1800
  451. 45617:17:03Engine: cease-fire DST fall-back (2026-10-25 03:00→02:00)
  452. 45717:17:03 ok 01:00 fall-back day is cease-fire
  453. 45817:17:03 ok ends 03:30: 2026-10-25 03:30
  454. 45917:17:03 ok fall-back 01:00-03:30 is 3.5 real hours: 12600
  455. 46017:17:03 ok first 02:15 (still DST) is cease-fire
  456. 46117:17:03 ok second 02:15 (CET) is still cease-fire
  457. 46217:17:03 ok 03:30 exactly is free (end exclusive)
  458. 46317:17:03Engine: cease-fire off or empty ranges
  459. 46417:17:03 ok rule off → no info (ranges ignored)
  460. 46517:17:03 ok on but empty ranges → treated as no cease-fire
  461. 46617:17:03Engine: overlapping ranges merge for countdown
  462. 46717:17:03 ok merged overlapping ends at 13:00: 13:00
  463. 46817:17:03Engine: visibility defaults and invalid values fall back to public
  464. 46917:17:03 ok bad vis_shots → public
  465. 47017:17:03 ok bad vis_gifts → public
  466. 47117:17:03 ok bad vis_ap → public
  467. 47217:17:03 ok bad vis_range → public
  468. 47317:17:03 ok bad vis_lives → public
  469. 47417:17:03 ok accepts elim_known_target
  470. 47517:17:03 ok accepts anonymous
  471. 47617:17:03 ok accepts vis_ap within_range
  472. 47717:17:03 ok accepts known_in_range
  473. 47817:17:03 ok accepts vis_lives within_range
  474. 47917:17:03 ok accepts manual grid 14
  475. 48017:17:03 ok still accepts hidden
  476. 48117:17:03 ok unknown vis_ap/lives values → public
  477. 48217:17:03Engine: vis shots — public (everyone sees, including lives_left when lives public)
  478. 48317:17:03 ok shooter sees public shot
  479. 48417:17:03 ok target sees public shot
  480. 48517:17:03 ok third party sees public shot
  481. 48617:17:03 ok third party sees shooter id
  482. 48717:17:03 ok public lives_left on shot
  483. 48817:17:03 ok damage is 1
  484. 48917:17:03 ok public lives in state
  485. 49017:17:03Engine: vis shots — elim_public (non-elim hidden from third party, visible to target)
  486. 49117:17:03 ok shooter sees non-elim
  487. 49217:17:03 ok target sees non-elim under elim_public
  488. 49317:17:03 ok third party does not see non-elim
  489. 49417:17:03 ok no death on non-elim
  490. 49517:17:03 ok third party sees only the eliminating shot: 1
  491. 49617:17:03 ok the visible shot is the kill
  492. 49717:17:03 ok third party sees death
  493. 49817:17:03 ok elim_public death includes killer
  494. 49917:17:03 ok target sees killer
  495. 50017:17:03 ok death/alive is always public
  496. 50117:17:03Engine: vis shots — known_target (others never see the shot, death without by)
  497. 50217:17:03 ok shooter sees known_target shot
  498. 50317:17:03 ok target sees known_target shot
  499. 50417:17:03 ok third party does not see known_target shot
  500. 50517:17:03 ok third party still sees that B died
  501. 50617:17:03 ok killer stripped for third party under known_target
  502. 50717:17:03 ok target still sees who shot them
  503. 50817:17:03Engine: vis shots — elim_known_target (non-elim hidden even from target)
  504. 50917:17:03 ok shooter sees non-elim under elim_known_target
  505. 51017:17:03 ok target does NOT see non-elim shot (must deduce)
  506. 51117:17:03 ok third party does not see non-elim
  507. 51217:17:03 ok target still sees own lives drop
  508. 51317:17:03 ok lives still public in this game (default)
  509. 51417:17:03 ok target sees only the eliminating shot
  510. 51517:17:03 ok elim shot names the shooter for the target
  511. 51617:17:03 ok third party never sees shots under elim_known_target
  512. 51717:17:03 ok third party death has no by
  513. 51817:17:03Engine: vis shots + hidden lives — lives_left stripped except for the target
  514. 51917:17:03 ok shooter does not get target lives_left
  515. 52017:17:03 ok target sees own lives_left
  516. 52117:17:03 ok third party does not get lives_left
  517. 52217:17:03 ok shooter still sees damage 1
  518. 52317:17:03 ok own lives always visible
  519. 52417:17:03 ok other lives hidden from shooter
  520. 52517:17:03 ok other lives hidden from third party
  521. 52617:17:03 ok target sees own lives
  522. 52717:17:03 ok alive flag still present when lives hidden
  523. 52817:17:03Engine: vis gifts — public, known_recipient, anonymous
  524. 52917:17:03 ok public gift visible to third party with giver and amount
  525. 53017:17:03 ok giver sees own gift
  526. 53117:17:03 ok recipient sees giver
  527. 53217:17:03 ok third party does not see known_recipient gift
  528. 53317:17:03 ok giver sees full anonymous gift in their own log
  529. 53417:17:03 ok recipient sees an anonymous gift event
  530. 53517:17:03 ok event marked anonymous
  531. 53617:17:03 ok giver id stripped for recipient
  532. 53717:17:03 ok recipient sees the AP amount
  533. 53817:17:03 ok recipient is named as target
  534. 53917:17:03 ok third party does not see anonymous gift
  535. 54017:17:03 ok recipient AP actually increased
  536. 54117:17:03 ok stored event still has the giver (present does not mutate)
  537. 54217:17:03 ok sanity
  538. 54317:17:03 ok clone is independent of stored event
  539. 54417:17:03Engine: vis AP totals hidden
  540. 54517:17:03 ok own AP visible when hidden rule is on
  541. 54617:17:03 ok other AP hidden
  542. 54717:17:03 ok third party does not see A’s AP
  543. 54817:17:03 ok daily event present
  544. 54917:17:03 ok hidden AP: only own grant in daily event: {"a":1}
  545. 55017:17:03 ok jury vote counts stripped
  546. 55117:17:03Engine: vis range — hidden and known_in_range
  547. 55217:17:03 ok own range after upgrade
  548. 55317:17:03 ok other range hidden
  549. 55417:17:03 ok upgrader sees own upgrade
  550. 55517:17:03 ok third party does not see hidden upgrade
  551. 55617:17:03 ok B is within A’s range, sees A’s range
  552. 55717:17:03 ok A is within B’s range, sees B’s range
  553. 55817:17:03 ok C is outside A’s range (dist 3 > 2)
  554. 55917:17:03 ok A is outside C’s range (dist 3 > 2)
  555. 56017:17:03 ok C always sees own range
  556. 56117:17:03 ok after upgrade, C is within A’s range and sees it
  557. 56217:17:03 ok C now also sees the upgrade event
  558. 56317:17:03 ok A is still outside C’s range 2
  559. 56417:17:03Engine: movement is always public, even with everything hidden
  560. 56517:17:03 ok move is public
  561. 56617:17:03 ok move names the player and destination
  562. 56717:17:03 ok new position is in the public state
  563. 56817:17:03 ok AP still hidden after the move
  564. 56917:17:03 ok lives still hidden
  565. 57017:17:03 ok range still hidden
  566. 57117:17:03Engine: present() does not leak hidden keys with real values
  567. 57217:17:03 ok JSON-facing ap is null
  568. 57317:17:03 ok JSON-facing lives is null
  569. 57417:17:03 ok JSON-facing range is null
  570. 57517:17:03 ok no numeric secrets for a
  571. 57617:17:03 ok no numeric secrets for b
  572. 57717:17:03Engine: nextDistribution (per-lobby AP time) and DST
  573. 57817:17:03 ok 14:00 → today 15:00: 2026-11-14 15:00:00
  574. 57917:17:03 ok exactly 15:00 → tomorrow 15:00: 2026-11-15 15:00:00
  575. 58017:17:03 ok 16:00 → tomorrow 15:00: 2026-11-15 15:00:00
  576. 58117:17:03 ok 00:00 path equals nextMidnight
  577. 58217:17:03 ok ap_time normalised to HH:MM
  578. 58317:17:03 ok bad ap_time → 00:00
  579. 58417:17:03 ok 24:00 invalid → 00:00
  580. 58517:17:03 ok DST spring: 02:30 candidate is strictly after 01:30
  581. 58617:17:03 ok DST spring: still that calendar day: 2026-03-29 03:30:00 CEST
  582. 58717:17:03 ok DST spring: 04:00 exact: 2026-03-29 04:00:00
  583. 58817:17:03 ok DST fall-back: 02:30 that day: 2026-10-25 02:30:00 CEST
  584. 58917:17:03Engine: AP at a non-midnight lobby time
  585. 59017:17:03 ok start schedules 15:00
  586. 59117:17:03 ok day increments at 15:00
  587. 59217:17:03 ok AP granted at 15:00
  588. 59317:17:03 ok one second before 15:00: no grant
  589. 59417:17:03Engine: AP loot default off; on only for eliminating shots
  590. 59517:17:03 ok B is dead
  591. 59617:17:03 ok dead B has 0 AP
  592. 59717:17:03 ok loot off: A spent 1, did not receive B’s 4 (has 2)
  593. 59817:17:03 ok loot off: no loot field on the kill shot
  594. 59917:17:03 ok loot on: B dead, AP zeroed
  595. 60017:17:03 ok loot on: A spent 1 (3→2) then looted 4 → 6: 6
  596. 60117:17:03 ok shooter sees loot amount
  597. 60217:17:03 ok public AP: third party sees loot
  598. 60317:17:03 ok shooter sees loot even if AP totals hidden
  599. 60417:17:03 ok third party does not see loot amount when AP is hidden
  600. 60517:17:03 ok shooter sees own AP including loot
  601. 60617:17:03 ok third party still does not see A’s total
  602. 60717:17:03 ok non-elim: no loot
  603. 60817:17:03 ok non-elim: B keeps AP
  604. 60917:17:03 ok B surrendered
  605. 61017:17:03 ok surrender does not transfer AP
  606. 61117:17:03 ok surrendered AP is zeroed, not looted
  607. 61217:17:03Engine: vis lives+AP within_range uses the VIEWER's range
  608. 61317:17:03 ok A always sees own lives/AP
  609. 61417:17:03 ok A sees B (dist 1 ≤ A’s range 2)
  610. 61517:17:03 ok A does not see C (dist 3 > A’s range 2)
  611. 61617:17:03 ok B sees A (dist 1 ≤ B’s range 2)
  612. 61717:17:03 ok B does not see C (dist 3 > 2)
  613. 61817:17:03 ok C sees neither A
  614. 61917:17:03 ok C sees neither B
  615. 62017:17:03 ok C sees own lives
  616. 62117:17:03 ok within_range lives/AP: A still cannot see C (C is outside A’s range)
  617. 62217:17:03 ok within_range lives/AP: C can see A (A is inside C’s range 4)
  618. 62317:17:03 ok known_in_range: A CAN see C’s range (A is inside C’s range 4) — opposite of lives/AP
  619. 62417:17:03 ok known_in_range: C cannot see A’s range (C is outside A’s range 2)
  620. 62517:17:03 ok A range is 3
  621. 62617:17:03 ok after A upgrades to 3, A sees C’s lives/AP
  622. 62717:17:03 ok A sees lives_left (B in A’s range)
  623. 62817:17:03 ok B sees own lives_left
  624. 62917:17:03 ok C does not see lives_left (B outside C’s range)
  625. 63017:17:03 ok C still sees damage on a public shot
  626. 63117:17:03 ok C does not see B’s lives in state
  627. 63217:17:03 ok A’s daily grants: own + B, not C: {"a":1,"b":1}
  628. 63317:17:03 ok C’s daily grants: only own: {"c":1}
  629. 63417:17:03 ok A sees loot on eliminating shot
  630. 63517:17:03 ok C sees the public kill shot
  631. 63617:17:03 ok C does not see loot (A is outside C’s range)
  632. 63717:17:03 ok shrink event present for A
  633. 63817:17:03 ok stored shrink has hurt list
  634. 63917:17:03 ok A’s filtered hurt id a is someone whose lives A may see
  635. 64017:17:03Engine: lobby grid option — auto suggestion and manual lock
  636. 64117:17:03 ok new lobby 7 and auto
  637. 64217:17:03 ok 2 players still 7
  638. 64317:17:03 ok 3rd player bumps to 8 (ceil(1.5)=2)
  639. 64417:17:03 ok 4 players stay 8
  640. 64517:17:03 ok 5th player bumps to 9
  641. 64617:17:03 ok 10 players
  642. 64717:17:03 ok 10 players → 11
  643. 64817:17:03 ok 11th player bumps suggestion to 12
  644. 64917:17:03 ok leave drops suggestion back to 11
  645. 65017:17:03 ok manual 14
  646. 65117:17:03 ok 16 players
  647. 65217:17:03 ok manual 14 stays at 16 players (suggestion would be 17)
  648. 65317:17:03 ok starts on host’s 14×14
  649. 65417:17:03 ok all 16 placed
  650. 65517:17:03 ok placed in bounds
  651. 65617:17:03 ok unique start 7,1
  652. 65717:17:03 ok placed in bounds
  653. 65817:17:03 ok unique start 9,1
  654. 65917:17:03 ok placed in bounds
  655. 66017:17:03 ok unique start 10,3
  656. 66117:17:03 ok placed in bounds
  657. 66217:17:03 ok unique start 12,4
  658. 66317:17:03 ok placed in bounds
  659. 66417:17:03 ok unique start 12,7
  660. 66517:17:03 ok placed in bounds
  661. 66617:17:03 ok unique start 12,9
  662. 66717:17:03 ok placed in bounds
  663. 66817:17:03 ok unique start 10,10
  664. 66917:17:03 ok placed in bounds
  665. 67017:17:03 ok unique start 9,12
  666. 67117:17:03 ok placed in bounds
  667. 67217:17:03 ok unique start 7,12
  668. 67317:17:03 ok placed in bounds
  669. 67417:17:03 ok unique start 4,12
  670. 67517:17:03 ok placed in bounds
  671. 67617:17:03 ok unique start 3,10
  672. 67717:17:03 ok placed in bounds
  673. 67817:17:03 ok unique start 1,9
  674. 67917:17:03 ok placed in bounds
  675. 68017:17:03 ok unique start 1,7
  676. 68117:17:03 ok placed in bounds
  677. 68217:17:03 ok unique start 1,4
  678. 68317:17:03 ok placed in bounds
  679. 68417:17:03 ok unique start 3,3
  680. 68517:17:03 ok placed in bounds
  681. 68617:17:03 ok unique start 4,1
  682. 68717:17:03 ok host may start a 6×6
  683. 68817:17:03 ok auto start uses suggested 7 for 2 players
  684. 68917:17:03Engine: rules time zone (host's IANA zone)
  685. 69017:17:03 ok tz default Europe/Amsterdam
  686. 69117:17:03 ok accepts America/New_York
  687. 69217:17:03 ok unknown zone → Amsterdam
  688. 69317:17:03 ok raw offset rejected (no DST rules)
  689. 69417:17:03 ok UTC accepted
  690. 69517:17:03 ok NY 09:00 in winter = 14:00 UTC: 2026-11-14 14:00
  691. 69617:17:03 ok NY 09:00 in summer (DST) = 13:00 UTC: 2026-07-14 13:00
  692. 69717:17:03 ok NY spring-forward: 09:00→09:00 is 23 real hours
  693. 69817:17:03 ok Tokyo 08:00 = 23:00 UTC
  694. 69917:17:03 ok cease-fire active at 23:30 Tokyo
  695. 70017:17:03 ok not active at 23:30 Amsterdam (07:30 Tokyo)
  696. 70117:17:03 ok Tokyo cease-fire ends 06:00 next day (midnight wrap)
  697. 70217:17:03 ok present() reports the rules zone
  698. 70317:17:03Engine: no hearts, no buying lives (options do not exist)
  699. 70417:17:03 ok hearts / buy-lives are not accepted rule keys
  700. 70517:17:03
  701. 70617:17:03Engine passed: 387 Failed: 0
  702. 70717:17:03Store: lobby, join, start, actions, sync
  703. 70817:17:03 ok create lobby
  704. 70917:17:03 ok status lobby
  705. 71017:17:03 ok 6-char code: 38GBGJ
  706. 71117:17:03 ok jury on
  707. 71217:17:03 ok shrink off
  708. 71317:17:03 ok ceasefire off
  709. 71417:17:03 ok start alone refused
  710. 71517:17:03 ok Bob joined
  711. 71617:17:03 ok same lobby
  712. 71717:17:03 ok re-join is idempotent
  713. 71817:17:03 ok non-host refused
  714. 71917:17:03 ok non-host setRules refused: not_host
  715. 72017:17:03 ok not_host maps to HTTP 403
  716. 72117:17:03 ok rules unchanged after refused non-host update
  717. 72217:17:03 ok other status codes unchanged
  718. 72317:17:03 ok host set shrink on
  719. 72417:17:03 ok interval 3
  720. 72517:17:03 ok ceasefire on
  721. 72617:17:03 ok one range stored
  722. 72717:17:03 ok started
  723. 72817:17:03 ok 1 AP at start
  724. 72917:17:03 ok view running
  725. 73017:17:03 ok legal moves in view
  726. 73117:17:03 ok has version
  727. 73217:17:03 ok has server_now
  728. 73317:17:03 ok timezone
  729. 73417:17:03 ok unchanged sync
  730. 73517:17:03 ok no full state when unchanged
  731. 73617:17:03 ok lightweight fields present
  732. 73717:17:03 ok Alice can move
  733. 73817:17:03 ok AP spent
  734. 73917:17:03 ok Bob sees a change
  735. 74017:17:03 ok full state on change
  736. 74117:17:03 ok Bob sees Alice’s new position
  737. 74217:17:03 ok Alice sees her note
  738. 74317:17:03 ok Bob does not
  739. 74417:17:03 ok Alice sees message
  740. 74517:17:03 ok Bob sees message
  741. 74617:17:03 ok join after start refused
  742. 74717:17:03 ok locale stored
  743. 74817:17:03 ok locale read
  744. 74917:17:03 ok zh-Hans normalised to zh
  745. 75017:17:03 ok listed running game
  746. 75117:17:03 ok Dan wins after Cara surrenders
  747. 75217:17:03 ok unknown_code
  748. 75317:17:03 ok bad shoot refused: out_of_range
  749. 75417:17:03 ok AP unchanged after refused action (rollback)
  750. 75517:17:03safeNext
  751. 75617:17:03 ok null next
  752. 75717:17:03 ok empty next
  753. 75817:17:03 ok plain path
  754. 75917:17:03 ok join query with =
  755. 76017:17:03 ok ampersand
  756. 76117:17:03 ok hash fragment
  757. 76217:17:03 ok rejects scheme
  758. 76317:17:03 ok rejects protocol-relative
  759. 76417:17:03 ok rejects absolute path
  760. 76517:17:03 ok rejects backslash
  761. 76617:17:03
  762. 76717:17:03Total passed: 444 Failed: 0