Skip to content

Implement container health notifications to wslc events - #41763

Merged
Blue (OneBlue) merged 3 commits into
masterfrom
user/oneblue/health-events
Oct 2, 2026
Merged

Blue (OneBlue) merged 3 commits into
masterfrom
user/oneblue/health-events

Conversation

@OneBlue

Copy link
Copy Markdown
Collaborator

Summary of the Pull Request

This change adds support for listening to container health events via wslc events

PR Checklist

  • Closes: Link to issue #xxx
  • Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • Tests: Added/updated if needed and all pass
  • Localization: All end user facing strings can be localized
  • Dev docs: Added/updated if needed
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

Copilot AI balanced review requested due to automatic review settings October 1, 2026 21:14

Copilot AI 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.

Copilot review overview

🟢 Approval recommended

The focused implementation correctly forwards health transitions and includes comprehensive end-to-end validation.

Review effort: Balanced
Findings: None

What changed in this PR

Adds container health-status transitions to the wslc events stream.

Changes:

  • Maps Docker healthy/unhealthy events into WSLC container events.
  • Records health events without changing container lifecycle state.
  • Adds end-to-end coverage for text, filtering, and JSON output.
File Description
src/​windows/​wslcsession/​DockerEventTracker.h Defines health event types.
src/​windows/​wslcsession/​DockerEventTracker.cpp Maps Docker health actions.
src/​windows/​wslcsession/​WSLCContainer.cpp Records health events.
test/​windows/​wslc/​e2e/​WSLCE2EEventsTests.cpp Tests live and historical health events.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@OneBlue
Blue (OneBlue) marked this pull request as ready for review October 1, 2026 21:21
@OneBlue
Blue (OneBlue) requested review from a team as code owners October 1, 2026 21:21
@OneBlue
Blue (OneBlue) merged commit 394e8ad into master Oct 2, 2026
12 checks passed
@OneBlue
Blue (OneBlue) deleted the user/oneblue/health-events branch October 2, 2026 17:26
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