Skip to content

fix: restore stoppingEvent/stoppedEvent helpers for plugin stop hook#13794

Merged
glours merged 1 commit into
docker:mainfrom
glours:fix-missing-stop-event-helpers
May 18, 2026
Merged

fix: restore stoppingEvent/stoppedEvent helpers for plugin stop hook#13794
glours merged 1 commit into
docker:mainfrom
glours:fix-missing-stop-event-helpers

Conversation

@glours
Copy link
Copy Markdown
Contributor

@glours glours commented May 18, 2026

What I did
The stop lifecycle hook added in 672dc14 calls stoppingEvent and stoppedEvent from pkg/compose/plugins.go, but the helpers had been removed by the earlier wrapper-cleanup in da530c7. The result was a broken go build for pkg/compose on upstream/main.

Restore the two helpers alongside the symmetric creating/created and removing/removed pairs so call sites in plugins.go match the existing pattern used in the same switch.

Related issue
N/A

(not mandatory) A picture of a cute animal, if possible in relation to what you did

The stop lifecycle hook added in 672dc14 calls stoppingEvent and
stoppedEvent from pkg/compose/plugins.go, but the helpers had been
removed by the earlier wrapper-cleanup in da530c7. The result was a
broken go build for pkg/compose on upstream/main.

Restore the two helpers alongside the symmetric creating/created and
removing/removed pairs so call sites in plugins.go match the existing
pattern used in the same switch.

Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 18, 2026 12:43
@glours glours requested a review from a team as a code owner May 18, 2026 12:43
@glours glours requested a review from ndeloof May 18, 2026 12:43
@glours glours self-assigned this May 18, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Restores the missing progress event helper functions used by the plugin stop lifecycle hook so pkg/compose builds again and the plugin progress reporting follows the same helper pattern as other lifecycle hooks.

Changes:

  • Reintroduces stoppingEvent and stoppedEvent helper functions in pkg/compose/progress.go.
  • Uses existing api.StatusStopping / api.StatusStopped status texts via newEvent to match the established creating/created and removing/removed pattern.

Copy link
Copy Markdown

@docker-agent docker-agent Bot left a comment

Choose a reason for hiding this comment

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

Assessment: 🟢 APPROVE

This PR correctly restores the stoppingEvent and stoppedEvent helper functions in pkg/compose/progress.go that were accidentally removed during the refactor in da530c723. The restored helpers follow the same pattern as the existing creatingEvent/createdEvent and removingEvent/removedEvent pairs, and the fix resolves the broken build caused by the missing functions referenced in plugins.go.

No issues found. The change is minimal, targeted, and correct.

@glours glours enabled auto-merge (rebase) May 18, 2026 12:47
@glours glours merged commit 71cd334 into docker:main May 18, 2026
81 of 83 checks passed
@glours glours deleted the fix-missing-stop-event-helpers branch May 18, 2026 13:12
@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

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.

3 participants