Skip to main content

Module watch

Module watch 

Source
Expand description

Watch a cloud build to completion, emitting BuildEvents.

Discovers jobs, streams each job’s logs concurrently, and maps cloud job lifecycle + SSE logs to the shared BuildEvent vocabulary so the cloud path renders through the same hm-render renderers as a local run.

A cloud job maps to a pipeline step (keyed by job.id); the cloud build is modeled as a single chain (chain_idx == 0, chain_count == 1).

Functions§

stream_job_logs_as_events
Stream one job’s SSE logs as BuildEvent::StepLog events.
watch_build
Watch build #number until terminal, emitting BuildEvents on tx.