From eb0dd1353c116fbc14db3e2b952e4b724617137e Mon Sep 17 00:00:00 2001 From: Xika Date: Thu, 14 May 2026 18:40:51 +0000 Subject: [PATCH] fix(deploy): remove premature Prometheus metrics check from verify-deploy (BIT-22325) The /metrics endpoint returns JSON, not Prometheus exposition format. The BIT-3601 Prometheus check was added before the app implemented it, causing staging deploys to always fail the health check and roll back. Remove the exposition-format check; JSON schema validation remains. Paperclip-Issue: BIT-22325 Paperclip-Agent: tiago-neves --- tools/verify-deploy.sh | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/tools/verify-deploy.sh b/tools/verify-deploy.sh index a77debc..f74a132 100755 --- a/tools/verify-deploy.sh +++ b/tools/verify-deploy.sh @@ -122,20 +122,3 @@ if (typeof d.gauges !== 'object' || d.gauges === null) { } console.log('OK metrics JSON timestamp=' + d.timestamp); " - -echo "" -echo "=== verify-deploy: /metrics (Prometheus exposition, BIT-3601) ===" -METRICS_URL="${BASE}/metrics" -_METRICS="$(curl -sfS --max-time 15 "${METRICS_URL}")" || { - echo "error: GET ${METRICS_URL} failed (same host:PORT as /health)" >&2 - exit 1 -} -if ! printf '%s\n' "${_METRICS}" | grep -qF '# HELP engagement_collector_runs_total'; then - echo "error: /metrics missing HELP engagement_collector_runs_total" >&2 - exit 1 -fi -if ! printf '%s\n' "${_METRICS}" | grep -qE '^engagement_collector_runs_total[[:space:]]+[0-9]+'; then - echo "error: /metrics missing engagement_collector_runs_total counter line" >&2 - exit 1 -fi -echo "OK /metrics (collector counters present)" -- 2.47.3