/ proof-of-concept / toy-instruments
Sign in
proof-of-concept / toy-instruments

Widget: draw the initial pluck/press shape at the widget's exaggeration, so amplitudes compare

Deploy to GitHub Pages · #17 · push by owner · main · bc03839 · .github/workflows/pages.yml ·
build 3m 11sRaw log
Runner
Job build on ubuntu-latest
Checking out proof-of-concept/toy-instruments at bc038396
Container started from catthehacker/ubuntu:act-latest
Cleaning up the job container
actions/checkout@v40s
▸ actions/checkout@v4
Using mochi's built-in checkout (actions/checkout@v4)
proof-of-concept/toy-instruments is already checked out at bc038396 (mochi checks out before the job starts)
actions/setup-node@v414s
▸ actions/setup-node@v4
Using cached actions/setup-node@v4 (49933ea5288c)
Attempting to download 22...
(node:21) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Bad credentials
Falling back to download directly from Node
Acquiring 22.23.3 - x64 from https://nodejs.org/dist/v22.23.3/node-v22.23.3-linux-x64.tar.gz
Extracting ...
[command]/usr/bin/tar xz --strip 1 --warning=no-unknown-keyword --overwrite -C /mochi/temp/2265330f-ccd3-4880-a6ec-5ab4073c23c0 -f /mochi/temp/0b2729ba-4aba-4795-8166-2c65d3f3c11f
Adding to the cache ...
Done
▾ Environment details
node: v22.23.3
npm: 10.9.9
yarn: 
WARNING: Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.
Run npm ci33s
▸ Run npm ci

> toy-instruments@0.1.0 prepare
> vite build -c vite.embed.config.ts

vite v7.3.7 building client environment for production...
transforming...
✓ 34 modules transformed.
rendering chunks...
computing gzip size...
embed-dist/toy-instruments-embed.js  1,065.67 kB │ gzip: 243.81 kB
✓ built in 27.33s

added 62 packages, and audited 63 packages in 32s

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

3 vulnerabilities (1 moderate, 2 critical)

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
Run npm test2m 13s
▸ Run npm test

> toy-instruments@0.1.0 test
> vitest run


 RUN  v3.2.7 /mochi/workspace

stdout | test/cymbal.test.ts > cymbal lattice > bending energy matches the plate (nu = 1/3) for bending, doming and twisting
cylinder bending energy / plate 0.9997
sphere bending energy / plate 0.9994
saddle bending energy / plate 0.9994
twist bending energy / plate 0.9994

stdout | test/cymbal.test.ts > cymbal lattice > a free flat plate rings near the (2,0) mode of a free circular plate
free (2,0) measured 67.4 Hz, ideal 69.8 Hz

stdout | test/cymbal.test.ts > cymbal lattice > energy balances with a glancing stick hit, friction, damping and rigid motion removed
contact samples 24 peak N 865 balance 7.47e-3

stdout | test/cymbal.test.ts > cymbal lattice > removing rigid motion leaves the plate with no net momentum and keeps the hit point vibrating
mean y 0.0000 mm, max |y| 2.252 mm

 ❯ test/cymbal.test.ts (4 tests | 1 failed) 78479ms
   ✓ cymbal lattice > bending energy matches the plate (nu = 1/3) for bending, doming and twisting  798ms
   ✓ cymbal lattice > a free flat plate rings near the (2,0) mode of a free circular plate  56247ms
   × cymbal lattice > energy balances with a glancing stick hit, friction, damping and rigid motion removed 9118ms
     → Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
   ✓ cymbal lattice > removing rigid motion leaves the plate with no net momentum and keeps the hit point vibrating  12314ms
 ✓ test/string.test.ts (5 tests) 5756ms
   ✓ solver > small mode-1 vibration oscillates at the linear frequency  807ms
   ✓ solver > conserves energy without damping and balances it with damping and a hammer  2712ms
   ✓ solver > mode 1 decays at the requested T60  2078ms
stdout | test/drum.test.ts > drum > small centre press rings near the ideal membrane fundamental
f01 measured 196.3 ideal 193.8

stdout | test/drum.test.ts > drum > mallet bounces off and energy balances
contact ms 8.58 peak N 22.0 balance 0.000003618597862471249

 ✓ test/drum.test.ts (3 tests) 7987ms
   ✓ drum > small centre press rings near the ideal membrane fundamental  3524ms
   ✓ drum > mallet bounces off and energy balances  4396ms
 ✓ test/antialias.test.ts (3 tests) 566ms
   ✓ anti-aliased pickup > R = 2: passes the audible band, removes what would fold back  316ms
 ✓ test/cache.test.ts (2 tests) 83ms
 ✓ test/partial.test.ts (1 test) 3833ms
   ✓ partial results > are prefixes of the finished run (delayed pickup, mallet)  3758ms
 ✓ test/hinge.test.ts (2 tests) 7ms

⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯

 FAIL  test/cymbal.test.ts > cymbal lattice > energy balances with a glancing stick hit, friction, damping and rigid motion removed
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
 ❯ test/cymbal.test.ts:66:3
     64|   }, 60000);
     65| 
     66|   it('energy balances with a glancing stick hit, friction, damping and…
       |   ^
     67|     const p = base({ rings: 7, hitAngle: 60, stickSpeed: 6, bowHeight:…
     68|     const d = deriveCymbal(p);

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯

⎯⎯⎯⎯⎯⎯ Unhandled Errors ⎯⎯⎯⎯⎯⎯

Vitest caught 1 unhandled error during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.

⎯⎯⎯⎯⎯⎯ Unhandled Error ⎯⎯⎯⎯⎯⎯⎯
Error: [vitest-worker]: Timeout calling "onTaskUpdate"
 ❯ Object.onTimeoutError node_modules/vitest/dist/chunks/rpc.-pEldfrD.js:53:10
 ❯ Timeout._onTimeout node_modules/vitest/dist/chunks/index.B521nVV-.js:59:62
 ❯ listOnTimeout node:internal/timers:585:17
 ❯ processTimers node:internal/timers:521:7


 Test Files  1 failed | 6 passed (7)
      Tests  1 failed | 19 passed (20)
     Errors  1 error
   Start at  17:02:11
   Duration  123.43s (transform 4.58s, setup 0ms, collect 6.50s, tests 96.71s, environment 2ms, prepare 8.14s)


ERROR (/mochi/workspace/test/cymbal.test.ts:66): Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
 ❯ test/cymbal.test.ts:66:3


⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯

Process completed with exit code 1.
Run npm run build

actions/configure-pages@v5

actions/upload-pages-artifact@v3

↑↓ move↵openescclose