Skip to content

hooks enabled: no WARNING displayed at the client for failing hooks with default onfailure warn #246

@evakhoni

Description

@evakhoni

both hooks fail-warn - no WARNING displayed at the client for either.

 uv run jmp shell --selector hooks=both --duration 30s
[02/17/26 19:17:23] INFO     Acquiring lease 019c6c9b-4ebe-7af6-ab70-e1d2c4a330eb for selector hooks=both for duration 0:00:30 [jumpstarter.client.lease]
                    INFO     Waiting for ready connection at /run/user/1000/jumpstarter-fauellrd/socket [jumpstarter.client.lease]
[02/17/26 19:17:24] 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=20, child_fd=21 [exporter:beforeLease]
python ⚡hooks-test-both ➤                     INFO     Executing inline script (interpreter: /bin/sh) [exporter:beforeLease]
                    INFO     Spawning subprocess with command: ['/bin/sh', '-c', 'exit 2'] [exporter:beforeLease]
                    INFO     Subprocess spawned with PID 2741431 [exporter:beforeLease]
                    INFO     Starting PTY output reader and process waiter (timeout=120) [exporter:beforeLease]
                    INFO     Task group created, starting tasks... [exporter:beforeLease]
                    INFO     Waiting for subprocess to complete... [exporter:beforeLease]
                    INFO     Subprocess completed with code: 2 [exporter:beforeLease]
[02/17/26 19:17:53] INFO     Lease 019c6c9b-4ebe-7af6-ab70-e1d2c4a330eb ended at 2026-02-17 19:17:53+02:00 [jumpstarter.client.lease]
                    INFO     Running afterLease hook (Ctrl+C to skip)... [jumpstarter_cli.shell]
                    INFO     Starting hook subprocess... [exporter:afterLease]
                    INFO     Creating PTY pair... [exporter:afterLease]
                    INFO     PTY created: parent_fd=21, child_fd=22 [exporter:afterLease]
                    INFO     Executing inline script (interpreter: /bin/sh) [exporter:afterLease]
                    INFO     Spawning subprocess with command: ['/bin/sh', '-c', 'exit 2'] [exporter:afterLease]
                    INFO     Subprocess spawned with PID 2742168 [exporter:afterLease]
                    INFO     Starting PTY output reader and process waiter (timeout=120) [exporter:afterLease]
                    INFO     Task group created, starting tasks... [exporter:afterLease]
                    INFO     Status changed: LEASE_READY -> AFTER_LEASE_HOOK (version=4) [jumpstarter.client.status_monitor]
                    INFO     Waiting for subprocess to complete... [exporter:afterLease]
                    INFO     Subprocess completed with code: 2 [exporter:afterLease]
                    INFO     Status changed: AFTER_LEASE_HOOK -> AVAILABLE (version=5) [jumpstarter.client.status_monitor]
                    INFO     afterLease hook completed [jumpstarter_cli.shell]  

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions