Skip to content

Commit 835bc2a

Browse files
authored
Fix ARC e2e tests (#3836)
1 parent 8b36ea9 commit 835bc2a

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

.github/actions/execute-assert-arc-e2e/action.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,28 @@ runs:
188188
}
189189
core.setFailed(`The triggered workflow run didn't finish properly using ${{inputs.arc-name}}`)
190190
191+
- name: Gather listener logs
192+
shell: bash
193+
if: always()
194+
run: |
195+
LISTENER_POD="$(kubectl get autoscalinglisteners.actions.github.com -n arc-systems -o jsonpath='{.items[*].metadata.name}')"
196+
kubectl logs $LISTENER_POD -n ${{inputs.arc-controller-namespace}}
197+
198+
- name: Gather coredns logs
199+
shell: bash
200+
if: always()
201+
run: |
202+
kubectl logs deployments/coredns -n kube-system
203+
191204
- name: cleanup
192205
if: inputs.wait-to-finish == 'true'
193206
shell: bash
194207
run: |
195208
helm uninstall ${{ inputs.arc-name }} --namespace ${{inputs.arc-namespace}} --debug
196209
kubectl wait --timeout=30s --for=delete AutoScalingRunnerSet -n ${{inputs.arc-namespace}} -l app.kubernetes.io/instance=${{ inputs.arc-name }}
197210
198-
- name: Gather logs and cleanup
211+
- name: Gather controller logs
199212
shell: bash
200213
if: always()
201214
run: |
202-
kubectl logs deployment/arc-gha-rs-controller -n ${{inputs.arc-controller-namespace}}
215+
kubectl logs deployment/arc-gha-rs-controller -n ${{inputs.arc-controller-namespace}}

.github/workflows/gha-e2e-tests.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ jobs:
103103
kubectl wait --timeout=30s --for=condition=ready pod -n arc-systems -l actions.github.com/scale-set-name=$ARC_NAME
104104
kubectl get pod -n arc-systems
105105
106+
sleep 60
107+
106108
- name: Test ARC E2E
107109
uses: ./.github/actions/execute-assert-arc-e2e
108110
timeout-minutes: 10
@@ -194,6 +196,8 @@ jobs:
194196
kubectl wait --timeout=30s --for=condition=ready pod -n arc-systems -l actions.github.com/scale-set-name=$ARC_NAME
195197
kubectl get pod -n arc-systems
196198
199+
sleep 60
200+
197201
- name: Test ARC E2E
198202
uses: ./.github/actions/execute-assert-arc-e2e
199203
timeout-minutes: 10
@@ -284,6 +288,8 @@ jobs:
284288
kubectl wait --timeout=30s --for=condition=ready pod -n arc-systems -l actions.github.com/scale-set-name=$ARC_NAME
285289
kubectl get pod -n arc-systems
286290
291+
sleep 60
292+
287293
- name: Test ARC E2E
288294
uses: ./.github/actions/execute-assert-arc-e2e
289295
timeout-minutes: 10
@@ -383,6 +389,8 @@ jobs:
383389
kubectl wait --timeout=30s --for=condition=ready pod -n arc-systems -l actions.github.com/scale-set-name=$ARC_NAME
384390
kubectl get pod -n arc-systems
385391
392+
sleep 60
393+
386394
- name: Test ARC E2E
387395
uses: ./.github/actions/execute-assert-arc-e2e
388396
timeout-minutes: 10
@@ -484,6 +492,8 @@ jobs:
484492
kubectl wait --timeout=30s --for=condition=ready pod -n arc-systems -l actions.github.com/scale-set-name=$ARC_NAME
485493
kubectl get pod -n arc-systems
486494
495+
sleep 60
496+
487497
- name: Test ARC E2E
488498
uses: ./.github/actions/execute-assert-arc-e2e
489499
timeout-minutes: 10
@@ -579,6 +589,8 @@ jobs:
579589
kubectl wait --timeout=30s --for=condition=ready pod -n arc-systems -l actions.github.com/scale-set-name=$ARC_NAME
580590
kubectl get pod -n arc-systems
581591
592+
sleep 60
593+
582594
- name: Test ARC E2E
583595
uses: ./.github/actions/execute-assert-arc-e2e
584596
timeout-minutes: 10
@@ -699,6 +711,8 @@ jobs:
699711
kubectl wait --timeout=30s --for=condition=ready pod -n arc-systems -l actions.github.com/scale-set-name=$ARC_NAME
700712
kubectl get pod -n arc-systems
701713
714+
sleep 60
715+
702716
- name: Test ARC E2E
703717
uses: ./.github/actions/execute-assert-arc-e2e
704718
timeout-minutes: 10
@@ -789,6 +803,8 @@ jobs:
789803
kubectl wait --timeout=30s --for=condition=ready pod -n arc-systems -l actions.github.com/scale-set-name=$ARC_NAME
790804
kubectl get pod -n arc-systems
791805
806+
sleep 60
807+
792808
- name: Trigger long running jobs and wait for runners to pick them up
793809
uses: ./.github/actions/execute-assert-arc-e2e
794810
timeout-minutes: 10

0 commit comments

Comments
 (0)