From fc62982aa06690fb8c992d61e7fd40eccf29b86a Mon Sep 17 00:00:00 2001 From: Aaron Boyle Date: Fri, 20 Jun 2025 15:47:27 +0100 Subject: [PATCH 1/3] updates to add sleep time between push and deploy api call and adds -i flag to curl command to get http status code --- .github/workflows/build-from-test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-from-test.yml b/.github/workflows/build-from-test.yml index a7275446e..a39e53a20 100644 --- a/.github/workflows/build-from-test.yml +++ b/.github/workflows/build-from-test.yml @@ -193,9 +193,12 @@ jobs: rm -rf '/tmp/image-${{ matrix.name }}-${{ env.ENVIRONMENT }}.tar' docker push ${{ steps.image_lowercase.outputs.lowercase }}-${{ env.CLEAN_NETWORK}}:${{ env.COMMIT_TAG }} + - name: Sleep for 20 Seconds + run: sleep 20 + - name: Notify Qovery of new image tag run: | - curl -X POST https://api.qovery.com/organization/${{ secrets.QOVERY_ORG_ID }}/container/deploy \ + curl -i -X POST https://api.qovery.com/organization/${{ secrets.QOVERY_ORG_ID }}/container/deploy \ -H "Authorization: Token ${{ secrets.QOVERY_API_TOKEN }}" \ -H "Content-Type: application/json" \ -d '{ From 81d73ea3b44e82abe7264162b996cb0b8ee3e2f5 Mon Sep 17 00:00:00 2001 From: Aaron Boyle Date: Fri, 20 Jun 2025 15:52:58 +0100 Subject: [PATCH 2/3] updates default to use QA env and workflow --- .github/workflows/test_integration_playwright.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_integration_playwright.yml b/.github/workflows/test_integration_playwright.yml index 4a186dbca..496e48881 100644 --- a/.github/workflows/test_integration_playwright.yml +++ b/.github/workflows/test_integration_playwright.yml @@ -11,7 +11,7 @@ on: deployment: required: true type: choice - default: "govtool.cardanoapi.io" + default: "p80-z6b8d2f7a-ze34e4cb2-gtw.z937eb260.rustrocks.fr" options: - "sanchogov.tools" - "staging.govtool.byron.network" @@ -31,7 +31,7 @@ on: - "preprod" workflow_run: - workflows: ["Build and deploy GovTool test stack"] + workflows: ["Check and Build QA"] types: [completed] branches: - test From d8134f0eb619e33fcd26b2240850e94dd731063f Mon Sep 17 00:00:00 2001 From: Aaron Boyle Date: Fri, 20 Jun 2025 15:55:32 +0100 Subject: [PATCH 3/3] adds sleep before tests run to allow deployment to complete --- .github/workflows/test_integration_playwright.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/test_integration_playwright.yml b/.github/workflows/test_integration_playwright.yml index 496e48881..a275ff55c 100644 --- a/.github/workflows/test_integration_playwright.yml +++ b/.github/workflows/test_integration_playwright.yml @@ -85,6 +85,9 @@ jobs: if: steps.cache-playwright-browsers.outputs.cache-hit != 'true' run: npx playwright install --with-deps + - name: Initial delay 5 mins + run: sleep 300 + - name: Run tests id: run-test run: |