47
47
# the top explain how to build and upload these images.
48
48
# Ubuntu 20.04 ships with Python 3.8.10.
49
49
container : zulip/ci:focal
50
+
50
51
steps :
51
52
- name : Add required permissions
52
53
run : |
@@ -103,11 +104,22 @@ jobs:
103
104
path : /tmp/production-build
104
105
retention-days : 14
105
106
106
- - name : Report status
107
- if : failure()
108
- env :
109
- ZULIP_BOT_KEY : ${{ secrets.ZULIP_BOT_KEY }}
110
- run : tools/ci/send-failure-message
107
+ - name : Generate failure report string
108
+ id : failure_report_string
109
+ if : ${{ failure() && github.repository == 'zulip/zulip' }}
110
+ run : tools/ci/generate-failure-message >> $GITHUB_OUTPUT
111
+
112
+ - name : Report status to CZO
113
+ if : ${{ failure() && github.repository == 'zulip/zulip' }}
114
+ uses : zulip/github-actions-zulip/send-message@v1
115
+ with :
116
+ api-key : ${{ secrets.ZULIP_BOT_KEY }}
117
+
118
+ organization-url : " https://chat.zulip.org"
119
+ to : " automated testing"
120
+ topic : ${{ steps.failure_report_string.outputs.topic }}
121
+ type : " stream"
122
+ content : ${{ steps.failure_report_string.outputs.content }}
111
123
112
124
production_install :
113
125
# This job installs the server release tarball built above on a
@@ -160,7 +172,7 @@ jobs:
160
172
chmod +x /tmp/production-pgroonga
161
173
chmod +x /tmp/production-install
162
174
chmod +x /tmp/production-verify
163
- chmod +x /tmp/send -failure-message
175
+ chmod +x /tmp/generate -failure-message
164
176
165
177
- name : Create cache directories
166
178
run : |
@@ -197,11 +209,22 @@ jobs:
197
209
if : ${{ matrix.os == 'focal' }}
198
210
run : sudo /tmp/production-verify ${{ matrix.extra-args }}
199
211
200
- - name : Report status
201
- if : failure()
202
- env :
203
- ZULIP_BOT_KEY : ${{ secrets.ZULIP_BOT_KEY }}
204
- run : /tmp/send-failure-message
212
+ - name : Generate failure report string
213
+ id : failure_report_string
214
+ if : ${{ failure() && github.repository == 'zulip/zulip' }}
215
+ run : tools/ci/generate-failure-message >> $GITHUB_OUTPUT
216
+
217
+ - name : Report status to CZO
218
+ if : ${{ failure() && github.repository == 'zulip/zulip' }}
219
+ uses : zulip/github-actions-zulip/send-message@v1
220
+ with :
221
+ api-key : ${{ secrets.ZULIP_BOT_KEY }}
222
+
223
+ organization-url : " https://chat.zulip.org"
224
+ to : " automated testing"
225
+ topic : ${{ steps.failure_report_string.outputs.topic }}
226
+ type : " stream"
227
+ content : ${{ steps.failure_report_string.outputs.content }}
205
228
206
229
production_upgrade :
207
230
# The production upgrade job starts with a container with a
@@ -254,7 +277,7 @@ jobs:
254
277
# of the tarball uploaded by the upload artifact fix those.
255
278
chmod +x /tmp/production-upgrade
256
279
chmod +x /tmp/production-verify
257
- chmod +x /tmp/send -failure-message
280
+ chmod +x /tmp/generate -failure-message
258
281
259
282
- name : Create cache directories
260
283
run : |
@@ -271,8 +294,19 @@ jobs:
271
294
# - name: Verify install
272
295
# run: sudo /tmp/production-verify
273
296
274
- - name : Report status
275
- if : failure()
276
- env :
277
- ZULIP_BOT_KEY : ${{ secrets.ZULIP_BOT_KEY }}
278
- run : /tmp/send-failure-message
297
+ - name : Generate failure report string
298
+ id : failure_report_string
299
+ if : ${{ failure() && github.repository == 'zulip/zulip' }}
300
+ run : tools/ci/generate-failure-message >> $GITHUB_OUTPUT
301
+
302
+ - name : Report status to CZO
303
+ if : ${{ failure() && github.repository == 'zulip/zulip' }}
304
+ uses : zulip/github-actions-zulip/send-message@v1
305
+ with :
306
+ api-key : ${{ secrets.ZULIP_BOT_KEY }}
307
+
308
+ organization-url : " https://chat.zulip.org"
309
+ to : " automated testing"
310
+ topic : ${{ steps.failure_report_string.outputs.topic }}
311
+ type : " stream"
312
+ content : ${{ steps.failure_report_string.outputs.content }}
0 commit comments