From c57117e298728b16e549eb073bb09bbbaf7dd59d Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Wed, 22 May 2024 21:04:07 +0530 Subject: [PATCH] fix: debugging 502s in pinging --- .github/workflows/quick-testing.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/quick-testing.yml b/.github/workflows/quick-testing.yml index b8e73daa..881f2474 100644 --- a/.github/workflows/quick-testing.yml +++ b/.github/workflows/quick-testing.yml @@ -44,7 +44,8 @@ jobs: - name: Register a user and check the status code run: | MAX_RETRIES=30 - RETRY_INTERVAL=2 + RETRY_INTERVAL=5 + CONTAINER_NAME="shuffle-backend" for (( i=1; i<=$MAX_RETRIES; i++ )) do @@ -60,6 +61,8 @@ jobs: exit 0 elif [ "$STATUS_CODE" -ne 502 ]; then echo "User registration failed with status code $STATUS_CODE." + echo "Fetching last 30 lines of logs from container $CONTAINER_NAME..." + docker logs --tail 30 "$CONTAINER_NAME" exit 1 fi