#!/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"