@@ -138,7 +138,59 @@ commands:
138138 - artifacts/*.tgz
139139 - artifacts/*.tar
140140 - store_artifacts :
141- path : tests/logs
141+ path : tests/flow/logs
142+
143+ valgrind-general-steps :
144+ parameters :
145+ test_args :
146+ type : string
147+ default : " CLUSTER=0 AOF=0"
148+ steps :
149+ - abort_for_docs
150+ - abort_for_noci
151+ - checkout-all
152+ - restore_cache :
153+ keys :
154+ - build-dependencies-{{ checksum "get_deps.sh" }}
155+ # If no exact match is found will get dependencies from source
156+ - setup-build-system
157+ - run :
158+ name : Install dependencies
159+ command : |
160+ ./opt/readies/bin/getredis -v 6.0 --valgrind --force
161+ ./get_deps.sh cpu
162+ - run :
163+ name : Build for valgrind
164+ command : |
165+ make -C opt all VALGRIND=1 SHOW=1
166+ - run :
167+ name : Test with valgrind
168+ command : |
169+ make -C opt test VALGRIND=1 <<parameters.test_args>>
170+ no_output_timeout : 120m
171+ - store_artifacts :
172+ path : tests/flow/logs
173+
174+ build-and-test-gpu-steps :
175+ steps :
176+ - abort_for_docs
177+ - abort_for_noci
178+ - checkout-all
179+ - relocate-docker-storage
180+ - run :
181+ name : Build
182+ command : |
183+ pip3 install --user jinja2
184+ pushd opt/build/docker
185+ make DOCKER_SUFFIX=".gpu-test" DOCKER_ARGS="-s dockerfile-gpu-test.tmpl" DOCKER_OPTS=--no-cache DEFAULT_TAG="redisai-gpu:latest-test"
186+ - run :
187+ name : Test
188+ command : |
189+ mkdir -p $HOME/tests
190+ docker run --gpus all -v $HOME/tests:/build/tests/flow/logs -it --rm redisai-gpu:latest-test
191+ no_output_timeout : 40m
192+ - store_artifacts :
193+ path : /home/circleci/tests
142194
143195 valgrind-general-steps :
144196 parameters :
@@ -236,13 +288,15 @@ jobs:
236288 - setup_remote_docker
237289 - checkout-all
238290 - setup-automation
291+
292+ # since we run in parallel, we need to generate docker files with different suffixes hence the DOCKER_SUFFIX
239293 - run :
240294 name : Build for platform
241295 command : |
242- bash <(curl -fsSL https://get.docker .com)
296+ bash <(curl -fsSL https://raw.githubusercontent .com/docker/docker-install/master/install.sh )
243297 pushd opt/build/docker
244298 docker login -u redisfab -p $DOCKER_REDISFAB_PWD
245- make build <<parameters.target>> OSNICK=<<parameters.osnick>> ARTIFACTS =1 VERBOSE=1 <<parameters.lite>>
299+ make build DOCKER_SUFFIX="$$" <<parameters.target>> OSNICK=<<parameters.osnick>> PACK =1 VERBOSE=1 <<parameters.lite>>
246300 popd > /dev/null
247301 logstar=bin/artifacts/tests-logs-cpu.tgz
248302 logsdir=tests/logs/cpu
@@ -254,8 +308,6 @@ jobs:
254308 root : bin/
255309 paths :
256310 - artifacts/*
257- - store_artifacts :
258- path : test/logs
259311
260312 coverage :
261313 docker :
@@ -284,6 +336,8 @@ jobs:
284336 make -C opt test SHOW=1 COV=1 CLUSTER=1
285337 make -C opt cov-upload
286338 no_output_timeout : 30m
339+ - store_artifacts :
340+ path : tests/flow/logs
287341
288342 valgrind :
289343 parameters :
@@ -315,6 +369,15 @@ jobs:
315369 command : |
316370 make -C opt test VALGRIND=1 <<parameters.test_args>>
317371 no_output_timeout : 120m
372+ - store_artifacts :
373+ path : tests/flow/logs
374+
375+ valgrind-general-for-forked-prs :
376+ docker :
377+ - image : redisfab/rmbuilder:6.2.1-x64-buster
378+ steps :
379+ - only_run_if_forked_pull_request
380+ - valgrind-general-steps
318381
319382 valgrind-general-for-forked-prs :
320383 docker :
@@ -460,19 +523,18 @@ jobs:
460523 command : MODULE_VERSION=$CIRCLE_TAG VERBOSE=1 TEST=release ./tests/qa/run
461524 - run :
462525 name : Run QA Automation (AILite)
463- command : MODULE_VERSION=$CIRCLE_TAG VERBOSE=1 TEST=release VARIANT=lite ./tests/qa/run
464-
526+ command : MODULE_VERSION=$CIRCLE_TAG VERBOSE=1 TEST=release VARIANT=light ./tests/qa/run
465527
466- # nightly-automation:
467- # docker:
468- # - image: redisfab/rmbuilder:6.2.1-x64-buster
469- # steps:
470- # - checkout
471- # - setup-automation
472- # - run:
473- # name: Run QA Automation
474- # command: MODULE_VERSION=$CIRCLE_BRANCH VERBOSE=1 TEST=nightly QUICK=1 ./tests/qa/run
475528
529+ # nightly-automation:
530+ # docker:
531+ # - image: redisfab/rmbuilder:6.2.1-x64-buster
532+ # steps:
533+ # - checkout
534+ # - setup-automation
535+ # - run:
536+ # name: Run QA Automation
537+ # command: MODULE_VERSION=$CIRCLE_BRANCH VERBOSE=1 TEST=nightly QUICK=1 ./tests/qa/run
476538
477539on-any-branch : &on-any-branch
478540 filters :
@@ -576,7 +638,7 @@ workflows:
576638 - xenial
577639 - bionic
578640 lite :
579- - " REDISAI_LITE=0 publish "
641+ - " REDISAI_LITE=0 PUBLISH=1 "
580642 - " REDISAI_LITE=1"
581643 target :
582644 - " CPU=1"
@@ -585,14 +647,14 @@ workflows:
585647 context : common
586648 << : *on-dev-branches
587649 << : *after-linter
650+ - valgrind-general-for-forked-prs :
651+ << : *on-any-branch
652+ << : *after-linter
588653 - valgrind :
589654 name : valgrind-cluster
590655 test_args : GEN=0
591656 << : *on-integ-branch
592657 << : *after-linter
593- - valgrind-general-for-forked-prs :
594- << : *on-any-branch
595- << : *after-linter
596658 - deploy-snapshot :
597659 context : common
598660 << : *after-platform-builds
0 commit comments