From 3803549a5e8a197ad4c38a20bf09587fac781aea Mon Sep 17 00:00:00 2001 From: gnezim Date: Tue, 28 Apr 2026 17:11:15 +0300 Subject: [PATCH] release-verify: add diagnostics for 503 errors - Enhanced wait-for-url.sh to capture HTTP status, response time, and size on failure - Added full response capture in release-verify.yml for debugging customer URL issues --- .gitea/workflows/release-verify.yml | 2 ++ scripts/ci/wait-for-url.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.gitea/workflows/release-verify.yml b/.gitea/workflows/release-verify.yml index bdb753ac..553d4cb8 100644 --- a/.gitea/workflows/release-verify.yml +++ b/.gitea/workflows/release-verify.yml @@ -53,6 +53,8 @@ jobs: echo "--- second hit on the same dict (expect HIT if nginx caches) ---" curl -sSI -A "$UA" --max-time 10 \ http://flights-ui.devwebzavod.ru/api/dictionary/1/world_regions | grep -iE "^HTTP|x-cache|x-envoy" || true + echo "--- Full response from /ru-ru/onlineboard (for debugging 503) ---" + curl -s -A "$UA" --max-time 10 http://flights-ui.devwebzavod.ru/ru-ru/onlineboard | head -30 || true - name: Notify (success) if: success() && env.TELEGRAM_BOT_TOKEN != '' diff --git a/scripts/ci/wait-for-url.sh b/scripts/ci/wait-for-url.sh index f345c4c5..c9ab7138 100755 --- a/scripts/ci/wait-for-url.sh +++ b/scripts/ci/wait-for-url.sh @@ -38,4 +38,6 @@ while [ "$attempt" -le "$MAX_ATTEMPTS" ]; do done echo "fail: $URL did not return 2xx after $MAX_ATTEMPTS attempts" >&2 +echo "--- Diagnostic: Attempting to reach the URL one more time to capture the error ---" >&2 +curl -sS -A "$UA" ${AUTH_ARGS[@]+"${AUTH_ARGS[@]}"} -w "\nHTTP_CODE=%{http_code}\nTIME=%{time_total}s\nSIZE=%{size_download}\n" -o /dev/null "$URL" || true exit 1