Add health checks and runtime monitoring #3

Closed
opened 2026-05-14 04:47:39 +00:00 by Mark · 0 comments
Owner

The container currently has a basic Docker healthcheck (curl -f http://localhost:6080/vnc.html), but lacks:

  • Process health: Verify Xvfb, openbox, x11vnc, and noVNC are all running via supervisorctl
  • Display health: Verify the X11 display is actually accepting connections (xdpyinfo)
  • Automation health: Verify pyautogui can take a screenshot successfully
  • Structured metrics: Expose widget counts, screenshot latency, action log rate

Files to modify:

  • entrypoint.sh — add readiness probe
  • testenv/automation.py — add healthcheck() method
  • New testenv/health.py — health check aggregator

Why: In CI and long-running test sessions, silent failures (e.g. Xvfb crash) are hard to diagnose without explicit health signals.

The container currently has a basic Docker healthcheck (`curl -f http://localhost:6080/vnc.html`), but lacks: - **Process health:** Verify Xvfb, openbox, x11vnc, and noVNC are all running via supervisorctl - **Display health:** Verify the X11 display is actually accepting connections (`xdpyinfo`) - **Automation health:** Verify pyautogui can take a screenshot successfully - **Structured metrics:** Expose widget counts, screenshot latency, action log rate Files to modify: - `entrypoint.sh` — add readiness probe - `testenv/automation.py` — add `healthcheck()` method - New `testenv/health.py` — health check aggregator **Why:** In CI and long-running test sessions, silent failures (e.g. Xvfb crash) are hard to diagnose without explicit health signals.
Mark 2026-05-22 19:38:02 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/kimi_agent_app_testing_environment_setup#3
No description provided.