From c24c3a545c5d851d6b44c9b68cd5ebbb9d1f51a7 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sun, 22 Feb 2026 17:20:19 +0000 Subject: [PATCH] Fix API verify-deploy timeout by removing pod age filter The jq filter required pods to be younger than 60 seconds AND ready, but pods often take longer than 60s to become ready (alembic migrations, image pull, etc.), causing the check to never match. The image tag check is sufficient to confirm the new version is running. This aligns the API verify-deploy with the frontend verify-deploy which has no age filter. --- .drone.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9945003..28af895 100644 --- a/.drone.yml +++ b/.drone.yml @@ -287,13 +287,12 @@ steps: -H "Authorization: Bearer $TOKEN" \ -H "Accept: application/json" | \ jq --arg img "$EXPECTED_IMAGE" '[.items[] | select( - (now - (.status.startTime | fromdateiso8601)) < 60 and (.status.containerStatuses[]? | .ready == true) and (.spec.containers[]? | .image == $img) ) | {name: .metadata.name, age: (now - (.status.startTime | fromdateiso8601) | floor), image: .spec.containers[0].image, started: .status.startTime}]') COUNT=$(echo "$RESULT" | jq 'length' 2>/dev/null || echo 0) - echo " Attempt $i/60: $COUNT pod(s) younger than 60s, ready, running $EXPECTED_IMAGE" + echo " Attempt $i/60: $COUNT pod(s) ready, running $EXPECTED_IMAGE" if [ "$COUNT" -gt 0 ] 2>/dev/null; then echo "$RESULT" | jq -r '.[] | " \(.name) age=\(.age)s image=\(.image) started=\(.started)"'