Files

820 lines
26 KiB
Plaintext

TAP version 13
# Subtest: T1 adopt writes the pointer from the units once; a failing check refuses check-failed
ok 1 - T1 adopt writes the pointer from the units once; a failing check refuses check-failed
---
duration_ms: 1239.585211
type: 'test'
...
# Subtest: T2 activate installs exactly the pointer's pm, claude and Console flags
ok 2 - T2 activate installs exactly the pointer's pm, claude and Console flags
---
duration_ms: 1893.216214
type: 'test'
...
# Subtest: T3 a hand-edited unit refuses unit-flags-drift, names the difference and changes nothing
# Subtest: pm
ok 1 - pm
---
duration_ms: 841.977403
type: 'test'
...
# Subtest: claude
ok 2 - claude
---
duration_ms: 831.209262
type: 'test'
...
# Subtest: console
ok 3 - console
---
duration_ms: 824.796726
type: 'test'
...
1..3
ok 3 - T3 a hand-edited unit refuses unit-flags-drift, names the difference and changes nothing
---
duration_ms: 2498.737332
type: 'test'
...
# Subtest: T4 each item 3 refusal changes nothing and logs one line with its code
# Subtest: copy-missing
ok 1 - copy-missing
---
duration_ms: 708.537478
type: 'test'
...
# Subtest: copy-unreachable
ok 2 - copy-unreachable
---
duration_ms: 716.17236
type: 'test'
...
# Subtest: copy-schema-unknown
ok 3 - copy-schema-unknown
---
duration_ms: 724.947367
type: 'test'
...
# Subtest: already-active
ok 4 - already-active
---
duration_ms: 708.779174
type: 'test'
...
# Subtest: instance-busy (another business active)
ok 5 - instance-busy (another business active)
---
duration_ms: 743.796979
type: 'test'
...
# Subtest: instance-busy (this business activating)
ok 6 - instance-busy (this business activating)
---
duration_ms: 757.529217
type: 'test'
...
# Subtest: drop-in-override
ok 7 - drop-in-override
---
duration_ms: 772.26007
type: 'test'
...
# Subtest: no-pointer
ok 8 - no-pointer
---
duration_ms: 409.493788
type: 'test'
...
1..8
ok 4 - T4 each item 3 refusal changes nothing and logs one line with its code
---
duration_ms: 5542.941793
type: 'test'
...
# Subtest: T5 an activate with no migration stops the Console then the bus, installs, starts the bus then the Console
ok 5 - T5 an activate with no migration stops the Console then the bus, installs, starts the bus then the Console
---
duration_ms: 1892.482204
type: 'test'
...
# Subtest: T6 a migration without --migrate rolls back with migration-needs-flag
ok 6 - T6 a migration without --migrate rolls back with migration-needs-flag
---
duration_ms: 1725.856604
type: 'test'
...
# Subtest: T7 --migrate takes the backup before the migration runs
ok 7 - T7 --migrate takes the backup before the migration runs
---
duration_ms: 1937.471126
type: 'test'
...
# Subtest: T8 a failed migration restores the backup and keeps the store it replaced
ok 8 - T8 a failed migration restores the backup and keeps the store it replaced
---
duration_ms: 1913.203095
type: 'test'
...
# Subtest: T9 a store outside the target's chain rolls back with store-newer
ok 9 - T9 a store outside the target's chain rolls back with store-newer
---
duration_ms: 1720.043282
type: 'test'
...
# Subtest: T10 each gate check failing alone rolls back and puts every file back
# Subtest: units-inactive
ok 1 - units-inactive
---
duration_ms: 5238.372908
type: 'test'
...
# Subtest: bus-status
ok 2 - bus-status
---
duration_ms: 5495.168204
type: 'test'
...
# Subtest: healthz
ok 3 - healthz
---
duration_ms: 4627.102002
type: 'test'
...
# Subtest: copy-check
ok 4 - copy-check
---
duration_ms: 4899.881323
type: 'test'
...
# Subtest: pm-launch-unconfirmed
ok 5 - pm-launch-unconfirmed
---
duration_ms: 5086.903224
type: 'test'
...
1..5
ok 10 - T10 each gate check failing alone rolls back and puts every file back
---
duration_ms: 25348.308056
type: 'test'
...
# Subtest: T10b the PM check needs exactly one launched line for a live run of this start
# Subtest: no launched line
ok 1 - no launched line
---
duration_ms: 5029.539916
type: 'test'
...
# Subtest: two lines
ok 2 - two lines
---
duration_ms: 4990.296568
type: 'test'
...
# Subtest: a changed word
ok 3 - a changed word
---
duration_ms: 5052.195949
type: 'test'
...
# Subtest: run not in launches list
ok 4 - run not in launches list
---
duration_ms: 5273.505003
type: 'test'
...
# Subtest: run started before the start
ok 5 - run started before the start
---
duration_ms: 5214.868642
type: 'test'
...
# Subtest: a human launch with no journal line
ok 6 - a human launch with no journal line
---
duration_ms: 5061.286129
type: 'test'
...
# Subtest: run for another business
ok 7 - run for another business
---
duration_ms: 5174.386279
type: 'test'
...
# Subtest: run not live
ok 8 - run not live
---
duration_ms: 5171.314484
type: 'test'
...
# Subtest: one well-formed line and a live run pass
ok 9 - one well-formed line and a live run pass
---
duration_ms: 1942.52578
type: 'test'
...
1..9
ok 11 - T10b the PM check needs exactly one launched line for a live run of this start
---
duration_ms: 42911.368119
type: 'test'
...
# Subtest: T11 a rollback whose gate fails too: rollback-failed, exit 2, both units stopped, no retry
ok 12 - T11 a rollback whose gate fails too: rollback-failed, exit 2, both units stopped, no retry
---
duration_ms: 9437.457984
type: 'test'
...
# Subtest: T12 rollback takes the previous copy from the log
ok 13 - T12 rollback takes the previous copy from the log
---
duration_ms: 3138.90127
type: 'test'
...
# Subtest: T13 a rollback across a migration needs --restore, then restores and goes live
ok 14 - T13 a rollback across a migration needs --restore, then restores and goes live
---
duration_ms: 3743.11124
type: 'test'
...
# Subtest: T14 events written after the backup need --events N with the right N
ok 15 - T14 events written after the backup need --events N with the right N
---
duration_ms: 4173.051904
type: 'test'
...
# Subtest: T14b a rollback --restore whose gate fails stops both units and skips item 6
ok 16 - T14b a rollback --restore whose gate fails stops both units and skips item 6
---
duration_ms: 6853.229967
type: 'test'
...
# Subtest: T14c a rollback without --restore whose gate fails runs item 6
ok 17 - T14c a rollback without --restore whose gate fails runs item 6
---
duration_ms: 5896.043784
type: 'test'
...
# Subtest: T15 --plan names the migration and the restore and changes nothing
ok 18 - T15 --plan names the migration and the restore and changes nothing
---
duration_ms: 2443.770155
type: 'test'
...
# Subtest: T26 --plan lists the commits an activate adds, after the migration lines
ok 19 - T26 --plan lists the commits an activate adds, after the migration lines
---
duration_ms: 1331.473305
type: 'test'
...
# Subtest: T27 --plan names each migration step, or says the steps cannot be read
ok 20 - T27 --plan names each migration step, or says the steps cannot be read
---
duration_ms: 1047.538287
type: 'test'
...
# Subtest: T25 --plan refuses copies-unrelated when neither copy is an ancestor of the other
ok 21 - T25 --plan refuses copies-unrelated when neither copy is an ancestor of the other
---
duration_ms: 478.308484
type: 'test'
...
# Subtest: T23 --plan reads the store without changing a file, stopped or held
# Subtest: stopped store
ok 1 - stopped store
---
duration_ms: 600.605659
type: 'test'
...
# Subtest: held store
ok 2 - held store
---
duration_ms: 585.372933
type: 'test'
...
1..2
ok 22 - T23 --plan reads the store without changing a file, stopped or held
---
duration_ms: 1186.476967
type: 'test'
...
# Subtest: T24 business-mismatch and capture-failed refuse with exit 3; a short id is a usage error
ok 23 - T24 business-mismatch and capture-failed refuse with exit 3; a short id is a usage error
---
duration_ms: 1344.049002
type: 'test'
...
# Subtest: T16 status prints the pointer, the log, the check, bus status and drift, and writes nothing
ok 24 - T16 status prints the pointer, the log, the check, bus status and drift, and writes nothing
---
duration_ms: 838.29575
type: 'test'
...
# Subtest: T19 a started line with no final line: status shows it and every changing verb refuses
ok 25 - T19 a started line with no final line: status shows it and every changing verb refuses
---
duration_ms: 1190.731303
type: 'test'
...
# Subtest: T20 a held run lock refuses run-locked without a log line; status and --plan still run
ok 26 - T20 a held run lock refuses run-locked without a log line; status and --plan still run
---
duration_ms: 1278.831201
type: 'test'
...
# Subtest: T21 a bus unit with no MOSAIC_CLAUDE_BIN: adopt and activate refuse no-claude-pin
ok 27 - T21 a bus unit with no MOSAIC_CLAUDE_BIN: adopt and activate refuse no-claude-pin
---
duration_ms: 1421.835179
type: 'test'
...
# Subtest: T22 the stopped store read: a -wal or -shm refuses store-unclean and is left alone; a clean read adds no file
# Subtest: bus.sqlite-wal
ok 1 - bus.sqlite-wal
---
duration_ms: 1720.736668
type: 'test'
...
# Subtest: bus.sqlite-shm
ok 2 - bus.sqlite-shm
---
duration_ms: 1722.457436
type: 'test'
...
# Subtest: clean
ok 3 - clean
---
duration_ms: 1874.316547
type: 'test'
...
1..3
ok 28 - T22 the stopped store read: a -wal or -shm refuses store-unclean and is left alone; a clean read adds no file
---
duration_ms: 5318.180624
type: 'test'
...
# Subtest: T28 a unit path, drop-in directory or drop-in file that cannot be read, or a relative unit path, refuses drop-in-override before any stop
# Subtest: unit path
ok 1 - unit path
---
duration_ms: 774.13138
type: 'test'
...
# Subtest: drop-in directory
ok 2 - drop-in directory
---
duration_ms: 780.614329
type: 'test'
...
# Subtest: drop-in file
ok 3 - drop-in file
---
duration_ms: 790.505154
type: 'test'
...
# Subtest: relative unit path
ok 4 - relative unit path
---
duration_ms: 782.742232
type: 'test'
...
1..4
ok 29 - T28 a unit path, drop-in directory or drop-in file that cannot be read, or a relative unit path, refuses drop-in-override before any stop
---
duration_ms: 3128.758769
type: 'test'
...
# Subtest: T29 a bus that stops during the held-store read: --plan says so, rollback --restore refuses restore-mismatch
# Subtest: --plan
ok 1 - --plan
---
duration_ms: 839.093715
type: 'test'
...
# Subtest: rollback --restore
ok 2 - rollback --restore
---
duration_ms: 2315.54792
type: 'test'
...
1..2
ok 30 - T29 a bus that stops during the held-store read: --plan says so, rollback --restore refuses restore-mismatch
---
duration_ms: 3155.1297
type: 'test'
...
# Subtest: T30 a copy check that agrees on another copy fails the gate with copy-check and rolls back
ok 31 - T30 a copy check that agrees on another copy fails the gate with copy-check and rolls back
---
duration_ms: 4673.801768
type: 'test'
...
# Subtest: T31 a quoted or escaped Environment= or ExecStart= is unreadable: refusals by name, nothing read from /a
# Subtest: Environment double quotes
ok 1 - Environment double quotes
---
duration_ms: 1660.486168
type: 'test'
...
# Subtest: Environment single quotes
ok 2 - Environment single quotes
---
duration_ms: 1653.067986
type: 'test'
...
# Subtest: Environment backslash
ok 3 - Environment backslash
---
duration_ms: 1672.014244
type: 'test'
...
# Subtest: ExecStart quotes
ok 4 - ExecStart quotes
---
duration_ms: 1645.105659
type: 'test'
...
# Subtest: Console ExecStart quotes
ok 5 - Console ExecStart quotes
---
duration_ms: 1650.579561
type: 'test'
...
1..5
ok 32 - T31 a quoted or escaped Environment= or ExecStart= is unreadable: refusals by name, nothing read from /a
---
duration_ms: 8282.317989
type: 'test'
...
# Subtest: T32 item 1: --pm-after-harness refuses a target without harness or a file that sets it, and passes without the PM
# Subtest: usage: not with --pm, and only for activate
ok 1 - usage: not with --pm, and only for activate
---
duration_ms: 634.055087
type: 'test'
...
# Subtest: pm-after-harness-target
ok 2 - pm-after-harness-target
---
duration_ms: 881.493442
type: 'test'
...
# Subtest: pm-after-harness-set
ok 3 - pm-after-harness-set
---
duration_ms: 1244.362318
type: 'test'
...
# Subtest: a pointer without pm
ok 4 - a pointer without pm
---
duration_ms: 821.380316
type: 'test'
...
# Subtest: phase 1 installs without --pm, skips pm_launched and writes the pending pointer
ok 5 - phase 1 installs without --pm, skips pm_launched and writes the pending pointer
---
duration_ms: 1932.325817
type: 'test'
...
1..5
ok 33 - T32 item 1: --pm-after-harness refuses a target without harness or a file that sets it, and passes without the PM
---
duration_ms: 5514.546887
type: 'test'
...
# Subtest: T33 item 2: read_pointer takes pmPending only as true beside pm false; a pending pointer refuses activate and shows in status
# Subtest: read_pointer
ok 1 - read_pointer
---
duration_ms: 1509.124873
type: 'test'
...
# Subtest: pm-pending, already-adopted and the status line
ok 2 - pm-pending, already-adopted and the status line
---
duration_ms: 2728.572621
type: 'test'
...
1..2
ok 34 - T33 item 2: read_pointer takes pmPending only as true beside pm false; a pending pointer refuses activate and shows in status
---
duration_ms: 4238.200657
type: 'test'
...
# Subtest: T34 item 3: pm-on refuses before any stop, passes with the PM, or puts the phase-1 bus back
# Subtest: not-pending
ok 1 - not-pending
---
duration_ms: 722.334004
type: 'test'
...
# Subtest: harness-unset
ok 2 - harness-unset
---
duration_ms: 2276.359406
type: 'test'
...
# Subtest: a launched line passes: the bus alone restarts with --pm
ok 3 - a launched line passes: the bus alone restarts with --pm
---
duration_ms: 3175.562584
type: 'test'
...
# Subtest: a failed pm_launched puts the phase-1 unit back: exit 1, still pending
ok 4 - a failed pm_launched puts the phase-1 unit back: exit 1, still pending
---
duration_ms: 5957.971553
type: 'test'
...
# Subtest: a failed phase-1 gate too: pm-on-down, exit 2, both units stopped
ok 5 - a failed phase-1 gate too: pm-on-down, exit 2, both units stopped
---
duration_ms: 9159.193792
type: 'test'
...
1..5
ok 35 - T34 item 3: pm-on refuses before any stop, passes with the PM, or puts the phase-1 bus back
---
duration_ms: 21292.378454
type: 'test'
...
# Subtest: T35 item 4: rollback from pending installs --pm; a plug-in kind the target lacks refuses by name
# Subtest: rollback from pending gates pm_launched on the old copy
ok 1 - rollback from pending gates pm_launched on the old copy
---
duration_ms: 3273.255693
type: 'test'
...
# Subtest: after the harness set, rollback refuses until harness is gone
ok 2 - after the harness set, rollback refuses until harness is gone
---
duration_ms: 4636.509591
type: 'test'
...
# Subtest: activate names every kind the target lacks
ok 3 - activate names every kind the target lacks
---
duration_ms: 1163.05299
type: 'test'
...
1..3
ok 36 - T35 item 4: rollback from pending installs --pm; a plug-in kind the target lacks refuses by name
---
duration_ms: 9073.481266
type: 'test'
...
# Subtest: T36 --plan shows the pending state and lists the row 169 refusals it can see
ok 37 - T36 --plan shows the pending state and lists the row 169 refusals it can see
---
duration_ms: 3373.982612
type: 'test'
...
# Subtest: T37 tester-port activate writes pointer and unit, replaces the port, and supported re-pin and rollback keep it
ok 38 - T37 tester-port activate writes pointer and unit, replaces the port, and supported re-pin and rollback keep it
---
duration_ms: 6338.40181
type: 'test'
...
# Subtest: T38 tester-port rollback to unsupported target drops flag in plan, steps, unit and pointer
ok 39 - T38 tester-port rollback to unsupported target drops flag in plan, steps, unit and pointer
---
duration_ms: 3368.780037
type: 'test'
...
# Subtest: T39 tester-port explicit unsupported target reads target copy and refuses before stopping either unit
ok 40 - T39 tester-port explicit unsupported target reads target copy and refuses before stopping either unit
---
duration_ms: 735.102973
type: 'test'
...
# Subtest: T40 tester-port invalid values refuse exit 4 before stopping, including tunnel and main ports
ok 41 - T40 tester-port invalid values refuse exit 4 before stopping, including tunnel and main ports
---
duration_ms: 772.969068
type: 'test'
...
# Subtest: T41 tester-port inherited activate to unsupported target drops it and retains drift refusal and failed-run recovery
ok 42 - T41 tester-port inherited activate to unsupported target drops it and retains drift refusal and failed-run recovery
---
duration_ms: 7937.289801
type: 'test'
...
# Subtest: T42 tester-port pm-on preserves pointer Console flags
ok 43 - T42 tester-port pm-on preserves pointer Console flags
---
duration_ms: 2915.34506
type: 'test'
...
# Subtest: T43 row 180 item 1: runs in one second get distinct activation ids, rollback sets and post-attempt stores
# Subtest: activate then pm-on on the same copy
ok 1 - activate then pm-on on the same copy
---
duration_ms: 2971.753362
type: 'test'
...
# Subtest: two restores: an old-form id and a suffixed one, each with its own post-attempt store
ok 2 - two restores: an old-form id and a suffixed one, each with its own post-attempt store
---
duration_ms: 6123.792445
type: 'test'
...
# Subtest: adopt takes the next free id too
ok 3 - adopt takes the next free id too
---
duration_ms: 594.727842
type: 'test'
...
# Subtest: all ten names taken: capture-failed before anything stops, and the log line names no activation
ok 4 - all ten names taken: capture-failed before anything stops, and the log line names no activation
---
duration_ms: 895.57371
type: 'test'
...
# Subtest: --restore takes an id with or without -1 to -9 and nothing else
ok 5 - --restore takes an id with or without -1 to -9 and nothing else
---
duration_ms: 944.851522
type: 'test'
...
1..5
ok 44 - T43 row 180 item 1: runs in one second get distinct activation ids, rollback sets and post-attempt stores
---
duration_ms: 11531.681045
type: 'test'
...
# Subtest: T44 row 180 item 2: --plan lists tester-port-invalid and tester-port-target with its other refusals
# Subtest: a bad tester port
ok 1 - a bad tester port
---
duration_ms: 2038.479711
type: 'test'
...
# Subtest: without --plan a bad port is usage before any pointer read
ok 2 - without --plan a bad port is usage before any pointer read
---
duration_ms: 358.431496
type: 'test'
...
# Subtest: a target Console without --tester-port
ok 3 - a target Console without --tester-port
---
duration_ms: 956.492385
type: 'test'
...
1..3
ok 45 - T44 row 180 item 2: --plan lists tester-port-invalid and tester-port-target with its other refusals
---
duration_ms: 3354.057486
type: 'test'
...
# Subtest: T45 row 181 items 2 and 3: the restore guard counts events and every COUNTED table
# Subtest: both modes count events and each listed table, and a table the store lacks counts 0
ok 1 - both modes count events and each listed table, and a table the store lacks counts 0
---
duration_ms: 1080.704987
type: 'test'
...
# Subtest: one instance_names row and no event refuses before any stop; --events 1 restores
ok 2 - one instance_names row and no event refuses before any stop; --events 1 restores
---
duration_ms: 4249.959581
type: 'test'
...
# Subtest: one usage_records row and no event refuses before any stop; --events 1 restores
ok 3 - one usage_records row and no event refuses before any stop; --events 1 restores
---
duration_ms: 4681.260876
type: 'test'
...
# Subtest: a listed table that cannot be read refuses restore-mismatch before any stop
ok 4 - a listed table that cannot be read refuses restore-mismatch before any stop
---
duration_ms: 2649.689993
type: 'test'
...
# Subtest: the in-run recount counts the listed tables too
ok 5 - the in-run recount counts the listed tables too
---
duration_ms: 3546.564906
type: 'test'
...
1..5
ok 46 - T45 row 181 items 2 and 3: the restore guard counts events and every COUNTED table
---
duration_ms: 16209.259814
type: 'test'
...
# Subtest: T46 row 181 item 4: every table in the bus schema is in exactly one of four lists
ok 47 - T46 row 181 item 4: every table in the bus schema is in exactly one of four lists
---
duration_ms: 4.139117
type: 'test'
...
# Subtest: T47 row 185 test 1: a same-schema activate leaves a whole backup and the log line names it
ok 48 - T47 row 185 test 1: a same-schema activate leaves a whole backup and the log line names it
---
duration_ms: 2116.005449
type: 'test'
...
# Subtest: T48 row 185 test 2: a gate failure on a same-schema activate rolls back without a restore
ok 49 - T48 row 185 test 2: a gate failure on a same-schema activate rolls back without a restore
---
duration_ms: 4844.596417
type: 'test'
...
# Subtest: T49 row 185 test 3: a same-schema rollback --restore restores, or refuses rows written after STAMP
# Subtest: no rows after STAMP: restores and goes live
ok 1 - no rows after STAMP: restores and goes live
---
duration_ms: 3317.750351
type: 'test'
...
# Subtest: one instance_names row after STAMP refuses post-backup-events; --events 1 restores
ok 2 - one instance_names row after STAMP refuses post-backup-events; --events 1 restores
---
duration_ms: 3878.557734
type: 'test'
...
1..2
ok 50 - T49 row 185 test 3: a same-schema rollback --restore restores, or refuses rows written after STAMP
---
duration_ms: 7196.823708
type: 'test'
...
# Subtest: T50 row 185 test 4: activate --plan prints the backup line and writes nothing
ok 51 - T50 row 185 test 4: activate --plan prints the backup line and writes nothing
---
duration_ms: 2415.328979
type: 'test'
...
# Subtest: T51 row 185 test 5: an activate with no store file takes no backup
ok 52 - T51 row 185 test 5: an activate with no store file takes no backup
---
duration_ms: 1997.976906
type: 'test'
...
# Subtest: T52 row 186: the activate plan's backup line says what the run will do
# Subtest: same schema
ok 1 - same schema
---
duration_ms: 2150.419664
type: 'test'
...
# Subtest: same schema with --migrate
ok 2 - same schema with --migrate
---
duration_ms: 2166.740218
type: 'test'
...
# Subtest: in chain with --migrate
ok 3 - in chain with --migrate
---
duration_ms: 2201.164603
type: 'test'
...
# Subtest: in chain without --migrate
ok 4 - in chain without --migrate
---
duration_ms: 2027.847306
type: 'test'
...
# Subtest: outside the chain
ok 5 - outside the chain
---
duration_ms: 1984.763622
type: 'test'
...
# Subtest: outside the chain with --migrate
ok 6 - outside the chain with --migrate
---
duration_ms: 1992.682994
type: 'test'
...
1..6
ok 53 - T52 row 186: the activate plan's backup line says what the run will do
---
duration_ms: 12524.777401
type: 'test'
...
# Subtest: T178 proxy proof header and path survive re-pin and rollback unchanged in the pointer and unit
ok 54 - T178 proxy proof header and path survive re-pin and rollback unchanged in the pointer and unit
---
duration_ms: 3135.272013
type: 'test'
...
# Subtest: T178 proxy proof pair survives a tester-port replacement as well
ok 55 - T178 proxy proof pair survives a tester-port replacement as well
---
duration_ms: 1880.18029
type: 'test'
...
# Subtest: T53 row 187: activate sets, carries and drops the proof pair
# Subtest: tests 1 and 9: the pair goes after the preview flags, before --send and the kept --tester-port, as the unit renders it; a new pair replaces it
ok 1 - tests 1 and 9: the pair goes after the preview flags, before --send and the kept --tester-port, as the unit renders it; a new pair replaces it
---
duration_ms: 5355.034283
type: 'test'
...
# Interrupted while running: packages/cli/tests/stack-release.test.mjs at /home/jwoltje/.t3/worktrees/mosaic-stack/magica-row285-r3/packages/cli/tests/stack-release.test.mjs:1:1