@@ -283,6 +283,93 @@ jobs:
283
283
}
284
284
]
285
285
}
286
+ env :
287
+ SLACK_WEBHOOK_URL : ${{ secrets.CI_ALERTS_CHANNEL_WEBHOOK_URL }}
288
+ SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
289
+
290
+ runParallelBenchmark :
291
+ runs-on : ubuntu-latest
292
+ needs : [ runLoadTimeBenchmark, runTenantsBenchmark ]
293
+ if : ${{ always() }}
294
+ steps :
295
+ - uses : actions/checkout@v3
296
+ -
uses :
webfactory/[email protected]
297
+ with :
298
+ ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
299
+ - name : Benches
300
+ id : benches
301
+ run : |
302
+ export HCLOUD_TOKEN=${{ secrets.HCLOUD_TOKEN }}
303
+ export POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }}
304
+ export POSTGRES_HOST=${{ secrets.POSTGRES_HOST }}
305
+ bash -x tools/setup_ci.sh
306
+
307
+ set +e
308
+
309
+ # Benchmark parallel search&upload
310
+
311
+ export ENGINE_NAME="qdrant-continuous-benchmark"
312
+ export DATASETS="laion-small-clip"
313
+ export BENCHMARK_STRATEGY="parallel"
314
+ export POSTGRES_TABLE="benchmark_parallel_search_upload"
315
+
316
+ # Benchmark the dev branch:
317
+ export QDRANT_VERSION=ghcr/dev
318
+ timeout 30m bash -x tools/run_ci.sh
319
+
320
+ # Benchmark the master branch:
321
+ export QDRANT_VERSION=docker/master
322
+ timeout 30m bash -x tools/run_ci.sh
323
+
324
+ set -e
325
+ - name : Fail job if any of the benches failed
326
+ if : steps.benches.outputs.failed == 'error' || steps.benches.outputs.failed == 'timeout'
327
+ run : exit 1
328
+ - name : Send Notification
329
+ if : failure() || cancelled()
330
+
331
+ with :
332
+ payload : |
333
+ {
334
+ "text": "CI benchmarks (runTenantsBenchmark) run status: ${{ job.status }}",
335
+ "blocks": [
336
+ {
337
+ "type": "section",
338
+ "text": {
339
+ "type": "mrkdwn",
340
+ "text": "CI benchmarks (runTenantsBenchmark) failed because of *${{ steps.benches.outputs.failed }}*."
341
+ }
342
+ },
343
+ {
344
+ "type": "section",
345
+ "text": {
346
+ "type": "mrkdwn",
347
+ "text": "Qdrant version: *${{ steps.benches.outputs.qdrant_version }}*."
348
+ }
349
+ },
350
+ {
351
+ "type": "section",
352
+ "text": {
353
+ "type": "mrkdwn",
354
+ "text": "Engine: *${{ steps.benches.outputs.engine_name }}*."
355
+ }
356
+ },
357
+ {
358
+ "type": "section",
359
+ "text": {
360
+ "type": "mrkdwn",
361
+ "text": "Dataset: *${{ steps.benches.outputs.dataset }}*."
362
+ }
363
+ },
364
+ {
365
+ "type": "section",
366
+ "text": {
367
+ "type": "mrkdwn",
368
+ "text": "View the results <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>"
369
+ }
370
+ }
371
+ ]
372
+ }
286
373
env :
287
374
SLACK_WEBHOOK_URL : ${{ secrets.CI_ALERTS_CHANNEL_WEBHOOK_URL }}
288
375
SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
0 commit comments