code.fuzzyworld.net

nordic-skating / CI

CI passed: bcbc446b2faa

Branch main · commit · started 2026-10-27 13:54:02 UTC · 1m 59s · runner truenas

✓ test · test · passed · 1m 38s
fw-runner truenas: test (test) in node:22
$ npm ci
npm warn deprecated glob@11.1.0: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me

added 377 packages, and audited 378 packages in 6s

108 packages are looking for funding
  run `npm fund` for details

2 vulnerabilities (1 low, 1 moderate)

To address all issues, run:
  npm audit fix

Run `npm audit` for details.
$ npm test

> nordic-skating@0.1.0 test
> vitest run --testTimeout=120000


 RUN  v5.0.3 /builds/nordic-skating

 ✓ test/cracks.test.ts (5 tests) 213ms
 ✓ test/settings.test.ts (5 tests) 794ms
   ✓ settings (5)
     ✓ gives each lake a weather of its own: mostly clear, sometimes snow, now and then a blizzard 554ms
 ✓ test/acoustics.test.ts (5 tests) 192ms
 ✓ test/input.test.ts (6 tests) 7ms
 ✓ test/strength.test.ts (4 tests) 6ms
stdout | test/lake.test.ts > lake > is mostly ordinary water, with narrow passes and stretches of open sea
pass 10.0%, ordinary 71.7%, sea 3.8%

stdout | test/lake.test.ts > lake > has every kind of real ice within reach of a skater, and impossible ice only when asked
impossible 0.0%, cracking 29.9%, singing 34.9%, safe 35.3% thinnest 21.7 mm
impossible 3.7%, cracking 26.1%, singing 34.9%, safe 35.3% thinnest 8.1 mm

stdout | test/lake.test.ts > lake > has islets in beds, with ice to skate on all round each, and none near a fork
444 islets in 300 km, in 26% of its half-kilometres

stdout | test/lake.test.ts > lake > has long islands with water both sides, clear of forks and of islets
60 islands in 300 km

 ✓ test/lake.test.ts (13 tests) 3958ms
   ✓ lake (13)
     ✓ is the same lake for the same seed, and another for another 1840ms
     ✓ is mostly ordinary water, with narrow passes and stretches of open sea 821ms
     ✓ has ice between its thinnest and thickest everywhere 398ms
     ✓ has long islands with water both sides, clear of forks and of islets 362ms
 ✓ test/skater.test.ts (19 tests) 86182ms
   ✓ skater (19)
     ✓ left alone, skates the lake for as long as you like, through every fork 32188ms
     ✓ moves smoothly, however it is steered: no jumps, no jerks 10543ms
     ✓ cannot be steered into a shore or onto an islet, however wide or narrow the lake 17544ms
     ✓ takes the left of a fork when steered left and the right when steered right 987ms
     ✓ can change its mind at a fork until the island begins, and then runs along its shore 326ms
     ✓ passes an island on the side it was steered towards on the way up to it 889ms
     ✓ left alone after being steered, goes on the way it was going, and does not go back 1824ms
     ✓ is slowed by snow lying on the ice, and picks up again off it 320ms
     ✓ keeps each pace: settles round its speed, in strides to match, and breathes by the same share 5622ms
     ✓ works up to a faster pace and eases down to a slower one over a few strides 480ms
     ✓ at a racing pace turns in a wider circle, and still keeps to the ice and clear of everything 14670ms

 Test Files  7 passed (7)
      Tests  57 passed (57)
   Start at  13:54:16
   Duration  86.49s (tests 99%)

$ npm run build

> nordic-skating@0.1.0 build
> tsc --noEmit && vite build

vite v8.3.4 building client environment for production...
transforming...
✓ 27 modules transformed.
rendering chunks...
computing gzip size...
dist/registerSW.js                      0.16 kB
dist/manifest.webmanifest               0.52 kB
dist/assets/tilt-off-Rfv58J41.png       5.19 kB
dist/index.html                         7.97 kB │ gzip:   2.88 kB
dist/assets/sound-off-9pUD14Fu.png     10.56 kB
dist/assets/sound-on-B_vqM_bS.png      11.14 kB
dist/assets/tilt-on-D6hBVPfJ.png       17.11 kB
dist/assets/skate-shoes-IlJyHadL.png   19.50 kB
dist/assets/index-DE5fkv30.css          3.97 kB │ gzip:   1.20 kB
dist/assets/index-DFwYcfjL.js         544.49 kB │ gzip: 142.21 kB

✓ built in 444ms

PWA v2.0.0
mode      generateSW
precache  22 entries (694.45 KiB)
files generated
  dist/sw.js
  dist/workbox-9c191d2f.js
✓ pages · deploy · passed · 12s
fw-runner truenas: pages (deploy) in node:22
note: GitLab Pages: the build runs as a check here; `fw deploy` publishes apps.
$ npm ci
npm warn deprecated glob@11.1.0: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me

added 377 packages, and audited 378 packages in 7s

108 packages are looking for funding
  run `npm fund` for details

2 vulnerabilities (1 low, 1 moderate)

To address all issues, run:
  npm audit fix

Run `npm audit` for details.
$ npm run build

> nordic-skating@0.1.0 build
> tsc --noEmit && vite build

vite v8.3.4 building client environment for production...
transforming...
✓ 27 modules transformed.
rendering chunks...
computing gzip size...
dist/registerSW.js                      0.16 kB
dist/manifest.webmanifest               0.52 kB
dist/assets/tilt-off-Rfv58J41.png       5.19 kB
dist/index.html                         7.97 kB │ gzip:   2.88 kB
dist/assets/sound-off-9pUD14Fu.png     10.56 kB
dist/assets/sound-on-B_vqM_bS.png      11.14 kB
dist/assets/tilt-on-D6hBVPfJ.png       17.11 kB
dist/assets/skate-shoes-IlJyHadL.png   19.50 kB
dist/assets/index-DE5fkv30.css          3.97 kB │ gzip:   1.20 kB
dist/assets/index-DFwYcfjL.js         544.49 kB │ gzip: 142.21 kB

✓ built in 434ms

PWA v2.0.0
mode      generateSW
precache  22 entries (694.45 KiB)
files generated
  dist/sw.js
  dist/workbox-9c191d2f.js
$ mv dist public
$ test -f public/index.html || (echo "no index.html at artifact root" && exit 1)
$ test -f public/manifest.webmanifest || (echo "no web manifest" && exit 1)
$ test -f public/sw.js || (echo "no service worker" && exit 1)