@@ -45,20 +45,60 @@ jobs:
45
45
46
46
- name : Test Super Bias Creation
47
47
run : |
48
+ set +e
49
+ export START=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
50
+
48
51
kubectl exec banzai-e2e-test -c banzai-listener -- pytest -s --pyargs banzai --durations=0 --junitxml=/archive/engineering/pytest-master-bias.xml -m master_bias
49
-
52
+ EXIT_CODE=$?
53
+
54
+ # Always print logs even if (especially if?) the reduction fails
55
+ kubectl logs banzai-e2e-test --since-time=$START --all-containers --prefix=true
56
+
57
+ # Exit with the captured status so the job properly fails or succeeds
58
+ exit $EXIT_CODE
59
+
50
60
- name : Test Super Dark Creation
51
61
run : |
62
+ set +e
63
+ export START=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
64
+
52
65
kubectl exec banzai-e2e-test -c banzai-listener -- pytest -s --pyargs banzai --durations=0 --junitxml=/archive/engineering/pytest-master-dark.xml -m master_dark
53
-
66
+ EXIT_CODE=$?
67
+
68
+ # Always print logs even if (especially if?) the reduction fails
69
+ kubectl logs banzai-e2e-test --since-time=$START --all-containers --prefix=true
70
+
71
+ # Exit with the captured status so the job properly fails or succeeds
72
+ exit $EXIT_CODE
73
+
54
74
- name : Test Super Flat Creation
55
75
run : |
76
+ set +e
77
+ export START=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
78
+
56
79
kubectl exec banzai-e2e-test -c banzai-listener -- pytest -s --pyargs banzai --durations=0 --junitxml=/archive/engineering/pytest-master-flat.xml -m master_flat
57
-
80
+ EXIT_CODE=$?
81
+
82
+ # Always print logs even if (especially if?) the reduction fails
83
+ kubectl logs banzai-e2e-test --since-time=$START --all-containers --prefix=true
84
+
85
+ # Exit with the captured status so the job properly fails or succeeds
86
+ exit $EXIT_CODE
87
+
58
88
- name : Test Science Frame Creation
59
89
run : |
90
+ set +e
91
+ export START=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
92
+
60
93
kubectl exec banzai-e2e-test -c banzai-listener -- pytest -s --pyargs banzai --durations=0 --junitxml=/archive/engineering/pytest-science-files.xml -m science_files
61
-
94
+ EXIT_CODE=$?
95
+
96
+ # Always print logs even if (especially if?) the reduction fails
97
+ kubectl logs banzai-e2e-test --since-time=$START --all-containers --prefix=true
98
+
99
+ # Exit with the captured status so the job properly fails or succeeds
100
+ exit $EXIT_CODE
101
+
62
102
- name : Cleanup
63
103
run : |
64
104
kubectl delete pod banzai-e2e-test
0 commit comments