@@ -63,51 +63,16 @@ jobs:
63
63
- name : Fail job if any of the benches failed
64
64
if : steps.benches.outputs.failed == 'error' || steps.benches.outputs.failed == 'timeout'
65
65
run : exit 1
66
- - name : Send Notification
66
+ - name : Send slack message
67
+ uses : ./.github/workflows/actions/send-slack-msg
67
68
if : failure() || cancelled()
68
-
69
69
with :
70
- payload : |
71
- {
72
- "text": "CI benchmarks (runBenchmark) run status: ${{ job.status }}",
73
- "blocks": [
74
- {
75
- "type": "section",
76
- "text": {
77
- "type": "mrkdwn",
78
- "text": "CI benchmarks (runBenchmark) failed because of *${{ steps.benches.outputs.failed }}*."
79
- }
80
- },
81
- {
82
- "type": "section",
83
- "text": {
84
- "type": "mrkdwn",
85
- "text": "Qdrant version: *${{ steps.benches.outputs.qdrant_version }}*."
86
- }
87
- },
88
- {
89
- "type": "section",
90
- "text": {
91
- "type": "mrkdwn",
92
- "text": "Engine: *${{ steps.benches.outputs.engine_name }}*."
93
- }
94
- },
95
- {
96
- "type": "section",
97
- "text": {
98
- "type": "mrkdwn",
99
- "text": "Dataset: *${{ steps.benches.outputs.dataset }}*."
100
- }
101
- },
102
- {
103
- "type": "section",
104
- "text": {
105
- "type": "mrkdwn",
106
- "text": "View the results <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
107
- }
108
- }
109
- ]
110
- }
70
+ bench_name : " runBenchmark"
71
+ job_status : ${{ job.status }}
72
+ failed_outputs : ${{ steps.benches.outputs.failed }}
73
+ qdrant_version : ${{ steps.benches.outputs.qdrant_version }}
74
+ engine_name : ${{ steps.benches.outputs.engine_name }}
75
+ dataset : ${{ steps.benches.outputs.dataset }}
111
76
env :
112
77
SLACK_WEBHOOK_URL : ${{ secrets.CI_ALERTS_CHANNEL_WEBHOOK_URL }}
113
78
SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
@@ -154,51 +119,16 @@ jobs:
154
119
- name : Fail job if any of the benches failed
155
120
if : steps.benches.outputs.failed == 'error' || steps.benches.outputs.failed == 'timeout'
156
121
run : exit 1
157
- - name : Send Notification
122
+ - name : Send slack message
123
+ uses : ./.github/workflows/actions/send-slack-msg
158
124
if : failure() || cancelled()
159
-
160
125
with :
161
- payload : |
162
- {
163
- "text": "CI benchmarks (runTenantsBenchmark) run status: ${{ job.status }}",
164
- "blocks": [
165
- {
166
- "type": "section",
167
- "text": {
168
- "type": "mrkdwn",
169
- "text": "CI benchmarks (runTenantsBenchmark) failed because of *${{ steps.benches.outputs.failed }}*."
170
- }
171
- },
172
- {
173
- "type": "section",
174
- "text": {
175
- "type": "mrkdwn",
176
- "text": "Qdrant version: *${{ steps.benches.outputs.qdrant_version }}*."
177
- }
178
- },
179
- {
180
- "type": "section",
181
- "text": {
182
- "type": "mrkdwn",
183
- "text": "Engine: *${{ steps.benches.outputs.engine_name }}*."
184
- }
185
- },
186
- {
187
- "type": "section",
188
- "text": {
189
- "type": "mrkdwn",
190
- "text": "Dataset: *${{ steps.benches.outputs.dataset }}*."
191
- }
192
- },
193
- {
194
- "type": "section",
195
- "text": {
196
- "type": "mrkdwn",
197
- "text": "View the results <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
198
- }
199
- }
200
- ]
201
- }
126
+ source_name : " runTenantsBenchmark"
127
+ job_status : ${{ job.status }}
128
+ failed_outputs : ${{ steps.benches.outputs.failed }}
129
+ qdrant_version : ${{ steps.benches.outputs.qdrant_version }}
130
+ engine_name : ${{ steps.benches.outputs.engine_name }}
131
+ dataset : ${{ steps.benches.outputs.dataset }}
202
132
env :
203
133
SLACK_WEBHOOK_URL : ${{ secrets.CI_ALERTS_CHANNEL_WEBHOOK_URL }}
204
134
SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
@@ -245,51 +175,16 @@ jobs:
245
175
- name : Fail job if any of the benches failed
246
176
if : steps.benches.outputs.failed == 'error' || steps.benches.outputs.failed == 'timeout'
247
177
run : exit 1
248
- - name : Send Notification
178
+ - name : Send slack message
179
+ uses : ./.github/workflows/actions/send-slack-msg
249
180
if : failure() || cancelled()
250
-
251
181
with :
252
- payload : |
253
- {
254
- "text": "CI benchmarks (runParallelBenchmark) run status: ${{ job.status }}",
255
- "blocks": [
256
- {
257
- "type": "section",
258
- "text": {
259
- "type": "mrkdwn",
260
- "text": "CI benchmarks (runParallelBenchmark) failed because of *${{ steps.benches.outputs.failed }}*."
261
- }
262
- },
263
- {
264
- "type": "section",
265
- "text": {
266
- "type": "mrkdwn",
267
- "text": "Qdrant version: *${{ steps.benches.outputs.qdrant_version }}*."
268
- }
269
- },
270
- {
271
- "type": "section",
272
- "text": {
273
- "type": "mrkdwn",
274
- "text": "Engine: *${{ steps.benches.outputs.engine_name }}*."
275
- }
276
- },
277
- {
278
- "type": "section",
279
- "text": {
280
- "type": "mrkdwn",
281
- "text": "Dataset: *${{ steps.benches.outputs.dataset }}*."
282
- }
283
- },
284
- {
285
- "type": "section",
286
- "text": {
287
- "type": "mrkdwn",
288
- "text": "View the results <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
289
- }
290
- }
291
- ]
292
- }
182
+ source_name : " runParallelBenchmark"
183
+ job_status : ${{ job.status }}
184
+ failed_outputs : ${{ steps.benches.outputs.failed }}
185
+ qdrant_version : ${{ steps.benches.outputs.qdrant_version }}
186
+ engine_name : ${{ steps.benches.outputs.engine_name }}
187
+ dataset : ${{ steps.benches.outputs.dataset }}
293
188
env :
294
189
SLACK_WEBHOOK_URL : ${{ secrets.CI_ALERTS_CHANNEL_WEBHOOK_URL }}
295
- SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
190
+ SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
0 commit comments