unit_tests
Passed Started 7 days ago by timfa
Running on Steve
Log timestamps in UTC.
- 122:33:45
Using docker image node:20-bookworm ... - 222:33:45
Using docker image sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 for node:20-bookworm with digest node@sha256:8f693eaa7e0a8e71560c9a82b55fd54c2ae920a2ba5d2cde28bac7d1c01c9ba5 ...
- 322:33:45
Running on Steve via BlueGit... - 422:33:45
Working directory: /workspace - 522:33:45
Pipeline #634, job #2449
- 622:33:45
TAP version 13 - 722:33:45
# Subtest: Camera projection (no fish-eye) - 822:33:45
# Subtest: plane is perpendicular to forward and length tan(halfFov) - 922:33:45
ok 1 - plane is perpendicular to forward and length tan(halfFov) - 1022:33:45
--- - 1122:33:45
duration_ms: 1.290284 - 1222:33:45
... - 1322:33:45
# Subtest: straight wall columns share equal perp depth (flat wall ahead) - 1422:33:45
ok 2 - straight wall columns share equal perp depth (flat wall ahead) - 1522:33:45
--- - 1622:33:45
duration_ms: 0.423449 - 1722:33:45
... - 1822:33:45
# Subtest: sprite screenX moves smoothly; depth stays perp (not Euclidean) - 1922:33:45
ok 3 - sprite screenX moves smoothly; depth stays perp (not Euclidean) - 2022:33:45
--- - 2122:33:45
duration_ms: 0.307931 - 2222:33:45
... - 2322:33:45
# Subtest: NPC in front of wall keeps smaller depth than wall when only rotating - 2422:33:45
ok 4 - NPC in front of wall keeps smaller depth than wall when only rotating - 2522:33:45
--- - 2622:33:45
duration_ms: 0.309904 - 2722:33:45
... - 2822:33:45
1..4 - 2922:33:45
ok 1 - Camera projection (no fish-eye) - 3022:33:45
--- - 3122:33:45
duration_ms: 4.265498 - 3222:33:45
type: 'suite' - 3322:33:45
... - 3422:33:45
# Subtest: column pixel contract - 3522:33:45
# Subtest: legacy bug (sw=widthLine, max(1,...)) cannot reach column 0 or use sw=1 - 3622:33:45
ok 1 - legacy bug (sw=widthLine, max(1,...)) cannot reach column 0 or use sw=1 - 3722:33:45
--- - 3822:33:45
duration_ms: 1.380595 - 3922:33:45
... - 4022:33:45
# Subtest: simulated wall sample uses one source column per screen column - 4122:33:45
ok 2 - simulated wall sample uses one source column per screen column - 4222:33:45
--- - 4322:33:45
duration_ms: 0.584103 - 4422:33:45
... - 4522:33:45
1..2 - 4622:33:45
ok 2 - column pixel contract - 4722:33:45
--- - 4822:33:45
duration_ms: 3.495255 - 4922:33:45
type: 'suite' - 5022:33:45
... - 5122:33:45
# Subtest: PpdaCompositor (compositor.rs rules) - 5222:33:45
# Subtest: nearer depth wins - 5322:33:45
ok 1 - nearer depth wins - 5422:33:45
--- - 5522:33:45
duration_ms: 1.306285 - 5622:33:45
... - 5722:33:45
# Subtest: tie within epsilon keeps lower layer (body) - 5822:33:45
ok 2 - tie within epsilon keeps lower layer (body) - 5922:33:45
--- - 6022:33:45
duration_ms: 0.234983 - 6122:33:45
... - 6222:33:45
# Subtest: zero diffuse alpha skips layer - 6322:33:45
ok 3 - zero diffuse alpha skips layer - 6422:33:45
--- - 6522:33:45
duration_ms: 0.23366 - 6622:33:45
... - 6722:33:45
# Subtest: zero depth alpha skips layer - 6822:33:45
ok 4 - zero depth alpha skips layer - 6922:33:45
--- - 7022:33:45
duration_ms: 0.21229 - 7122:33:45
... - 7222:33:45
1..4 - 7322:33:45
ok 3 - PpdaCompositor (compositor.rs rules) - 7422:33:45
--- - 7522:33:45
duration_ms: 3.713286 - 7622:33:45
type: 'suite' - 7722:33:45
... - 7822:33:45
# Subtest: DepthDecode encodings - 7922:33:45
# Subtest: gray 8/16 roundtrip via encode/decode value - 8022:33:45
ok 1 - gray 8/16 roundtrip via encode/decode value - 8122:33:45
--- - 8222:33:45
duration_ms: 1.469232 - 8322:33:45
... - 8422:33:45
# Subtest: rgb_bands fills R then G then B - 8522:33:45
ok 2 - rgb_bands fills R then G then B - 8622:33:45
--- - 8722:33:45
duration_ms: 0.298524 - 8822:33:45
... - 8922:33:45
# Subtest: rgb_bands rejects invalid order - 9022:33:45
ok 3 - rgb_bands rejects invalid order - 9122:33:45
--- - 9222:33:45
duration_ms: 0.362554 - 9322:33:45
... - 9422:33:45
# Subtest: rgb_packed positional - 9522:33:45
ok 4 - rgb_packed positional - 9622:33:45
--- - 9722:33:45
duration_ms: 0.273155 - 9822:33:45
... - 9922:33:45
# Subtest: distanceMeters uses near/far - 10022:33:45
ok 5 - distanceMeters uses near/far - 10122:33:45
--- - 10222:33:45
duration_ms: 0.191822 - 10322:33:45
... - 10422:33:45
1..5 - 10522:33:45
ok 4 - DepthDecode encodings - 10622:33:45
--- - 10722:33:45
duration_ms: 4.389351 - 10822:33:45
type: 'suite' - 10922:33:45
... - 11022:33:45
# Subtest: FloorCast math - 11122:33:45
# Subtest: floorHit below horizon returns positive path and isCeiling false - 11222:33:45
ok 1 - floorHit below horizon returns positive path and isCeiling false - 11322:33:45
--- - 11422:33:45
duration_ms: 1.221615 - 11522:33:45
... - 11622:33:45
# Subtest: floorHit above horizon is ceiling - 11722:33:45
ok 2 - floorHit above horizon is ceiling - 11822:33:45
--- - 11922:33:45
duration_ms: 0.284317 - 12022:33:45
... - 12122:33:45
# Subtest: posZ matches wall projection: bottom row ≈ one cell away - 12222:33:45
ok 3 - posZ matches wall projection: bottom row ≈ one cell away - 12322:33:45
--- - 12422:33:45
duration_ms: 0.229874 - 12522:33:45
... - 12622:33:45
# Subtest: perspective: farther rows (nearer horizon) have larger rowDist - 12722:33:45
ok 4 - perspective: farther rows (nearer horizon) have larger rowDist - 12822:33:45
--- - 12922:33:45
duration_ms: 0.215747 - 13022:33:45
... - 13122:33:45
# Subtest: sampleNearest wraps and picks texel - 13222:33:45
ok 5 - sampleNearest wraps and picks texel - 13322:33:45
--- - 13422:33:45
duration_ms: 0.981773 - 13522:33:45
... - 13622:33:45
# Subtest: render of checkerboard floor yields many unique colours (not flat) - 13722:33:45
ok 6 - render of checkerboard floor yields many unique colours (not flat) - 13822:33:45
--- - 13922:33:45
duration_ms: 18.098608 - 14022:33:45
... - 14122:33:45
# Subtest: render with real stone.png yields many source texel colours on the floor - 14222:33:45
ok 7 - render with real stone.png yields many source texel colours on the floor - 14322:33:45
--- - 14422:33:45
duration_ms: 76.320336 - 14522:33:45
... - 14622:33:45
1..7 - 14722:33:45
ok 5 - FloorCast math - 14822:33:45
--- - 14922:33:45
duration_ms: 99.307938 - 15022:33:45
type: 'suite' - 15122:33:45
... - 15222:33:45
# Subtest: LevelFormat schema v1 - 15322:33:45
# Subtest: validates default empty level in a pack - 15422:33:45
ok 1 - validates default empty level in a pack - 15522:33:45
--- - 15622:33:45
duration_ms: 2.002308 - 15722:33:45
... - 15822:33:45
# Subtest: rejects unknown format_version - 15922:33:45
ok 2 - rejects unknown format_version - 16022:33:45
--- - 16122:33:45
duration_ms: 0.569514 - 16222:33:45
... - 16322:33:45
# Subtest: rejects walls length mismatch - 16422:33:45
ok 3 - rejects walls length mismatch - 16522:33:45
--- - 16622:33:45
duration_ms: 0.298153 - 16722:33:45
... - 16822:33:45
# Subtest: rejects unknown floor texture - 16922:33:45
ok 4 - rejects unknown floor texture - 17022:33:45
--- - 17122:33:45
duration_ms: 0.263177 - 17222:33:45
... - 17322:33:45
# Subtest: migrates legacy Levels[] to pack with floors/ceilings/lights - 17422:33:45
ok 5 - migrates legacy Levels[] to pack with floors/ceilings/lights - 17522:33:45
--- - 17622:33:45
duration_ms: 0.940405 - 17722:33:45
... - 17822:33:45
# Subtest: findLevelIndex by id, name, and index - 17922:33:45
ok 6 - findLevelIndex by id, name, and index - 18022:33:45
--- - 18122:33:45
duration_ms: 0.303653 - 18222:33:45
... - 18322:33:45
# Subtest: toRuntimeLevel maps walls→tiles and spawn yaw - 18422:33:45
ok 7 - toRuntimeLevel maps walls→tiles and spawn yaw - 18522:33:45
--- - 18622:33:45
duration_ms: 0.403191 - 18722:33:45
... - 18822:33:45
# Subtest: migrates v1 pack to v2 with ambient defaults - 18922:33:45
ok 8 - migrates v1 pack to v2 with ambient defaults - 19022:33:45
--- - 19122:33:45
duration_ms: 0.325454 - 19222:33:45
... - 19322:33:45
# Subtest: parses build/levels.json - 19422:33:45
ok 9 - parses build/levels.json - 19522:33:45
--- - 19622:33:45
duration_ms: 2.452868 - 19722:33:45
... - 19822:33:45
1..9 - 19922:33:45
ok 6 - LevelFormat schema v1 - 20022:33:45
--- - 20122:33:45
duration_ms: 9.673191 - 20222:33:45
type: 'suite' - 20322:33:45
... - 20422:33:45
# Subtest: Lighting - 20522:33:45
# Subtest: attenuation reaches 0 at range and 1 at distance 0 - 20622:33:45
ok 1 - attenuation reaches 0 at range and 1 at distance 0 - 20722:33:45
--- - 20822:33:45
duration_ms: 1.365146 - 20922:33:45
... - 21022:33:45
# Subtest: faceNormal: north-ray hit faces outward +Y (south face) - 21122:33:45
ok 2 - faceNormal: north-ray hit faces outward +Y (south face) - 21222:33:45
--- - 21322:33:45
duration_ms: 0.861255 - 21422:33:45
... - 21522:33:45
# Subtest: wall facing corridor receives light (N·L > 0) with corrected normals - 21622:33:45
ok 3 - wall facing corridor receives light (N·L > 0) with corrected normals - 21722:33:45
--- - 21822:33:45
duration_ms: 0.449629 - 21922:33:45
... - 22022:33:45
# Subtest: LOS blocked by solid between open cells - 22122:33:45
ok 4 - LOS blocked by solid between open cells - 22222:33:45
--- - 22322:33:45
duration_ms: 0.315024 - 22422:33:45
... - 22522:33:45
# Subtest: decodeNormalRgb maps 128,128,255 toward +Z - 22622:33:45
ok 5 - decodeNormalRgb maps 128,128,255 toward +Z - 22722:33:45
--- - 22822:33:45
duration_ms: 0.277293 - 22922:33:45
... - 23022:33:45
# Subtest: worldDirToView: light on camera-left (−Y at yaw0 facing0) → view −X - 23122:33:45
ok 6 - worldDirToView: light on camera-left (−Y at yaw0 facing0) → view −X - 23222:33:45
--- - 23322:33:45
duration_ms: 0.271492 - 23422:33:45
... - 23522:33:45
# Subtest: NPC left half brighter than right with white lamp on camera-left - 23622:33:45
ok 7 - NPC left half brighter than right with white lamp on camera-left - 23722:33:45
--- - 23822:33:45
duration_ms: 1.318708 - 23922:33:45
... - 24022:33:45
# Subtest: NPC right half brighter with lamp on camera-right (mirrored) - 24122:33:45
ok 8 - NPC right half brighter with lamp on camera-right (mirrored) - 24222:33:45
--- - 24322:33:45
duration_ms: 0.310886 - 24422:33:45
... - 24522:33:45
# Subtest: floor lighting has no hard column seam (max jump small) - 24622:33:45
ok 9 - floor lighting has no hard column seam (max jump small) - 24722:33:45
--- - 24822:33:45
duration_ms: 94.721965 - 24922:33:45
... - 25022:33:45
1..9 - 25122:33:45
ok 7 - Lighting - 25222:33:45
--- - 25322:33:45
duration_ms: 102.18692 - 25422:33:45
type: 'suite' - 25522:33:45
... - 25622:33:45
# Subtest: sprite occlusion z-buffer - 25722:33:45
# Subtest: wall blocks farther sprite pixels - 25822:33:45
ok 1 - wall blocks farther sprite pixels - 25922:33:45
--- - 26022:33:45
duration_ms: 1.209131 - 26122:33:45
... - 26222:33:45
# Subtest: nearer sprite wins over previous sprite - 26322:33:45
ok 2 - nearer sprite wins over previous sprite - 26422:33:45
--- - 26522:33:45
duration_ms: 0.180681 - 26622:33:45
... - 26722:33:45
1..2 - 26822:33:45
ok 8 - sprite occlusion z-buffer - 26922:33:45
--- - 27022:33:45
duration_ms: 2.737465 - 27122:33:45
type: 'suite' - 27222:33:45
... - 27322:33:45
# Subtest: PpdaLoader - 27422:33:45
# Subtest: loads vendored male-body atlas - 27522:33:45
ok 1 - loads vendored male-body atlas - 27622:33:45
--- - 27722:33:45
duration_ms: 2.46994 - 27822:33:45
... - 27922:33:45
# Subtest: body and sword are compatible - 28022:33:45
ok 2 - body and sword are compatible - 28122:33:45
--- - 28222:33:45
duration_ms: 2.442449 - 28322:33:45
... - 28422:33:45
# Subtest: rejects path traversal in map files - 28522:33:45
ok 3 - rejects path traversal in map files - 28622:33:45
--- - 28722:33:45
duration_ms: 0.407338 - 28822:33:45
... - 28922:33:45
# Subtest: rejects unknown format_version - 29022:33:45
ok 4 - rejects unknown format_version - 29122:33:45
--- - 29222:33:45
duration_ms: 0.256925 - 29322:33:45
... - 29422:33:45
1..4 - 29522:33:45
ok 9 - PpdaLoader - 29622:33:45
--- - 29722:33:45
duration_ms: 7.241313 - 29822:33:45
type: 'suite' - 29922:33:45
... - 30022:33:45
# Subtest: textureColumnIndex - 30122:33:45
# Subtest: maps 0 to first column - 30222:33:45
ok 1 - maps 0 to first column - 30322:33:45
--- - 30422:33:45
duration_ms: 1.09754 - 30522:33:45
... - 30622:33:45
# Subtest: maps almost-1 to last column - 30722:33:45
ok 2 - maps almost-1 to last column - 30822:33:45
--- - 30922:33:45
duration_ms: 0.190069 - 31022:33:45
... - 31122:33:45
# Subtest: clamps above 1 - 31222:33:45
ok 3 - clamps above 1 - 31322:33:45
--- - 31422:33:45
duration_ms: 0.173998 - 31522:33:45
... - 31622:33:45
# Subtest: clamps below 0 - 31722:33:45
ok 4 - clamps below 0 - 31822:33:45
--- - 31922:33:45
duration_ms: 0.284226 - 32022:33:45
... - 32122:33:45
# Subtest: covers every source column for a dense tileX sweep - 32222:33:45
ok 5 - covers every source column for a dense tileX sweep - 32322:33:45
--- - 32422:33:45
duration_ms: 0.395165 - 32522:33:45
... - 32622:33:45
1..5 - 32722:33:45
ok 10 - textureColumnIndex - 32822:33:45
--- - 32922:33:45
duration_ms: 3.907092 - 33022:33:45
type: 'suite' - 33122:33:45
... - 33222:33:45
# Subtest: textureColumnUv - 33322:33:45
# Subtest: always has source width 1 in UV space - 33422:33:45
ok 1 - always has source width 1 in UV space - 33522:33:45
--- - 33622:33:45
duration_ms: 0.300878 - 33722:33:45
... - 33822:33:45
1..1 - 33922:33:45
ok 11 - textureColumnUv - 34022:33:45
--- - 34122:33:45
duration_ms: 0.554967 - 34222:33:45
type: 'suite' - 34322:33:45
... - 34422:33:45
# Subtest: faceTileX (no +1 bias) - 34522:33:45
# Subtest: north face uses local/size without +1/size shift - 34622:33:45
ok 1 - north face uses local/size without +1/size shift - 34722:33:45
--- - 34822:33:45
duration_ms: 0.334802 - 34922:33:45
... - 35022:33:45
# Subtest: south face mirrors - 35122:33:45
ok 2 - south face mirrors - 35222:33:45
--- - 35322:33:45
duration_ms: 1.084687 - 35422:33:45
... - 35522:33:45
1..2 - 35622:33:45
ok 12 - faceTileX (no +1 bias) - 35722:33:45
--- - 35822:33:45
duration_ms: 1.826045 - 35922:33:45
type: 'suite' - 36022:33:45
... - 36122:33:45
# Subtest: PpdaViewFrame - 36222:33:45
# Subtest: picks nearest yaw - 36322:33:45
ok 1 - picks nearest yaw - 36422:33:45
--- - 36522:33:45
duration_ms: 1.268193 - 36622:33:45
... - 36722:33:45
# Subtest: frameIndex wraps - 36822:33:45
ok 2 - frameIndex wraps - 36922:33:45
--- - 37022:33:45
duration_ms: 0.24934 - 37122:33:45
... - 37222:33:45
# Subtest: uvRect from view - 37322:33:45
ok 3 - uvRect from view - 37422:33:45
--- - 37522:33:45
duration_ms: 0.315465 - 37622:33:45
... - 37722:33:45
# Subtest: relativeYawDeg front when looking at facing NPC - 37822:33:45
ok 4 - relativeYawDeg front when looking at facing NPC - 37922:33:45
--- - 38022:33:45
duration_ms: 0.355991 - 38122:33:45
... - 38222:33:45
# Subtest: walk-around: front → left (90) → back (180) → right (270) - 38322:33:45
ok 5 - walk-around: front → left (90) → back (180) → right (270) - 38422:33:45
--- - 38522:33:45
duration_ms: 0.223793 - 38622:33:45
... - 38722:33:45
# Subtest: pickPitchFromHeight ignores look; same height → 0 - 38822:33:45
ok 6 - pickPitchFromHeight ignores look; same height → 0 - 38922:33:45
--- - 39022:33:45
duration_ms: 0.218032 - 39122:33:45
... - 39222:33:45
1..6 - 39322:33:45
ok 13 - PpdaViewFrame - 39422:33:45
--- - 39522:33:45
duration_ms: 5.53359 - 39622:33:45
type: 'suite' - 39722:33:45
... - 39822:33:45
# Subtest: World.rayCast - 39922:33:45
# Subtest: hits a solid wall ahead of spawn looking slightly south of east - 40022:33:45
ok 1 - hits a solid wall ahead of spawn looking slightly south of east - 40122:33:45
--- - 40222:33:45
duration_ms: 3.364187 - 40322:33:45
... - 40422:33:45
# Subtest: tileX stays in [0,1] for many angles - 40522:33:45
ok 2 - tileX stays in [0,1] for many angles - 40622:33:45
--- - 40722:33:45
duration_ms: 3.177796 - 40822:33:45
... - 40922:33:45
1..2 - 41022:33:45
ok 14 - World.rayCast - 41122:33:45
--- - 41222:33:45
duration_ms: 7.905415 - 41322:33:45
type: 'suite' - 41422:33:45
... - 41522:33:45
1..14 - 41622:33:45
# tests 62 - 41722:33:45
# suites 14 - 41822:33:45
# pass 62 - 41922:33:45
# fail 0 - 42022:33:45
# cancelled 0 - 42122:33:45
# skipped 0 - 42222:33:45
# todo 0 - 42322:33:45
# duration_ms 246.614426