|
21 | 21 | - name: Run the extension developer e2e test |
22 | 22 | run: make extension-developer-e2e |
23 | 23 |
|
| 24 | + - name: Collect pod logs and descriptions on failure |
| 25 | + if: failure() |
| 26 | + run: | |
| 27 | + echo "Fetching pod logs and descriptions..." |
| 28 | + kubectl get pods -n olmv1-system -o wide || true |
| 29 | + for pod in $(kubectl get pods -n olmv1-system -o name); do |
| 30 | + echo "Collecting logs for $pod..." |
| 31 | + kubectl logs $pod -n olmv1-system || true |
| 32 | + echo "Describing $pod..." |
| 33 | + kubectl describe $pod -n olmv1-system || true |
| 34 | + done |
| 35 | + env: |
| 36 | + KUBECONFIG: ${{ secrets.KUBECONFIG }} |
| 37 | + |
24 | 38 | e2e-kind: |
25 | 39 | runs-on: ubuntu-latest |
26 | 40 | steps: |
|
35 | 49 | - name: Run e2e tests |
36 | 50 | run: ARTIFACT_PATH=/tmp/artifacts make test-e2e |
37 | 51 |
|
| 52 | + - name: Collect pod logs and descriptions on failure |
| 53 | + if: failure() |
| 54 | + run: | |
| 55 | + echo "Fetching pod logs and descriptions..." |
| 56 | + kubectl get pods -n olmv1-system -o wide || true |
| 57 | + for pod in $(kubectl get pods -n olmv1-system -o name); do |
| 58 | + echo "Collecting logs for $pod..." |
| 59 | + kubectl logs $pod -n olmv1-system || true |
| 60 | + echo "Describing $pod..." |
| 61 | + kubectl describe $pod -n olmv1-system || true |
| 62 | + done |
| 63 | + env: |
| 64 | + KUBECONFIG: ${{ secrets.KUBECONFIG }} |
| 65 | + |
38 | 66 | |
39 | 67 | if: failure() |
40 | 68 | with: |
|
59 | 87 |
|
60 | 88 | - name: Run the upgrade e2e test |
61 | 89 | run: make test-upgrade-e2e |
| 90 | + |
| 91 | + - name: Collect pod logs and descriptions on failure |
| 92 | + if: failure() |
| 93 | + run: | |
| 94 | + echo "Fetching pod logs and descriptions..." |
| 95 | + kubectl get pods -n olmv1-system -o wide || true |
| 96 | + for pod in $(kubectl get pods -n olmv1-system -o name); do |
| 97 | + echo "Collecting logs for $pod..." |
| 98 | + kubectl logs $pod -n olmv1-system || true |
| 99 | + echo "Describing $pod..." |
| 100 | + kubectl describe $pod -n olmv1-system || true |
| 101 | + done |
| 102 | + env: |
| 103 | + KUBECONFIG: ${{ secrets.KUBECONFIG }} |
0 commit comments