@@ -63,51 +63,16 @@ jobs:
6363 - name : Fail job if any of the benches failed
6464 if : steps.benches.outputs.failed == 'error' || steps.benches.outputs.failed == 'timeout'
6565 run : exit 1
66- - name : Send Notification
66+ - name : Send slack message
67+ uses : ./.github/workflows/actions/send-slack-msg
6768 if : failure() || cancelled()
68- 6969 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 }}
11176 env :
11277 SLACK_WEBHOOK_URL : ${{ secrets.CI_ALERTS_CHANNEL_WEBHOOK_URL }}
11378 SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
@@ -154,51 +119,16 @@ jobs:
154119 - name : Fail job if any of the benches failed
155120 if : steps.benches.outputs.failed == 'error' || steps.benches.outputs.failed == 'timeout'
156121 run : exit 1
157- - name : Send Notification
122+ - name : Send slack message
123+ uses : ./.github/workflows/actions/send-slack-msg
158124 if : failure() || cancelled()
159- 160125 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 }}
202132 env :
203133 SLACK_WEBHOOK_URL : ${{ secrets.CI_ALERTS_CHANNEL_WEBHOOK_URL }}
204134 SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
@@ -245,51 +175,16 @@ jobs:
245175 - name : Fail job if any of the benches failed
246176 if : steps.benches.outputs.failed == 'error' || steps.benches.outputs.failed == 'timeout'
247177 run : exit 1
248- - name : Send Notification
178+ - name : Send slack message
179+ uses : ./.github/workflows/actions/send-slack-msg
249180 if : failure() || cancelled()
250- 251181 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 }}
293188 env :
294189 SLACK_WEBHOOK_URL : ${{ secrets.CI_ALERTS_CHANNEL_WEBHOOK_URL }}
295- SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
190+ SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
0 commit comments