diff --git a/.github/workflows/develop-api.yaml b/.github/workflows/develop-api.yaml index f499f0fef..04ddb8c84 100644 --- a/.github/workflows/develop-api.yaml +++ b/.github/workflows/develop-api.yaml @@ -52,7 +52,7 @@ jobs: deploy-domain: lexbox.dev.languagetechnology.org integration-test-gha: - name: Self hosted integration tests + name: GHA integration tests needs: [build-api, set-version] uses: ./.github/workflows/integration-test-gha.yaml with: diff --git a/.github/workflows/integration-test-gha.yaml b/.github/workflows/integration-test-gha.yaml index 162b88ce6..732733806 100644 --- a/.github/workflows/integration-test-gha.yaml +++ b/.github/workflows/integration-test-gha.yaml @@ -1,4 +1,4 @@ -name: Self contained integration tests +name: GHA integration tests on: workflow_dispatch: inputs: @@ -45,14 +45,6 @@ jobs: kubectl apply -k ./deployment/gha kubectl wait --for=condition=Ready --timeout=120s pod -l 'app.kubernetes.io/component=controller' -n languagedepot kubectl wait --for=condition=Ready --timeout=120s pod -l 'app in (lexbox, ui, hg, db)' -n languagedepot - - name: status - if: failure() - run: | - kubectl describe pods -l 'app in (lexbox, ui, hg, db)' -n languagedepot - echo "========== LOGS ==========" - kubectl logs -l 'app in (lexbox, ui, hg, db)' -n languagedepot --prefix --all-containers --tail=50 - echo "========== INGRESS ==========" - kubectl logs -l 'app.kubernetes.io/name=ingress-nginx' -n languagedepot --prefix --all-containers --tail=50 - name: forward ingress run: kubectl port-forward service/ingress-nginx-controller 6579:80 -n languagedepot & - name: verify ingress @@ -67,4 +59,12 @@ jobs: TEST_PROJECT_CODE: 'sena-3' TEST_DEFAULT_PASSWORD: 'pass' run: dotnet test LexBoxOnly.slnf --logger GitHubActions --filter "Category=Integration|Category=FlakyIntegration" --blame-hang-timeout 40m + - name: status + if: failure() + run: | + kubectl describe pods -l 'app in (lexbox, ui, hg, db)' -n languagedepot + echo "========== LOGS ==========" + kubectl logs -l 'app in (lexbox, ui, hg, db)' -n languagedepot --prefix --all-containers --tail=50 + echo "========== INGRESS ==========" + kubectl logs -l 'app.kubernetes.io/name=ingress-nginx' -n languagedepot --prefix --all-containers --tail=50