Repository navigation
fix: report stopped and missing containers in service health - #131
Merged
Merged
Conversation
Signed-off-by: Asahi Arataki <[email protected]>
7 of 13 tasks
Resolve conflicts with TMHSDigital#132 by keeping both changelog entries and both test imports. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: TM Hospitality Strategies <[email protected]>
1 task
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 changed
homelab_serviceHealthreads onedocker ps -aJSON snapshot and uses it for both the container table and the summary. Non-running containers, unhealthy checks, and checks that are still starting are listed as needing attention. An empty selection returns a clear message instead of claiming all containers are healthy.The service filter is shell-quoted, malformed output returns an error, and dry runs return their command description without a health verdict. Added the required changelog entry.
Why
Fixes #114. The previous command omitted stopped containers, and its table header made an empty result look nonempty. It also checked only unhealthy health checks, missing crashed or restarting containers.
The parsed fields and
--allbehavior follow the Docker container list reference.Type
Testing
cd mcp-server && npm run build && npm testpasses: 332 tests passed, 10 live-Pi tests skipped on Node 22.23.0.pytest tests/ -v --tb=shortpasses: 272 tests on Python 3.15.2.All 13 initial regression cases fail before the change and pass after. Coverage includes exited, dead, restarting, created, paused, removing, unhealthy, starting, and empty selections, plus valid, malformed, and dry-run output. An additional test checks service-filter shell quoting.
git diff --checkpasses.Checklist
Prepared with OpenAI Codex assistance. The commit includes the required DCO sign-off.
Hosted CI currently requires maintainer approval for this fork contribution (MCP Server CI run); the build/test jobs have not run on GitHub yet. Results above are local.