✔ shared copy: npm ci, pushed reachability, readonly/existing copy, webui delegation (354.654429ms)
✔ wrapper preserves Q81 lease and marker, rejects foreign/symlink; check uses effective roots (383.443487ms)
✔ bus unit copy/pm pins, install refuses all busy states and failed reads, drop-in refusal (481.582397ms)
✔ missing package manifest refuses before npm; npm failure removes the unpublished temp copy (236.947982ms)
✔ copy writes the Console paths at the full id, read-only, and leaves an existing copy alone (588.469657ms)
✔ copy refuses a commit off refactor, an unknown one, a worktree and a bad copies directory (509.598156ms)
✖ copy writes nothing when an archived path is missing at the commit (199.055746ms)
✔ a copy that loses the rename race leaves no read-only temp directory behind (364.360141ms)
✖ a copy whose rename fails with no target refuses, writes no copy and leaves no temp directory (322.700625ms)
✔ a copy that meets a target holding files says exists: and moves nothing into it (332.883854ms)
✖ a copy that meets an empty target directory replaces it by rename, not by moving into it (333.574359ms)
✔ serve runs from a copy: /healthz 200, the config check, roles and RELEASE from the copy, the queue from --checkout (630.225887ms)
✔ serve refuses a --checkout that is not an absolute directory path (211.428397ms)
✔ consoleReads runs the queue read under queueRoot and reads RELEASE under root (47.902274ms)
ℹ tests 14
ℹ suites 0
ℹ pass 11
ℹ fail 3
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 3634.525525

✖ failing tests:

test at packages/webui/tests/pinned-copy.test.mjs:146:1
✖ copy writes nothing when an archived path is missing at the commit (199.055746ms)
  AssertionError [ERR_ASSERTION]: The input did not match the regular expression /^stack-copy: git archive of [0-9a-f]{40} failed; no copy written$/m. Input:
  
  'stack-copy: refusing: 37004ce79600057dd165b81f195c9046da63e2ac is not reachable from refs/remotes/origin/refactor\n'
  
      at TestContext.<anonymous> (file:///mnt/storage/src/mosaic-stack-rocko-85/packages/webui/tests/pinned-copy.test.mjs:153:10)
      at async Test.run (node:internal/test_runner/test:1409:7)
      at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
    generatedMessage: true,
    code: 'ERR_ASSERTION',
    actual: 'stack-copy: refusing: 37004ce79600057dd165b81f195c9046da63e2ac is not reachable from refs/remotes/origin/refactor\n',
    expected: /^stack-copy: git archive of [0-9a-f]{40} failed; no copy written$/m,
    operator: 'match',
    diff: 'simple'
  }

test at packages/webui/tests/pinned-copy.test.mjs:197:1
✖ a copy whose rename fails with no target refuses, writes no copy and leaves no temp directory (322.700625ms)
  AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
  + actual - expected
  
  + '\n' +
  +   'up to date in 139ms\n' +
  +   'stack-copy: could not rename copy into /mnt/storage/scratch/tmp/webui-copy-x0oDI6/copies/d0f934e73e79443b4b8eca58f6991dfcd5de12fd\n'
  - 'webui-service: could not rename the copy into /mnt/storage/scratch/tmp/webui-copy-x0oDI6/copies/d0f934e73e79443b4b8eca58f6991dfcd5de12fd\n'
  
      at TestContext.<anonymous> (file:///mnt/storage/src/mosaic-stack-rocko-85/packages/webui/tests/pinned-copy.test.mjs:200:10)
      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      at async Test.run (node:internal/test_runner/test:1409:7)
      at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
    generatedMessage: true,
    code: 'ERR_ASSERTION',
    actual: '\nup to date in 139ms\nstack-copy: could not rename copy into /mnt/storage/scratch/tmp/webui-copy-x0oDI6/copies/d0f934e73e79443b4b8eca58f6991dfcd5de12fd\n',
    expected: 'webui-service: could not rename the copy into /mnt/storage/scratch/tmp/webui-copy-x0oDI6/copies/d0f934e73e79443b4b8eca58f6991dfcd5de12fd\n',
    operator: 'strictEqual',
    diff: 'simple'
  }

test at packages/webui/tests/pinned-copy.test.mjs:214:1
✖ a copy that meets an empty target directory replaces it by rename, not by moving into it (333.574359ms)
  AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
  + actual - expected
  
  + 'copied: /mnt/storage/scratch/tmp/webui-copy-YvA6Ih/copies/d0f934e73e79443b4b8eca58f6991dfcd5de12fd\n'
  - 'copied: /mnt/storage/scratch/tmp/webui-copy-YvA6Ih/copies/d0f934e73e79443b4b8eca58f6991dfcd5de12fd\n' +
  -   "install it with: scripts/webui-service.sh install --copy d0f934e73e79443b4b8eca58f6991dfcd5de12fd, with the unit's flags\n"
  
      at TestContext.<anonymous> (file:///mnt/storage/src/mosaic-stack-rocko-85/packages/webui/tests/pinned-copy.test.mjs:217:10)
      at process.processTicksAndRejections (node:internal/process/task_queues:104:5)
      at async Test.run (node:internal/test_runner/test:1409:7)
      at async Test.processPendingSubtests (node:internal/test_runner/test:974:7) {
    generatedMessage: true,
    code: 'ERR_ASSERTION',
    actual: 'copied: /mnt/storage/scratch/tmp/webui-copy-YvA6Ih/copies/d0f934e73e79443b4b8eca58f6991dfcd5de12fd\n',
    expected: "copied: /mnt/storage/scratch/tmp/webui-copy-YvA6Ih/copies/d0f934e73e79443b4b8eca58f6991dfcd5de12fd\ninstall it with: scripts/webui-service.sh install --copy d0f934e73e79443b4b8eca58f6991dfcd5de12fd, with the unit's flags\n",
    operator: 'strictEqual',
    diff: 'simple'
  }
