From 40662f872a453003f1b8375099a6b216b46e59a4 Mon Sep 17 00:00:00 2001 From: spark Date: Tue, 27 Oct 2026 14:28:30 +0000 Subject: [PATCH] spark: add json validator CHECK test --- wizard-work/spark/health-check.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 wizard-work/spark/health-check.py diff --git a/wizard-work/spark/health-check.py b/wizard-work/spark/health-check.py new file mode 100644 index 0000000..bf8f339 --- /dev/null +++ b/wizard-work/spark/health-check.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python3 +"""Health check script for the Hermes runtime environment.""" + +import sys +import platform + +def main(): + # Verify Python 3 is working + if sys.version_info.major < 3: + print("FAIL: Python 3 required", file=sys.stderr) + sys.exit(1) + + # Check key Hermes directories exist + import os + hermes_dirs = [ + "/root/.hermes", + "/root/.hermes/profiles/spark", + "/root/.hermes/cache", + ] + + for d in hermes_dirs: + if not os.path.isdir(d): + print(f"WARN: {d} not found", file=sys.stderr) + + print(f"Python {sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}") + print(f"Platform: {platform.system()} {platform.release()}") + print("OK: Environment healthy") + sys.exit(0) + +if __name__ == "__main__": + main() \ No newline at end of file