Files
stack/agents/magica/work/queue-329/gate/cli-lifecycle.test.txt

44 lines
5.0 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
command: ["node", "--test", "/home/jwoltje/.t3/worktrees/mosaic-stack/magica-row329/packages/cli/tests/lifecycle.test.mjs"]
TMPDIR: /mnt/storage/scratch/tmp/DtlzKA
begin: {"utc": "2026-10-24T20:20:39.422+00:00", "load1": "4.55"}
launch nice: 19
✔ row 194 T2: the human's launch runs an unlisted instance and launch.by through the pm branch, and closes with the run (542.704844ms)
✔ row 194 T2: a request past its 60 s never launches, and a refused check closes the request with its code (118.337858ms)
✔ row 194 T3: a --no-launch host closes each request launches-disabled and starts nothing (92.647715ms)
✔ row 194 T3: a limit refusal closes the request with its code and the limit in the launch log (250.936551ms)
✔ row 194 T4: terminate revokes and cancels at the verb, then the pass signals the run, which ends once (296.615776ms)
✔ row 194 T5: regenerate ends the run in the registry and starts a new run on the same workspace (550.332733ms)
✔ row 194 T5: a run that outlasts the request's mark closes the regenerate regenerate-timeout and starts nothing (2777.203043ms)
✔ row 194 V5: delete retires the name, renames the workspace to .retired/I-<transaction> at 0700, and a retry renames after workspace-rename-failed (115.476171ms)
✔ row 194 V5: a delete with no workspace commits and closes with the transaction (93.055752ms)
✔ row 281 T10: the delete pass closes a granted instance's first request grants-revoking and the host channel stays up (106.079907ms)
✔ row 194 D1.1 item 5: the CLI's launch, regenerate, terminate and delete end to end through the pass, and a closed refusal exits 3 with the request id (637.86775ms)
✔ row 194 T20: a store-only delete with a tracker bot closes naming the bot, and the CLI says to remove it in Vikunja (133.851913ms)
✔ row 194 T2a: a launch.revoke between the request and the pass closes it launch-revoked with no process; a done that fails once leaves the request taken and the next pass starts nothing (285.916527ms)
✔ row 194 T4: terminate signals a spawned run in the registry that the bus never bound, and not a run whose start time differs (406.135006ms)
✔ row 194 T9a: fire signals its bound run and a spawned but unbound registry run; a SIGTERM-ignoring runner gets SIGKILL and lifecycle.end.killed, and one whose kill fails gets lifecycle.end.alive (1077.684633ms)
✔ row 194 T9a: fire of a registry run with no runtime record reads lifecycle.end.alive with reason unknown, never killed (545.054179ms)
✔ row 194 T9a: a runner whose identity changed before the SIGTERM gets no signal, and one whose identity changed between the SIGTERM and the SIGKILL gets no SIGKILL (218.843898ms)
✔ row 194 T9a: V3 terminate of a SIGTERM-ignoring runner sends no SIGKILL (993.797089ms)
✔ row 194 T9b: a halt during a fire's stop sends no second SIGTERM, keeps the fire's deadline, writes one stop receipt with reason fire and the request, and counts the run; a fire while halted refuses (1696.605668ms)
✔ row 194 T15: while halted the pass closes a launch and a regenerate processing-halted and runs no thread pass, terminate signals, and after a resume a launch starts (332.440804ms)
✔ row 194 N6: a run spawned after a terminate's verb survives its pass, and the next terminate ends it (529.726174ms)
✔ row 194 T6: a delete leaves the run evidence bytes unchanged, and the retired name refuses a create and a launch (327.537532ms)
✔ row 194 T11: two stack roots with the same business id; a launch, a terminate and a delete in one leave the other byte-identical (418.642516ms)
usage: {"event":"usage-unknown","business":"acme","run":"r43ffb26f871c","instance":"chief","turn":"8391b375-ae37-46a8-aa4a-b52b07b48dfb","source":"@none","code":"baseline-unknown"}
usage: {"event":"usage-unknown","business":"acme","run":"r43ffb26f871c","instance":"chief","turn":"86f8c039-c4ce-4361-adcf-2722c6aee64c","source":"@none","code":"baseline-unknown"}
usage: {"event":"usage-unknown","business":"acme","run":"r43ffb26f871c","instance":"chief","turn":"9ff2c775-1e47-4e7a-be0d-27596b2b4811","source":"@none","code":"baseline-unknown"}
usage: {"event":"usage-unknown","business":"acme","run":"r43ffb26f871c","instance":"chief","turn":"640785e3-d28d-494b-aaf6-1a4f540f17e0","source":"@none","code":"baseline-unknown"}
usage: {"event":"usage-unknown","business":"acme","run":"r43ffb26f871c","instance":"chief","turn":"cc759ca4-57ee-4eec-a3d9-aa61d36d9374","source":"@none","code":"baseline-unknown"}
usage: {"event":"usage-unknown","business":"acme","run":"r43ffb26f871c","instance":"chief","turn":"3b86bcf2-2433-439d-b7f4-bc9f7da8c5d1","source":"@none","code":"baseline-unknown"}
usage: {"event":"usage-unknown","business":"acme","run":"r43ffb26f871c","instance":"chief","turn":"ab0b58e0-5589-472b-af25-36a4367f8f56","source":"@none","code":"baseline-unknown"}
✔ row 194 D3 item 5: the chief's session hires with its tool and launches its hire in the same session, then fires it (1439.202864ms)
ℹ tests 24
ℹ suites 0
ℹ pass 24
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 14158.661414