homelab-codex-ws/services/control-plane
Oskar Kapala 98437d46b2 test(control-plane): atomic write and resilient loader coverage
11 new test cases in test_state_reliability.py covering:
- atomic_write_json: produces valid JSON, no .tmp left behind, overwrites,
  works with nested structures
- _load_actual_state: returns False on empty / truncated file, returns True
  on valid files, preserves last-known-good state across a parse failure
- reconcile: empty/truncated services.json or incidents.json generates zero
  actions (skip-cycle semantics proven end-to-end)
- healthy service with valid world state generates no spurious action

All 32 tests (11 new + 21 existing) pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-03 12:27:05 +02:00
..
src fix(supervisor): atomic writes + skip cycle on unreadable world state 2026-06-03 12:26:59 +02:00
tests test(control-plane): atomic write and resilient loader coverage 2026-06-03 12:27:05 +02:00
deploy-local.sh deploy: chmod/chown na /opt/homelab odporne na znikające pliki eventow 2026-06-01 14:35:19 +02:00
docker-compose.yml Add control plane deploy script and fix UI healthcheck 2026-05-18 21:34:57 +02:00
Dockerfile Add heartbeat updates and improve health checks in control-plane components 2026-05-12 20:59:46 +02:00
pyproject.toml feat(control-plane): route ha-diag-agent events through supervisor 2026-05-29 15:59:23 +02:00