Repository navigation
fix(progress): stop inverting success in EventProcessor.Done - #14503
Merged
Merged
Conversation
…on succeeds The documented contract of EventProcessor.Done is success == true when the operation succeeded, but Run was passing err != nil, so custom processors received an inverted value. No built-in writer uses the argument, which is why this went unnoticed. Pass err == nil, document the meaning of success on the interface, and add a test covering both the success and the failure case. Fixes docker#14498 Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
docker-agent
left a comment
Contributor
There was a problem hiding this comment.
Assessment: 🟢 APPROVE
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
ndeloof
reviewed
Nov 14, 2026
| On(events ...Resource) | ||
| // Done is triggered as a Compose operation completed | ||
| // Done is triggered as a Compose operation completed. | ||
| // success is true when the operation completed without error. |
Contributor
There was a problem hiding this comment.
nit (optional): say in the Done doc that success is also false when the operation is cancelled, so custom processors know how Ctrl-C is reported.
Contributor
Author
There was a problem hiding this comment.
Done in 7a70ab7. One caveat I left out of the doc to keep it generic: an attached up calls Done("up", …) once its containers are created, before it streams logs, so a Ctrl-C during the log phase comes after Done and isn't reported there.
ndeloof
previously approved these changes
Nov 14, 2026
4 of 5 tasks
…lure Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
ndeloof
approved these changes
Nov 16, 2026
3 tasks
CLHatch
added a commit
to GhostWriters/DockSTARTer2
that referenced
this pull request
Nov 17, 2026
…as success - docker/compose v5.7.1 -> v5.8.0, compose-go v2.16.2 -> v2.17.0 (with docker/cli v29.10.0). - v5.7.2 stopped inverting EventProcessor.Done's success flag (docker/compose#14503, reported as #14498), so Done now reads it as success. Kept in the same commit as the bump: either change alone shows successful runs as Error or failed ones as success. - Renovate opens compose and compose-go updates as PRs without automerging them, with a note to check event changes and test a build before merging.
CLHatch
added a commit
to GhostWriters/DockSTARTer2
that referenced
this pull request
Nov 17, 2026
…as success (#313) - docker/compose v5.7.1 -> v5.8.0, compose-go v2.16.2 -> v2.17.0 (with docker/cli v29.10.0). - v5.7.2 stopped inverting EventProcessor.Done's success flag (docker/compose#14503, reported as #14498), so Done now reads it as success. Kept in the same commit as the bump: either change alone shows successful runs as Error or failed ones as success. - Renovate opens compose and compose-go updates as PRs without automerging them, with a note to check event changes and test a build before merging.
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.
Runpassederr != nilas thesuccessargument ofEventProcessor.Done, so custom processors receivedtruewhen the operation failed. The built-in writers ignore the argument, which is why nothing showed in the CLI.This passes
err == nil, documents the meaning ofsuccesson the interface, and adds a test covering both outcomes.Fixes #14498
AI tool: Claude Code (fix and test drafted with it).