From 10b05a883e6ae7ca62402b1d7f02d4380d8d8352 Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Wed, 22 May 2024 21:19:33 +0530 Subject: [PATCH] fix: debugging 502s in pinging (4) --- .github/workflows/quick-testing.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/quick-testing.yml b/.github/workflows/quick-testing.yml index e86d3fce..9dbf950e 100644 --- a/.github/workflows/quick-testing.yml +++ b/.github/workflows/quick-testing.yml @@ -9,6 +9,9 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + + - name: Set up opensearch directory + run: mkdir shuffle-database && chmod -R 755 shuffle-database - name: Build the stack run: docker-compose up -d @@ -31,7 +34,7 @@ jobs: done echo "No containers were found in a restarting state after $ATTEMPTS checks." - - name: Check if the response from the web service includes "Shuffle" + - name: Check if the response from the frontend contains the word "Shuffle" run: | RESPONSE=$(curl -s http://localhost:3001) if echo "$RESPONSE" | grep -q "Shuffle"; then @@ -65,7 +68,6 @@ jobs: fi echo "Received status code $STATUS_CODE. Retrying in $RETRY_INTERVAL seconds... ($i/$MAX_RETRIES)" - echo "Fetching last 30 lines of logs from container $CONTAINER_NAME..." logs_output=$(docker logs --tail 30 "$CONTAINER_NAME")