Skip to content

Commit fc5fc20

Browse files
committed
work on cache CI
1 parent cb6478b commit fc5fc20

1 file changed

Lines changed: 40 additions & 11 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 40 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,30 +99,52 @@ jobs:
9999
echo "=== Node pod logs ==="
100100
kubectl logs -l app.kubernetes.io/name=csi -n nix-csi --tail -1
101101
102-
- name: Debug on failure
102+
- name: Cluster state all
103103
if: failure()
104104
run: |
105-
echo "=== Cluster state ==="
106-
kubectl get all -A
105+
echo "=== Cluster state all ==="
106+
kubectl get all -A || true
107107
108-
echo "=== Cache pod logs ==="
109-
kubectl logs -l app.kubernetes.io/name=cache -n nix-csi --tail -1 || true
108+
- name: Cluster state configmaps
109+
if: failure()
110+
run: |
111+
echo "=== Cluster configmaps ==="
112+
kubectl get configmaps -A || true
110113
111-
echo "=== Cache pod describe ==="
114+
- name: Cluster state secrets
115+
if: failure()
116+
run: |
117+
kubectl get secrets -A || true
118+
119+
- name: Cache
120+
if: failure()
121+
run: |
122+
kubectl logs -l app.kubernetes.io/name=cache -n nix-csi --tail -1 || true
112123
kubectl describe pod -l app.kubernetes.io/name=cache-n nix-csi || true
113124
114-
echo "=== Node pod logs ==="
125+
- name: Node
126+
if: failure()
127+
run: |
115128
kubectl logs -l app.kubernetes.io/name=csi -n nix-csi --tail -1 || true
116-
117-
echo "=== Node pod describe ==="
118129
kubectl describe pod -l app.kubernetes.io/name=csi -n nix-csi || true
119130
120-
echo "=== Init pod logs ==="
131+
- name: Init
132+
if: failure()
133+
run: |
121134
kubectl logs -l app.kubernetes.io/name=init -n nix-csi --tail -1 || true
122135
123-
echo "=== Events ==="
136+
- name: Events
137+
if: failure()
138+
run: |
124139
kubectl get events -n nix-csi --sort-by='.lastTimestamp'
125140
141+
- name: Troubleshoot with upterm
142+
if: failure()
143+
uses: owenthereal/action-upterm@main
144+
with:
145+
limit-access-to-actor: true
146+
wait-timeout-minutes: 5
147+
126148
test-kind-nocache:
127149
needs: build
128150
runs-on: ubuntu-latest
@@ -184,3 +206,10 @@ jobs:
184206
185207
echo "=== Events ==="
186208
kubectl get events -n nix-csi --sort-by='.lastTimestamp'
209+
210+
- name: Troubleshoot with upterm
211+
if: failure()
212+
uses: owenthereal/action-upterm@main
213+
with:
214+
limit-access-to-actor: true
215+
wait-timeout-minutes: 5

0 commit comments

Comments
 (0)