@devries-cameron20 / composio-1 / commits / 26bc3d08a
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

ci(docs): monitor toolkit routes

jkomyno committed Aug 25, 2026 at 03:31 UTC 26bc3d08a1dc3612194f261c80be5ec68243e5c7
1 file changed +22 -5
.github/workflows/docs.health-check.yml
+22 -5
@@ -26,6 +26,11 @@ jobs:
26 local label="$1"
27 local url="$2"
28 shift 2
29 + local expected_status=""
30 + if [[ "${1:-}" =~ ^[0-9]{3}$ ]]; then
31 + expected_status="$1"
32 + shift
33 + fi
34 CHECKED=$((CHECKED + 1))
35 local attempt=0
36 local STATUS="000"
@@ -35,14 +40,23 @@ jobs:
40 else
41 STATUS="000"
42 fi
38 - if [ "$STATUS" -ge 400 2>/dev/null ] || [ "$STATUS" = "000" ]; then
39 - attempt=$((attempt + 1))
40 - [ "$attempt" -lt 2 ] && sleep 3
41 - else
43 + if [ -n "$expected_status" ]; then
44 + [ "$STATUS" = "$expected_status" ] && break
45 + elif [ "$STATUS" != "000" ] && [ "$STATUS" -lt 400 ]; then
46 break
47 fi
48 + attempt=$((attempt + 1))
49 + [ "$attempt" -lt 2 ] && sleep 3
50 done
45 - if [ "$STATUS" -ge 400 2>/dev/null ] || [ "$STATUS" = "000" ]; then
51 + if [ -n "$expected_status" ]; then
52 + if [ "$STATUS" != "$expected_status" ]; then
53 + echo "FAIL: ${label} → ${STATUS} (expected ${expected_status})"
54 + echo "${label} → ${STATUS} (expected ${expected_status})" >> "$FAIL_FILE"
55 + FAIL_COUNT=$((FAIL_COUNT + 1))
56 + else
57 + echo " OK: ${label} → ${STATUS}"
58 + fi
59 + elif [ "$STATUS" = "000" ] || [ "$STATUS" -ge 400 ]; then
60 echo "FAIL: ${label} → ${STATUS}"
61 echo "${label} → ${STATUS}" >> "$FAIL_FILE"
62 FAIL_COUNT=$((FAIL_COUNT + 1))
@@ -97,6 +111,9 @@ jobs:
111 check_url "/docs/configuring-sessions" "${BASE_URL}/docs/configuring-sessions"
112 check_url "/cookbooks" "${BASE_URL}/cookbooks"
113 check_url "/toolkits" "${BASE_URL}/toolkits"
114 + check_url "/toolkits/github" "${BASE_URL}/toolkits/github" 200
115 + check_url "/toolkits/__definitely-not-a-toolkit__" \
116 + "${BASE_URL}/toolkits/__definitely-not-a-toolkit__" 404
117 check_url "/reference" "${BASE_URL}/reference"
118
119 # Public support knowledge