Skip to content

Commit fd67e65

Browse files
Copilotdavidgamero
andcommitted
chore: Add kubectl logs step for debugging integration tests
Co-authored-by: davidgamero <[email protected]>
1 parent 7cc5bf6 commit fd67e65

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/integration-per-language.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@ jobs:
134134
kubectl get po -o json
135135
kubectl get svc -o json
136136
kubectl get deploy -o json
137+
- name: Print Pod Logs
138+
if: always()
139+
run: |
140+
echo "=== Deployment Logs ==="
141+
kubectl logs -l app.kubernetes.io/instance=test-release --all-containers=true --ignore-errors=true || true
142+
echo "=== Pod Descriptions ==="
143+
kubectl describe pods -l app.kubernetes.io/instance=test-release || true
137144
- name: Curl Endpoint
138145
run: |
139146
kubectl get svc
@@ -307,6 +314,13 @@ jobs:
307314
kubectl get po -o json
308315
kubectl get svc -o json
309316
kubectl get deploy -o json
317+
- name: Print Pod Logs
318+
if: always()
319+
run: |
320+
echo "=== Deployment Logs ==="
321+
kubectl logs -l app=testapp --all-containers=true --ignore-errors=true || true
322+
echo "=== Pod Descriptions ==="
323+
kubectl describe pods -l app=testapp || true
310324
- name: Curl Endpoint
311325
run: |
312326
kubectl get svc
@@ -471,6 +485,13 @@ jobs:
471485
kubectl get po -o json
472486
kubectl get svc -o json
473487
kubectl get deploy -o json
488+
- name: Print Pod Logs
489+
if: always()
490+
run: |
491+
echo "=== Deployment Logs ==="
492+
kubectl logs -l app=testapp --all-containers=true --ignore-errors=true || true
493+
echo "=== Pod Descriptions ==="
494+
kubectl describe pods -l app=testapp || true
474495
- name: Curl Endpoint
475496
run: |
476497
kubectl get svc

0 commit comments

Comments
 (0)