Repository navigation
fix(compose): report network and volume progress once, on their own row - #14467
Merged
Merged
Conversation
Networks and volumes are created by plan nodes, yet createNetwork and createVolume still emitted their own events on top of the executor's, so each line showed twice. A failing node also reported its error under the plan's internal ID (service:web:1, network:front), not under the row it had opened. Container rows stayed on Creating and consumers keying on the ID saw rows nothing opened. Make the executor the only emitter and name the row through one helper. Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
docker-agent
reviewed
Nov 5, 2026
docker-agent
left a comment
Contributor
There was a problem hiding this comment.
Assessment: 🟢 APPROVE
ndeloof
approved these changes
Nov 5, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
Since v5.4.0 networks and volumes are created by plan nodes, but
createNetworkandcreateVolumestill emitted their own events on top of the executor's, soup,createandrunreported each of them twice. A failing node also reported its error under the plan's internal ID (service:web:1,network:front) instead of the row it had opened: a container row stayed onCreatingfor good, and--progress jsonconsumers got rows nothing opened.The executor is now the only emitter, and its start, done and error events name the row through one helper.
Behavior change: the row of a failed network or volume operation now carries the error in
text(for a network, wrapped asfailed to create network <name>: …) with nodetails, instead oftext: "Error"plus the raw daemon message indetails. The final error on stderr and the exit code are unchanged, and container error rows already had this shape.Related issue
Fixes #14465