Files
troupe-standup/wizard-work/spark/run_verify.py
T

19 lines
917 B
Python

#!/usr/bin/env python3
import os, sys, json
required_paths = {
"hermes_profiles_spark": "/root/.hermes/profiles/spark",
"wizard_outputs": "/root/.hermes/wizard-outputs",
"troupe_standup": "/root/troupe-standup",
}
results = {"timestamp_utc": __import__('datetime').datetime.now(__import__('datetime').timezone).isoformat(), "python_version": sys.version.split()[0], "check_type": "path_existence", "paths": {}}
all_ok = True
for name, path in required_paths.items():
exists = os.path.isdir(path)
results["paths"][name] = {"path": path, "exists": exists}
if not exists: all_ok = False
results["overall_result"] = "PASS" if all_ok else "FAIL"
print(json.dumps(results, indent=2))
output_file = "/root/.hermes/wizard-outputs/spark/verification_result.json"
with open(output_file, "w") as f: json.dump(results, f, indent=2)
print(f"\nResult written to: {output_file}")
sys.exit(0 if all_ok else 1)