Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Follow the shared guest-memory formatter in the help CI guard

pulse-triage[bot]c592c69b4dd2
diff --git a/scripts/tests/test_memory_troubleshooting_docs.py b/scripts/tests/test_memory_troubleshooting_docs.py
index 430c0573a9..e4b431d52f 100644
--- a/scripts/tests/test_memory_troubleshooting_docs.py
+++ b/scripts/tests/test_memory_troubleshooting_docs.py
@@ -308,8 +308,14 @@ class GuestMemoryInterpretationDocsTest(unittest.TestCase):
):
self.assertIn(distinction, guide)
patrol = (ROOT / "internal/ai/patrol_guest_memory.go").read_text()
- self.assertIn('"guest pressure unknown"', patrol)
- self.assertIn('"N/A (guest memory unavailable; not evidence of recovery)"', patrol)
+ # Patrol delegates the selected reading to the shared query/observer
+ # qualifier. Follow that production path instead of requiring duplicate
+ # wording in a caller that no longer owns the formatter.
+ self.assertIn("unifiedresources.QualifyGuestMemory(", patrol)
+ self.assertIn("}).Format(r.percent)", patrol)
+ evidence = (ROOT / "internal/unifiedresources/guest_memory.go").read_text()
+ self.assertIn('"guest pressure unknown"', evidence)
+ self.assertIn('"N/A (guest memory unavailable; not evidence of recovery)"', evidence)
def test_guidance_uses_existing_evidence_without_new_guest_reads(self):
guide = self.guidance()