Skip to content

Commit

Permalink
Better name, see k8s logs on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
rmunn committed Aug 19, 2024
1 parent fa43025 commit 530fe86
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/develop-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/integration-test-gha.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Self contained integration tests
name: GHA integration tests
on:
workflow_dispatch:
inputs:
Expand Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit 530fe86

Please sign in to comment.