✖ isRunId accepts the run id shape and nothing else (2.210226ms)
✔ a missing data root or runs directory lists nothing (2.603108ms)
✔ runs as a regular file lists nothing, as before (0.935946ms)
✔ listRunIds keeps r- names only, sorted oldest first (1.163969ms)
✔ listRunRecords returns each result, or null for an incomplete or unreadable one (2.413922ms)
✔ readRunRecord returns documents and artifacts in directory order (1.371064ms)
✔ readRunRecord is null for a missing run, a dangling link or a file (1.118632ms)
✔ readRunRecord and readRunDocument refuse an invalid run id before touching the disk (0.780695ms)
✔ readRunDocument reads only the three run documents (0.621037ms)
✔ a link inside the data root is followed (1.177301ms)
✔ a data root that is itself a link is trusted as configured (0.764799ms)
✔ a run directory linked out of the data root is never read (0.722632ms)
✔ a document linked out of the data root reads as null (0.995435ms)
✔ a runs directory linked out of the data root refuses (0.710336ms)
✔ a relative link that climbs out of the data root refuses (0.470174ms)
✔ a sibling whose name starts with the data root's name is outside it (0.553622ms)
✔ a link loop refuses instead of reading as missing (1.050635ms)
✔ an unreadable runs directory refuses instead of listing nothing (0.578181ms)
✔ an unreadable run directory refuses instead of reading as missing (0.593413ms)
✔ a link to the data root's parent is outside it (0.486943ms)
✔ listRunIds sorts whatever order the directory returns (0.94863ms)
✔ listRunRecords lists an r- name that isn't a valid run id, as before (0.588248ms)
✔ the readers write nothing (5.231385ms)
✔ no pointer is null (2.354597ms)
✔ the pointer release.sh writes reads back (1.773315ms)
✔ a pointer that isn't the version 1 shape refuses with exit 2 (2.415432ms)
✔ a pointer that is a directory refuses with exit 4 (1.450113ms)
✔ a state file linked out of the data root refuses (1.244576ms)
✔ a state directory linked out of the data root refuses (0.652045ms)
✔ a state directory linked out to nothing reads as no release and an empty log (0.621644ms)
✔ a missing log is empty (0.549717ms)
✔ the log reads oldest first and counts malformed lines (1.224628ms)
✔ last must be a positive integer (0.607716ms)
✔ the state readers write nothing (1.009192ms)
✔ list prints each run in the established format (89.320943ms)
✔ show prints the run in the established format (94.517441ms)
✔ show of a missing run and an invalid id exit 4 as before (144.124028ms)
✔ list and show refuse a runs directory linked out of the data root (170.44307ms)
✔ show refuses a run linked out of the data root; list reports it unknown (157.310275ms)
✔ list shows an r- name that isn't a valid run id, as before (89.274742ms)
✔ show refuses an invalid id before reading the config (45.834389ms)
ℹ tests 41
ℹ suites 0
ℹ pass 40
ℹ fail 1
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 861.630104

✖ failing tests:

test at packages/runs/tests/runs.test.mjs:13:1
✖ isRunId accepts the run id shape and nothing else (2.210226ms)
  AssertionError [ERR_ASSERTION]: r-aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
  
  true !== false
  
      at TestContext.<anonymous> (file:///home/jwoltje/darkwing-scratch/r56b/mutwt/packages/runs/tests/runs.test.mjs:16:12)
      at Test.runInAsyncScope (node:async_hooks:226:14)
      at Test.run (node:internal/test_runner/test:1402:25)
      at Test.start (node:internal/test_runner/test:1262:17)
      at startSubtestAfterBootstrap (node:internal/test_runner/harness:387:17) {
    generatedMessage: false,
    code: 'ERR_ASSERTION',
    actual: true,
    expected: false,
    operator: 'strictEqual',
    diff: 'simple'
  }
