From db94730fa59d9315d0f15757aa23ed6c3b94b0b4 Mon Sep 17 00:00:00 2001 From: poli0981 <127664709+poli0981@users.noreply.github.com> Date: Thu, 22 Oct 2026 23:22:15 +0700 Subject: [PATCH] ci(smoke): wait for the deploy to settle and retry the production checks (#152) Require the pushed commit three times in a row before checking production, and retry the header/route/API checks up to four times, 20 s apart. A deploy needs a short while to reach every Cloudflare edge location. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/production-smoke.yml | 57 ++++++++++++++++++-------- 1 file changed, 40 insertions(+), 17 deletions(-) diff --git a/.github/workflows/production-smoke.yml b/.github/workflows/production-smoke.yml index 27261f1..d7f65a1 100644 --- a/.github/workflows/production-smoke.yml +++ b/.github/workflows/production-smoke.yml @@ -28,37 +28,60 @@ jobs: timeout-minutes: 20 permissions: {} steps: + # A new deploy reaches Cloudflare's edge locations over a minute or so; + # until then some requests still hit the previous version. Wait until the + # commit has been served several times in a row. - name: Wait for this commit to go live if: github.event_name == 'push' env: SHA: ${{ github.sha }} run: | want="${SHA:0:7}" - for attempt in $(seq 1 60); do + streak=0 + for attempt in $(seq 1 90); do live=$(curl -fsS -A "$UA" --max-time 10 "$SITE/" | sed -n 's/.*