Skip to content

hooks enabled ui: hooks client messages issues #240

@evakhoni

Description

@evakhoni
  • beforeHook too verbose, even without --exporter-logs the whole lot of debug messages being printed.
  • the hooks output is dumped all at once as the hook finished - not live. for a long hook the client will appear frozen.
  • [exporter:beforeLease] at the end of the line, should be at the begging?
  • [exporter:beforeLease] printed for every line, even for a single command with multi-line output
 uv run jmp shell --selector hooks=both --duration 60s
[02/16/26 15:59:21] INFO     Acquiring lease 019c66bf-a42d-7744-8f68-0317b8e6ef07 for selector hooks=both for duration 0:01:00 [jumpstarter.client.lease]
                    INFO     Waiting for ready connection at /run/user/1000/jumpstarter-n3pc9ree/socket [jumpstarter.client.lease]
[02/16/26 15:59:32] INFO     Status changed: None -> LEASE_READY (version=3) [jumpstarter.client.status_monitor]
                    INFO     Starting hook subprocess... [exporter:beforeLease]
                    INFO     Creating PTY pair... [exporter:beforeLease]
                    INFO     PTY created: parent_fd=18, child_fd=19 [exporter:beforeLease]
                    INFO     Executing inline script (interpreter: /bin/sh) [exporter:beforeLease]
                    INFO     Spawning subprocess with command: ['/bin/sh', '-c', 'echo "Powering on..."\nj power on\nsleep 5\necho "ok"\nsleep 5\necho "done prelease"\n']
                             [exporter:beforeLease]
python ⚡hooks-test-both ➤                     INFO     Subprocess spawned with PID 2363346 [exporter:beforeLease]
                    INFO     Starting PTY output reader and process waiter (timeout=60) [exporter:beforeLease]
                    INFO     Task group created, starting tasks... [exporter:beforeLease]
                    INFO     Waiting for subprocess to complete... [exporter:beforeLease]
                    INFO     Powering on... [exporter:beforeLease]
                    INFO     ok [exporter:beforeLease]
                    INFO     done prelease [exporter:beforeLease]
                    INFO     Subprocess completed with code: 0 [exporter:beforeLease]
                    INFO     Hook executed successfully [exporter:beforeLease]

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions