Files
localgenai/pyinfra/framework/compose/comfyui/smoke.sh

21 lines
540 B
Bash
Raw Normal View History

2026-06-08 15:31:50 +01:00
#!/usr/bin/env bash
# Smoke-test the running ComfyUI container. /system_stats should return
# device + memory info; /object_info should list registered nodes.
set -euo pipefail
HOST="${COMFYUI_HOST:-127.0.0.1:8188}"
echo "[smoke] GET /system_stats on $HOST"
curl -fsS "http://$HOST/system_stats" | python3 -m json.tool
echo
echo "[smoke] GET /object_info — node count"
curl -fsS "http://$HOST/object_info" | python3 -c "
import json, sys
data = json.load(sys.stdin)
print(f'{len(data)} nodes registered')
"
echo
echo "[smoke] passed"