@@ -305,6 +305,74 @@ commands:
305
305
--triggering_env << parameters.triggering_env >> \
306
306
--push_results_redistimeseries \
307
307
--allowed-envs << parameters.allowed_envs >> || true
308
+ benchmark-steps-test :
309
+ parameters :
310
+ github_actor :
311
+ type : string
312
+ default : $CIRCLE_USERNAME
313
+ module_path :
314
+ type : string
315
+ default : bin/linux-x64-release/redisbloom.so
316
+ profile_env :
317
+ type : string
318
+ default : " 0"
319
+ benchmark_glob :
320
+ type : string
321
+ default : " *.yml"
322
+ triggering_env :
323
+ type : string
324
+ default : " circleci"
325
+ allowed_envs :
326
+ type : string
327
+ default : " oss-standalone"
328
+ steps :
329
+ - run :
330
+ name : Prepare automation
331
+ shell : /bin/bash -l -eo pipefail
332
+ command : |
333
+ ./deps/readies/bin/getpy3
334
+ git clone git@github.com:RedisLabsModules/redisbench-admin.git --depth=1
335
+ cd redisbench-admin
336
+ git pull origin feature/callback
337
+ git branch feature/callback
338
+ git checkout feature/callback
339
+ pip install poetry
340
+ poetry config virtualenvs.create false
341
+ poetry install
342
+ echo "IyEvdXNyL2xvY2FsL2Jpbi9weXRob24KIyAtKi0gY29kaW5nOiB1dGYtOCAtKi0KaW1wb3J0IHJlCmltcG9ydCBzeXMKZnJvbSByZWRpc2JlbmNoX2FkbWluLmNsaSBpbXBvcnQgbWFpbgoKaWYgX19uYW1lX18gPT0gIl9fbWFpbl9fIjoKICAgIHN5cy5hcmd2WzBdID0gcmUuc3ViKHIiKC1zY3JpcHRcLnB5d3xcLmV4ZSk/JCIsICIiLCBzeXMuYXJndlswXSkKICAgIHN5cy5leGl0KG1haW4oKSkK" | base64 -d > run.py
343
+ chmod +x run.py
344
+ ln -s run.py /usr/local/bin/benchmark-admin
345
+ VERSION=0.14.8 ./deps/readies/bin/getterraform
346
+ - run :
347
+ name : Run CI benchmarks on aws
348
+ timeout : 60m
349
+ no_output_timeout : 30m
350
+ command : |
351
+ ROOT="$PWD"
352
+ cd tests/benchmarks
353
+ export AWS_ACCESS_KEY_ID=$PERFORMANCE_EC2_ACCESS_KEY
354
+ export AWS_SECRET_ACCESS_KEY=$PERFORMANCE_EC2_SECRET_KEY
355
+ export AWS_DEFAULT_REGION=$PERFORMANCE_EC2_REGION
356
+ export EC2_PRIVATE_PEM=$PERFORMANCE_EC2_PRIVATE_PEM
357
+ export PROFILE=<< parameters.profile_env >>
358
+ export BENCHMARK_GLOB=<< parameters.benchmark_glob >>
359
+ export PERF_CALLGRAPH_MODE="dwarf"
360
+ redisbench-admin run-remote \
361
+ --required-module bf \
362
+ --module_path "$ROOT/<< parameters.module_path >>" \
363
+ --github_actor "<< parameters.github_actor >>" \
364
+ --github_repo $CIRCLE_PROJECT_REPONAME \
365
+ --github_org $CIRCLE_PROJECT_USERNAME \
366
+ --github_sha $CIRCLE_SHA1 \
367
+ --github_branch $CIRCLE_BRANCH \
368
+ --upload_results_s3 \
369
+ --callback \
370
+ --callback_url https://dashi.cto.redislabs.com/callback
371
+ --triggering_env << parameters.triggering_env >> \
372
+ --fail_fast \
373
+ --push_results_redistimeseries \
374
+ --allowed-envs << parameters.allowed_envs >>
375
+
308
376
309
377
# ----------------------------------------------------------------------------------------------------------------------------------
310
378
@@ -453,6 +521,13 @@ jobs:
453
521
- build-steps
454
522
- benchmark-steps
455
523
524
+ benchmark-bloom-oss-standalone-test :
525
+ docker :
526
+ - image : redisfab/rmbuilder:6.2.7-x64-focal
527
+ steps :
528
+ - build-steps
529
+ - benchmark-steps-test
530
+
456
531
benchmark-json-oss-standalone-profiler :
457
532
docker :
458
533
- image : redisfab/rmbuilder:6.2.7-x64-focal
@@ -541,6 +616,14 @@ on-integ-and-version-tags: &on-integ-and-version-tags
541
616
tags :
542
617
only : /^v[0-9].*/
543
618
619
+ on-test-branch : &on-test-branch
620
+ filters :
621
+ branches :
622
+ only :
623
+ - /^test.*$/
624
+ tags :
625
+ ignore : /.*/
626
+
544
627
# ----------------------------------------------------------------------------------------------------------------------------------
545
628
546
629
workflows :
@@ -598,6 +681,9 @@ workflows:
598
681
- benchmark-json-oss-standalone :
599
682
<< : *on-integ-and-version-tags
600
683
context : common
684
+ - benchmark-bloom-oss-standalone-test :
685
+ << : *on-test-branch
686
+ context : common
601
687
- benchmark-json-oss-standalone-profiler :
602
688
<< : *on-integ-and-version-tags
603
689
context : common
0 commit comments