File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 47
47
uses : ./.github/actions/kind
48
48
49
49
- name : Run test
50
+ id : test
50
51
working-directory : ${{ github.workspace }}/.github/scripts/tests
51
52
run : |
52
53
sh tests.sh --kind
54
+ continue-on-error : true
55
+
56
+ - name : Collect events and logs
57
+ if : steps.test.outcome != 'success'
58
+ run : |
59
+ kubectl -n test-dspa get pods
60
+ kubectl -n opendatahub get pods
61
+
62
+ POD_NAMES=$(kubectl -n test-dspa get pods -o custom-columns=":metadata.name")
63
+
64
+ for POD_NAME in ${POD_NAMES}; do
65
+ echo "===== Pod: ${POD_NAME} ====="
66
+
67
+ echo "----- EVENTS -----"
68
+ kubectl describe pod ${POD_NAME} -n test-dspa | grep -A 100 Events
69
+
70
+ echo "----- LOGS -----"
71
+ kubectl logs ${POD_NAME} -n test-dspa
72
+
73
+ echo "==========================="
74
+ echo ""
75
+ done
76
+
77
+ POD_NAMES=$(kubectl -n opendatahub get pods -o custom-columns=":metadata.name")
78
+
79
+ for POD_NAME in ${POD_NAMES}; do
80
+ echo "===== Pod: ${POD_NAME} ====="
81
+
82
+ echo "----- EVENTS -----"
83
+ kubectl describe pod ${POD_NAME} -n opendatahub | grep -A 100 Events
84
+
85
+ echo "----- LOGS -----"
86
+ kubectl logs ${POD_NAME} -n opendatahub
87
+
88
+ echo "==========================="
89
+ echo ""
90
+ done
91
+
92
+ exit 1
93
+
You can’t perform that action at this time.
0 commit comments