mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-29 17:21:13 +01:00
The update read the pull progress stream and threw it away. The daemon reports most pull failures (rate limits, denied access, missing manifests) inside that stream, and a pull cut off by its two-minute timeout just ends early, so a failed pull went on to stop the container, recreate it on the old image and report a verified update. Read the stream to its end and fail the update on a reported error, a broken stream or an expired deadline, before anything is stopped. Give the pull its own eight-minute limit so large images on slow links can finish inside the fifteen-minute update window. When the pulled tag resolves to the image the container already runs, refuse with image_unchanged instead of restarting the service for nothing. Name each step that stops an update before any change with a typed reason code (inspection, precondition, image pull, unchanged image, stop, rename). Field telemetry showed every pre-change failure from current agents counted as "uncoded", which reads as agents awaiting the typed refusal vocabulary. The new codes fill the existing prerequisite and target_changed counters, so the telemetry schema is unchanged. A failed stop or rename call is no longer taken as proof that nothing changed, since the daemon may have acted before its response was lost. The container is read back: a stopped or renamed original gets its name back and is started again, and the result reports that as a rollback and whether it worked. The live Compose integration test now starts its services on an older image under the tag the update pulls, so each update is a real image change, and checks that a second update is refused as unchanged without restarting the container.