BlueGit

timfa raytracer

unit_tests

Pipelines Pipeline Editor

Passed Started 7 days ago by timfa

Raw

Running on Steve

Log timestamps in UTC.

  1. 122:33:45Using docker image node:20-bookworm ...
  2. 222:33:45Using docker image sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 for node:20-bookworm with digest node@sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 ...
  1. 322:33:45Running on Steve via BlueGit...
  2. 422:33:45Working directory: /workspace
  3. 522:33:45Pipeline #634, job #2449
  1. 622:33:45TAP version 13
  2. 722:33:45# Subtest: Camera projection (no fish-eye)
  3. 822:33:45 # Subtest: plane is perpendicular to forward and length tan(halfFov)
  4. 922:33:45 ok 1 - plane is perpendicular to forward and length tan(halfFov)
  5. 1022:33:45 ---
  6. 1122:33:45 duration_ms: 1.290284
  7. 1222:33:45 ...
  8. 1322:33:45 # Subtest: straight wall columns share equal perp depth (flat wall ahead)
  9. 1422:33:45 ok 2 - straight wall columns share equal perp depth (flat wall ahead)
  10. 1522:33:45 ---
  11. 1622:33:45 duration_ms: 0.423449
  12. 1722:33:45 ...
  13. 1822:33:45 # Subtest: sprite screenX moves smoothly; depth stays perp (not Euclidean)
  14. 1922:33:45 ok 3 - sprite screenX moves smoothly; depth stays perp (not Euclidean)
  15. 2022:33:45 ---
  16. 2122:33:45 duration_ms: 0.307931
  17. 2222:33:45 ...
  18. 2322:33:45 # Subtest: NPC in front of wall keeps smaller depth than wall when only rotating
  19. 2422:33:45 ok 4 - NPC in front of wall keeps smaller depth than wall when only rotating
  20. 2522:33:45 ---
  21. 2622:33:45 duration_ms: 0.309904
  22. 2722:33:45 ...
  23. 2822:33:45 1..4
  24. 2922:33:45ok 1 - Camera projection (no fish-eye)
  25. 3022:33:45 ---
  26. 3122:33:45 duration_ms: 4.265498
  27. 3222:33:45 type: 'suite'
  28. 3322:33:45 ...
  29. 3422:33:45# Subtest: column pixel contract
  30. 3522:33:45 # Subtest: legacy bug (sw=widthLine, max(1,...)) cannot reach column 0 or use sw=1
  31. 3622:33:45 ok 1 - legacy bug (sw=widthLine, max(1,...)) cannot reach column 0 or use sw=1
  32. 3722:33:45 ---
  33. 3822:33:45 duration_ms: 1.380595
  34. 3922:33:45 ...
  35. 4022:33:45 # Subtest: simulated wall sample uses one source column per screen column
  36. 4122:33:45 ok 2 - simulated wall sample uses one source column per screen column
  37. 4222:33:45 ---
  38. 4322:33:45 duration_ms: 0.584103
  39. 4422:33:45 ...
  40. 4522:33:45 1..2
  41. 4622:33:45ok 2 - column pixel contract
  42. 4722:33:45 ---
  43. 4822:33:45 duration_ms: 3.495255
  44. 4922:33:45 type: 'suite'
  45. 5022:33:45 ...
  46. 5122:33:45# Subtest: PpdaCompositor (compositor.rs rules)
  47. 5222:33:45 # Subtest: nearer depth wins
  48. 5322:33:45 ok 1 - nearer depth wins
  49. 5422:33:45 ---
  50. 5522:33:45 duration_ms: 1.306285
  51. 5622:33:45 ...
  52. 5722:33:45 # Subtest: tie within epsilon keeps lower layer (body)
  53. 5822:33:45 ok 2 - tie within epsilon keeps lower layer (body)
  54. 5922:33:45 ---
  55. 6022:33:45 duration_ms: 0.234983
  56. 6122:33:45 ...
  57. 6222:33:45 # Subtest: zero diffuse alpha skips layer
  58. 6322:33:45 ok 3 - zero diffuse alpha skips layer
  59. 6422:33:45 ---
  60. 6522:33:45 duration_ms: 0.23366
  61. 6622:33:45 ...
  62. 6722:33:45 # Subtest: zero depth alpha skips layer
  63. 6822:33:45 ok 4 - zero depth alpha skips layer
  64. 6922:33:45 ---
  65. 7022:33:45 duration_ms: 0.21229
  66. 7122:33:45 ...
  67. 7222:33:45 1..4
  68. 7322:33:45ok 3 - PpdaCompositor (compositor.rs rules)
  69. 7422:33:45 ---
  70. 7522:33:45 duration_ms: 3.713286
  71. 7622:33:45 type: 'suite'
  72. 7722:33:45 ...
  73. 7822:33:45# Subtest: DepthDecode encodings
  74. 7922:33:45 # Subtest: gray 8/16 roundtrip via encode/decode value
  75. 8022:33:45 ok 1 - gray 8/16 roundtrip via encode/decode value
  76. 8122:33:45 ---
  77. 8222:33:45 duration_ms: 1.469232
  78. 8322:33:45 ...
  79. 8422:33:45 # Subtest: rgb_bands fills R then G then B
  80. 8522:33:45 ok 2 - rgb_bands fills R then G then B
  81. 8622:33:45 ---
  82. 8722:33:45 duration_ms: 0.298524
  83. 8822:33:45 ...
  84. 8922:33:45 # Subtest: rgb_bands rejects invalid order
  85. 9022:33:45 ok 3 - rgb_bands rejects invalid order
  86. 9122:33:45 ---
  87. 9222:33:45 duration_ms: 0.362554
  88. 9322:33:45 ...
  89. 9422:33:45 # Subtest: rgb_packed positional
  90. 9522:33:45 ok 4 - rgb_packed positional
  91. 9622:33:45 ---
  92. 9722:33:45 duration_ms: 0.273155
  93. 9822:33:45 ...
  94. 9922:33:45 # Subtest: distanceMeters uses near/far
  95. 10022:33:45 ok 5 - distanceMeters uses near/far
  96. 10122:33:45 ---
  97. 10222:33:45 duration_ms: 0.191822
  98. 10322:33:45 ...
  99. 10422:33:45 1..5
  100. 10522:33:45ok 4 - DepthDecode encodings
  101. 10622:33:45 ---
  102. 10722:33:45 duration_ms: 4.389351
  103. 10822:33:45 type: 'suite'
  104. 10922:33:45 ...
  105. 11022:33:45# Subtest: FloorCast math
  106. 11122:33:45 # Subtest: floorHit below horizon returns positive path and isCeiling false
  107. 11222:33:45 ok 1 - floorHit below horizon returns positive path and isCeiling false
  108. 11322:33:45 ---
  109. 11422:33:45 duration_ms: 1.221615
  110. 11522:33:45 ...
  111. 11622:33:45 # Subtest: floorHit above horizon is ceiling
  112. 11722:33:45 ok 2 - floorHit above horizon is ceiling
  113. 11822:33:45 ---
  114. 11922:33:45 duration_ms: 0.284317
  115. 12022:33:45 ...
  116. 12122:33:45 # Subtest: posZ matches wall projection: bottom row ≈ one cell away
  117. 12222:33:45 ok 3 - posZ matches wall projection: bottom row ≈ one cell away
  118. 12322:33:45 ---
  119. 12422:33:45 duration_ms: 0.229874
  120. 12522:33:45 ...
  121. 12622:33:45 # Subtest: perspective: farther rows (nearer horizon) have larger rowDist
  122. 12722:33:45 ok 4 - perspective: farther rows (nearer horizon) have larger rowDist
  123. 12822:33:45 ---
  124. 12922:33:45 duration_ms: 0.215747
  125. 13022:33:45 ...
  126. 13122:33:45 # Subtest: sampleNearest wraps and picks texel
  127. 13222:33:45 ok 5 - sampleNearest wraps and picks texel
  128. 13322:33:45 ---
  129. 13422:33:45 duration_ms: 0.981773
  130. 13522:33:45 ...
  131. 13622:33:45 # Subtest: render of checkerboard floor yields many unique colours (not flat)
  132. 13722:33:45 ok 6 - render of checkerboard floor yields many unique colours (not flat)
  133. 13822:33:45 ---
  134. 13922:33:45 duration_ms: 18.098608
  135. 14022:33:45 ...
  136. 14122:33:45 # Subtest: render with real stone.png yields many source texel colours on the floor
  137. 14222:33:45 ok 7 - render with real stone.png yields many source texel colours on the floor
  138. 14322:33:45 ---
  139. 14422:33:45 duration_ms: 76.320336
  140. 14522:33:45 ...
  141. 14622:33:45 1..7
  142. 14722:33:45ok 5 - FloorCast math
  143. 14822:33:45 ---
  144. 14922:33:45 duration_ms: 99.307938
  145. 15022:33:45 type: 'suite'
  146. 15122:33:45 ...
  147. 15222:33:45# Subtest: LevelFormat schema v1
  148. 15322:33:45 # Subtest: validates default empty level in a pack
  149. 15422:33:45 ok 1 - validates default empty level in a pack
  150. 15522:33:45 ---
  151. 15622:33:45 duration_ms: 2.002308
  152. 15722:33:45 ...
  153. 15822:33:45 # Subtest: rejects unknown format_version
  154. 15922:33:45 ok 2 - rejects unknown format_version
  155. 16022:33:45 ---
  156. 16122:33:45 duration_ms: 0.569514
  157. 16222:33:45 ...
  158. 16322:33:45 # Subtest: rejects walls length mismatch
  159. 16422:33:45 ok 3 - rejects walls length mismatch
  160. 16522:33:45 ---
  161. 16622:33:45 duration_ms: 0.298153
  162. 16722:33:45 ...
  163. 16822:33:45 # Subtest: rejects unknown floor texture
  164. 16922:33:45 ok 4 - rejects unknown floor texture
  165. 17022:33:45 ---
  166. 17122:33:45 duration_ms: 0.263177
  167. 17222:33:45 ...
  168. 17322:33:45 # Subtest: migrates legacy Levels[] to pack with floors/ceilings/lights
  169. 17422:33:45 ok 5 - migrates legacy Levels[] to pack with floors/ceilings/lights
  170. 17522:33:45 ---
  171. 17622:33:45 duration_ms: 0.940405
  172. 17722:33:45 ...
  173. 17822:33:45 # Subtest: findLevelIndex by id, name, and index
  174. 17922:33:45 ok 6 - findLevelIndex by id, name, and index
  175. 18022:33:45 ---
  176. 18122:33:45 duration_ms: 0.303653
  177. 18222:33:45 ...
  178. 18322:33:45 # Subtest: toRuntimeLevel maps walls→tiles and spawn yaw
  179. 18422:33:45 ok 7 - toRuntimeLevel maps walls→tiles and spawn yaw
  180. 18522:33:45 ---
  181. 18622:33:45 duration_ms: 0.403191
  182. 18722:33:45 ...
  183. 18822:33:45 # Subtest: migrates v1 pack to v2 with ambient defaults
  184. 18922:33:45 ok 8 - migrates v1 pack to v2 with ambient defaults
  185. 19022:33:45 ---
  186. 19122:33:45 duration_ms: 0.325454
  187. 19222:33:45 ...
  188. 19322:33:45 # Subtest: parses build/levels.json
  189. 19422:33:45 ok 9 - parses build/levels.json
  190. 19522:33:45 ---
  191. 19622:33:45 duration_ms: 2.452868
  192. 19722:33:45 ...
  193. 19822:33:45 1..9
  194. 19922:33:45ok 6 - LevelFormat schema v1
  195. 20022:33:45 ---
  196. 20122:33:45 duration_ms: 9.673191
  197. 20222:33:45 type: 'suite'
  198. 20322:33:45 ...
  199. 20422:33:45# Subtest: Lighting
  200. 20522:33:45 # Subtest: attenuation reaches 0 at range and 1 at distance 0
  201. 20622:33:45 ok 1 - attenuation reaches 0 at range and 1 at distance 0
  202. 20722:33:45 ---
  203. 20822:33:45 duration_ms: 1.365146
  204. 20922:33:45 ...
  205. 21022:33:45 # Subtest: faceNormal: north-ray hit faces outward +Y (south face)
  206. 21122:33:45 ok 2 - faceNormal: north-ray hit faces outward +Y (south face)
  207. 21222:33:45 ---
  208. 21322:33:45 duration_ms: 0.861255
  209. 21422:33:45 ...
  210. 21522:33:45 # Subtest: wall facing corridor receives light (N·L > 0) with corrected normals
  211. 21622:33:45 ok 3 - wall facing corridor receives light (N·L > 0) with corrected normals
  212. 21722:33:45 ---
  213. 21822:33:45 duration_ms: 0.449629
  214. 21922:33:45 ...
  215. 22022:33:45 # Subtest: LOS blocked by solid between open cells
  216. 22122:33:45 ok 4 - LOS blocked by solid between open cells
  217. 22222:33:45 ---
  218. 22322:33:45 duration_ms: 0.315024
  219. 22422:33:45 ...
  220. 22522:33:45 # Subtest: decodeNormalRgb maps 128,128,255 toward +Z
  221. 22622:33:45 ok 5 - decodeNormalRgb maps 128,128,255 toward +Z
  222. 22722:33:45 ---
  223. 22822:33:45 duration_ms: 0.277293
  224. 22922:33:45 ...
  225. 23022:33:45 # Subtest: worldDirToView: light on camera-left (−Y at yaw0 facing0) → view −X
  226. 23122:33:45 ok 6 - worldDirToView: light on camera-left (−Y at yaw0 facing0) → view −X
  227. 23222:33:45 ---
  228. 23322:33:45 duration_ms: 0.271492
  229. 23422:33:45 ...
  230. 23522:33:45 # Subtest: NPC left half brighter than right with white lamp on camera-left
  231. 23622:33:45 ok 7 - NPC left half brighter than right with white lamp on camera-left
  232. 23722:33:45 ---
  233. 23822:33:45 duration_ms: 1.318708
  234. 23922:33:45 ...
  235. 24022:33:45 # Subtest: NPC right half brighter with lamp on camera-right (mirrored)
  236. 24122:33:45 ok 8 - NPC right half brighter with lamp on camera-right (mirrored)
  237. 24222:33:45 ---
  238. 24322:33:45 duration_ms: 0.310886
  239. 24422:33:45 ...
  240. 24522:33:45 # Subtest: floor lighting has no hard column seam (max jump small)
  241. 24622:33:45 ok 9 - floor lighting has no hard column seam (max jump small)
  242. 24722:33:45 ---
  243. 24822:33:45 duration_ms: 94.721965
  244. 24922:33:45 ...
  245. 25022:33:45 1..9
  246. 25122:33:45ok 7 - Lighting
  247. 25222:33:45 ---
  248. 25322:33:45 duration_ms: 102.18692
  249. 25422:33:45 type: 'suite'
  250. 25522:33:45 ...
  251. 25622:33:45# Subtest: sprite occlusion z-buffer
  252. 25722:33:45 # Subtest: wall blocks farther sprite pixels
  253. 25822:33:45 ok 1 - wall blocks farther sprite pixels
  254. 25922:33:45 ---
  255. 26022:33:45 duration_ms: 1.209131
  256. 26122:33:45 ...
  257. 26222:33:45 # Subtest: nearer sprite wins over previous sprite
  258. 26322:33:45 ok 2 - nearer sprite wins over previous sprite
  259. 26422:33:45 ---
  260. 26522:33:45 duration_ms: 0.180681
  261. 26622:33:45 ...
  262. 26722:33:45 1..2
  263. 26822:33:45ok 8 - sprite occlusion z-buffer
  264. 26922:33:45 ---
  265. 27022:33:45 duration_ms: 2.737465
  266. 27122:33:45 type: 'suite'
  267. 27222:33:45 ...
  268. 27322:33:45# Subtest: PpdaLoader
  269. 27422:33:45 # Subtest: loads vendored male-body atlas
  270. 27522:33:45 ok 1 - loads vendored male-body atlas
  271. 27622:33:45 ---
  272. 27722:33:45 duration_ms: 2.46994
  273. 27822:33:45 ...
  274. 27922:33:45 # Subtest: body and sword are compatible
  275. 28022:33:45 ok 2 - body and sword are compatible
  276. 28122:33:45 ---
  277. 28222:33:45 duration_ms: 2.442449
  278. 28322:33:45 ...
  279. 28422:33:45 # Subtest: rejects path traversal in map files
  280. 28522:33:45 ok 3 - rejects path traversal in map files
  281. 28622:33:45 ---
  282. 28722:33:45 duration_ms: 0.407338
  283. 28822:33:45 ...
  284. 28922:33:45 # Subtest: rejects unknown format_version
  285. 29022:33:45 ok 4 - rejects unknown format_version
  286. 29122:33:45 ---
  287. 29222:33:45 duration_ms: 0.256925
  288. 29322:33:45 ...
  289. 29422:33:45 1..4
  290. 29522:33:45ok 9 - PpdaLoader
  291. 29622:33:45 ---
  292. 29722:33:45 duration_ms: 7.241313
  293. 29822:33:45 type: 'suite'
  294. 29922:33:45 ...
  295. 30022:33:45# Subtest: textureColumnIndex
  296. 30122:33:45 # Subtest: maps 0 to first column
  297. 30222:33:45 ok 1 - maps 0 to first column
  298. 30322:33:45 ---
  299. 30422:33:45 duration_ms: 1.09754
  300. 30522:33:45 ...
  301. 30622:33:45 # Subtest: maps almost-1 to last column
  302. 30722:33:45 ok 2 - maps almost-1 to last column
  303. 30822:33:45 ---
  304. 30922:33:45 duration_ms: 0.190069
  305. 31022:33:45 ...
  306. 31122:33:45 # Subtest: clamps above 1
  307. 31222:33:45 ok 3 - clamps above 1
  308. 31322:33:45 ---
  309. 31422:33:45 duration_ms: 0.173998
  310. 31522:33:45 ...
  311. 31622:33:45 # Subtest: clamps below 0
  312. 31722:33:45 ok 4 - clamps below 0
  313. 31822:33:45 ---
  314. 31922:33:45 duration_ms: 0.284226
  315. 32022:33:45 ...
  316. 32122:33:45 # Subtest: covers every source column for a dense tileX sweep
  317. 32222:33:45 ok 5 - covers every source column for a dense tileX sweep
  318. 32322:33:45 ---
  319. 32422:33:45 duration_ms: 0.395165
  320. 32522:33:45 ...
  321. 32622:33:45 1..5
  322. 32722:33:45ok 10 - textureColumnIndex
  323. 32822:33:45 ---
  324. 32922:33:45 duration_ms: 3.907092
  325. 33022:33:45 type: 'suite'
  326. 33122:33:45 ...
  327. 33222:33:45# Subtest: textureColumnUv
  328. 33322:33:45 # Subtest: always has source width 1 in UV space
  329. 33422:33:45 ok 1 - always has source width 1 in UV space
  330. 33522:33:45 ---
  331. 33622:33:45 duration_ms: 0.300878
  332. 33722:33:45 ...
  333. 33822:33:45 1..1
  334. 33922:33:45ok 11 - textureColumnUv
  335. 34022:33:45 ---
  336. 34122:33:45 duration_ms: 0.554967
  337. 34222:33:45 type: 'suite'
  338. 34322:33:45 ...
  339. 34422:33:45# Subtest: faceTileX (no +1 bias)
  340. 34522:33:45 # Subtest: north face uses local/size without +1/size shift
  341. 34622:33:45 ok 1 - north face uses local/size without +1/size shift
  342. 34722:33:45 ---
  343. 34822:33:45 duration_ms: 0.334802
  344. 34922:33:45 ...
  345. 35022:33:45 # Subtest: south face mirrors
  346. 35122:33:45 ok 2 - south face mirrors
  347. 35222:33:45 ---
  348. 35322:33:45 duration_ms: 1.084687
  349. 35422:33:45 ...
  350. 35522:33:45 1..2
  351. 35622:33:45ok 12 - faceTileX (no +1 bias)
  352. 35722:33:45 ---
  353. 35822:33:45 duration_ms: 1.826045
  354. 35922:33:45 type: 'suite'
  355. 36022:33:45 ...
  356. 36122:33:45# Subtest: PpdaViewFrame
  357. 36222:33:45 # Subtest: picks nearest yaw
  358. 36322:33:45 ok 1 - picks nearest yaw
  359. 36422:33:45 ---
  360. 36522:33:45 duration_ms: 1.268193
  361. 36622:33:45 ...
  362. 36722:33:45 # Subtest: frameIndex wraps
  363. 36822:33:45 ok 2 - frameIndex wraps
  364. 36922:33:45 ---
  365. 37022:33:45 duration_ms: 0.24934
  366. 37122:33:45 ...
  367. 37222:33:45 # Subtest: uvRect from view
  368. 37322:33:45 ok 3 - uvRect from view
  369. 37422:33:45 ---
  370. 37522:33:45 duration_ms: 0.315465
  371. 37622:33:45 ...
  372. 37722:33:45 # Subtest: relativeYawDeg front when looking at facing NPC
  373. 37822:33:45 ok 4 - relativeYawDeg front when looking at facing NPC
  374. 37922:33:45 ---
  375. 38022:33:45 duration_ms: 0.355991
  376. 38122:33:45 ...
  377. 38222:33:45 # Subtest: walk-around: front → left (90) → back (180) → right (270)
  378. 38322:33:45 ok 5 - walk-around: front → left (90) → back (180) → right (270)
  379. 38422:33:45 ---
  380. 38522:33:45 duration_ms: 0.223793
  381. 38622:33:45 ...
  382. 38722:33:45 # Subtest: pickPitchFromHeight ignores look; same height → 0
  383. 38822:33:45 ok 6 - pickPitchFromHeight ignores look; same height → 0
  384. 38922:33:45 ---
  385. 39022:33:45 duration_ms: 0.218032
  386. 39122:33:45 ...
  387. 39222:33:45 1..6
  388. 39322:33:45ok 13 - PpdaViewFrame
  389. 39422:33:45 ---
  390. 39522:33:45 duration_ms: 5.53359
  391. 39622:33:45 type: 'suite'
  392. 39722:33:45 ...
  393. 39822:33:45# Subtest: World.rayCast
  394. 39922:33:45 # Subtest: hits a solid wall ahead of spawn looking slightly south of east
  395. 40022:33:45 ok 1 - hits a solid wall ahead of spawn looking slightly south of east
  396. 40122:33:45 ---
  397. 40222:33:45 duration_ms: 3.364187
  398. 40322:33:45 ...
  399. 40422:33:45 # Subtest: tileX stays in [0,1] for many angles
  400. 40522:33:45 ok 2 - tileX stays in [0,1] for many angles
  401. 40622:33:45 ---
  402. 40722:33:45 duration_ms: 3.177796
  403. 40822:33:45 ...
  404. 40922:33:45 1..2
  405. 41022:33:45ok 14 - World.rayCast
  406. 41122:33:45 ---
  407. 41222:33:45 duration_ms: 7.905415
  408. 41322:33:45 type: 'suite'
  409. 41422:33:45 ...
  410. 41522:33:451..14
  411. 41622:33:45# tests 62
  412. 41722:33:45# suites 14
  413. 41822:33:45# pass 62
  414. 41922:33:45# fail 0
  415. 42022:33:45# cancelled 0
  416. 42122:33:45# skipped 0
  417. 42222:33:45# todo 0
  418. 42322:33:45# duration_ms 246.614426