From 67e42efb5bbdaa9935ae4b9aef9b272057d9e540 Mon Sep 17 00:00:00 2001 From: Steve Breker Date: Wed, 23 Oct 2024 16:02:00 -0700 Subject: [PATCH] Add debugging output to integration test --- .github/workflows/integration-tests.yml | 33 ++++++++++++++++++++----- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 5c946f4f28..09e69c77d3 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -23,6 +23,13 @@ jobs: run: | sudo sysctl -w vm.max_map_count=262144 docker compose up -d percona elasticsearch gearmand + + - name: Set Keycloak Realm File env var + run: echo "REALM_FILE=../test/etc/keycloak/realm.json" >> $GITHUB_ENV + - name: Launch Keycloak service + run: | + docker compose -f ${{ github.workspace }}/docker/docker-compose.keycloak.yml up -d + - name: Setup PHP uses: shivammathur/setup-php@v2 with: @@ -102,11 +109,11 @@ jobs: CYPRESS_BASE_URL: http://localhost run: npx cypress run -b ${BROWSER,} - - name: Set Keycloak Realm File env var - run: echo "REALM_FILE=../test/etc/keycloak/realm.json" >> $GITHUB_ENV - - name: Launch Keycloak service - run: | - docker compose -f ${{ github.workspace }}/docker/docker-compose.keycloak.yml up -d + # - name: Set Keycloak Realm File env var + # run: echo "REALM_FILE=../test/etc/keycloak/realm.json" >> $GITHUB_ENV + # - name: Launch Keycloak service + # run: | + # docker compose -f ${{ github.workspace }}/docker/docker-compose.keycloak.yml up -d - name: Wait for Keycloak to be Ready run: | echo "Waiting for Keycloak to be ready..." @@ -142,8 +149,22 @@ jobs: env: BROWSER: ${{ matrix.browser }} CYPRESS_VIDEO: false - CYPRESS_BASE_URL: http://localhost + CYPRESS_BASE_URL: http://127.0.0.1 run: npx cypress run --config-file cypress.config.oidc.js --browser ${BROWSER,} + + - name: Ensure NGINX is Running + run: sudo systemctl status nginx + - name: Output NGINX error log + if: always() + run: sudo cat /var/log/nginx/error.log + - name: Output AtoM error prod log + if: always() + run: sudo cat ./log/qubit_prod.log + - name: Dump Keycloak log + if: always() + run: | + docker compose -f ${{ github.workspace }}/docker/docker-compose.keycloak.yml logs keycloak + - name: Tear down services if: always() run: |