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