backend-infra-engineer: Release v0.3.3 snapshot

This commit is contained in:
scawful
2025-11-21 21:35:50 -05:00
parent 3d71417f62
commit 476dd1cd1c
818 changed files with 65706 additions and 35514 deletions

28
scripts/agents/test-http-api.sh Executable file
View File

@@ -0,0 +1,28 @@
#!/usr/bin/env bash
# Basic health check for the HTTP API server.
# Usage: scripts/agents/test-http-api.sh [host] [port]
set -euo pipefail
HOST="${1:-127.0.0.1}"
PORT="${2:-8080}"
URL="http://${HOST}:${PORT}/api/v1/health"
if ! command -v curl >/dev/null 2>&1; then
echo "error: curl is required to test the HTTP API" >&2
exit 1
fi
echo "Checking HTTP API health endpoint at ${URL}"
for attempt in {1..10}; do
if curl -fsS "${URL}" >/dev/null; then
echo "HTTP API responded successfully (attempt ${attempt})"
exit 0
fi
echo "Attempt ${attempt} failed; retrying..."
sleep 1
done
echo "error: HTTP API did not respond at ${URL}" >&2
exit 1