spark: add Hermes environment validation script and report
This commit is contained in:
1 parent
f674386fa5
commit
23eaa56f05
2 files changed
+60
No files matched your search
@@ -0,0 +1,24 @@
|
||||
# Hermes Spark Validation Report
|
||||
Date: 2026-10-23
|
||||
Lane: Snippet — quick code and micro-tasks
|
||||
|
||||
## Status: VALIDATED
|
||||
|
||||
All Hermes environment checks passed:
|
||||
|
||||
| Check | Status |
|
||||
|-------|--------|
|
||||
| Scratch directory exists | PASS |
|
||||
| Scratch directory writable | PASS |
|
||||
| Python available | PASS |
|
||||
| Spark profile exists | PASS |
|
||||
|
||||
## Artifact
|
||||
- Script: `/root/.hermes/profiles/spark/cache/scratch/validation_script.sh`
|
||||
- Verified: 2026-10-23T15:11:00Z
|
||||
|
||||
## Environment
|
||||
- Host: Linux (6.8.0-71-generic)
|
||||
- User: root
|
||||
- Profile: spark
|
||||
- Scratch: /root/.hermes/profiles/spark/cache/scratch
|
||||
@@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
# Hermes Environment Validation Script
|
||||
# Test 1: Scratch directory writable
|
||||
SCRATCH_DIR="/root/.hermes/profiles/spark/cache/scratch"
|
||||
TEST_FILE="$SCRATCH_DIR/validate.txt"
|
||||
|
||||
if [ -d "$SCRATCH_DIR" ]; then
|
||||
echo "SCRATCH_EXISTS=true"
|
||||
else
|
||||
echo "SCRATCH_EXISTS=false"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "test content" > "$TEST_FILE"
|
||||
if [ -f "$TEST_FILE" ]; then
|
||||
echo "SCRATCH_WRITABLE=true"
|
||||
rm -f "$TEST_FILE"
|
||||
else
|
||||
echo "SCRATCH_WRITABLE=false"
|
||||
fi
|
||||
|
||||
# Test 2: Check hermes-tools availability
|
||||
if command -v python3 &> /dev/null; then
|
||||
echo "PYTHON_AVAILABLE=true"
|
||||
else
|
||||
echo "PYTHON_AVAILABLE=false"
|
||||
fi
|
||||
|
||||
# Test 3: Check common Hermes paths
|
||||
if [ -d "/root/.hermes/profiles/spark" ]; then
|
||||
echo "SPARK_PROFILE_EXISTS=true"
|
||||
else
|
||||
echo "SPARK_PROFILE_EXISTS=false"
|
||||
fi
|
||||
|
||||
echo "VALIDATION_COMPLETE=true"
|
||||
Reference in new issue
Block a user