Skip to content

fix(compose): report network and volume progress once, on their own row - #14467

Merged
ndeloof merged 1 commit into
docker:mainfrom
glours:14465-progress-events
Nov 5, 2026
Merged

ndeloof merged 1 commit into
docker:mainfrom
glours:14465-progress-events

Conversation

@glours

@glours glours commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

What this PR does

Since v5.4.0 networks and volumes are created by plan nodes, but createNetwork and createVolume still emitted their own events on top of the executor's, so up, create and run reported 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 on Creating for good, and --progress json consumers 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 as failed to create network <name>: …) with no details, instead of text: "Error" plus the raw daemon message in details. The final error on stderr and the exit code are unchanged, and container error rows already had this shape.

Related issue

Fixes #14465

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>
@glours
glours requested review from a team as code owners November 5, 2026 16:35
@glours
glours requested a review from ndeloof November 5, 2026 16:35

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

@ndeloof
ndeloof enabled auto-merge (rebase) November 5, 2026 16:41
@ndeloof
ndeloof merged commit 32820e8 into docker:main Nov 5, 2026
62 of 63 checks passed
@ndeloof
ndeloof deleted the 14465-progress-events branch November 5, 2026 16:47
@codecov

codecov Bot commented Nov 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] up reports each network and volume twice, and plan errors under internal IDs (service:web:1, network:front)

3 participants