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

30 lines
2.4 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/instances.test.mjs"]
TMPDIR: /mnt/storage/scratch/tmp/9ZhpXU
begin: {"utc": "2026-10-24T20:20:07.541+00:00", "load1": "4.56"}
launch nice: 19
organization: {"event":"reload-needs-restart","business":"acme"}
organization: {"event":"reload-needs-restart","business":"acme"}
✔ row 165 CLI: instance add puts an instance in the file, validate exits 0, the log names the human, and the instance binds with no restart (row 194, T1) (172.671571ms)
✔ row 194 CLI: a bus whose boot credential references differ from the file answers restart needed, and doesn't bind the instance (D3 item 3) (86.039331ms)
✔ row 165 CLI: instance set passes the vars file and --no-launch, and a vars-only change needs no restart (141.831725ms)
✔ row 165 CLI: a refusal names its code and why, exits 2 and keeps the bytes (78.134966ms)
✔ row 165 CLI: usage errors exit 4 before any bus call, and an agent session is refused (63.803792ms)
✔ row 165: scripts/mosaic sends business instances, instance and (row 194) veto to packages/cli, and validate still to packages/business (221.877448ms)
✔ row 194 CLI V6: veto keep, unkeep, nohire and hire write through veto.set, the read shows kept and noHire, and a no-op refuses (115.460747ms)
✔ row 194 CLI: the read lists each instance's running run from the bus claims (72.547217ms)
✔ row 194 CLI D1.1 item 5: launch and regenerate poll instance.request and print the run; a done with a refusal exits 3 with its code and the request id (80.559138ms)
✔ row 194 CLI D1.1 item 5: an open request at --wait exits 3 with its id, and a taken one with no done is outcome-unknown (1135.980916ms)
✔ row 194 CLI: a request cancelled by a terminate exits 3 request-cancelled (67.601282ms)
✔ row 194 CLI V3: terminate prints the runs, the cancelled and the taken requests, and nothing held refuses not-held (69.979671ms)
✔ row 194 CLI V5: delete polls to the transaction and the read lists the name retired; workspace-rename-failed names the transaction (128.6956ms)
✔ row 239 T5 CLI: a delete closed -revoked says the tokens may already be revoked; a plain revision-conflict doesn't (99.909892ms)
✔ row 194 CLI: lifecycle and veto usage errors exit 4 before any bus call (75.420903ms)
ℹ tests 15
ℹ suites 0
ℹ pass 15
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 2759.65662