Skip to content

Commit 4b11172

Browse files
author
DvirDukhan
authored
Merge pull request #813 from RedisAI/v1.2.4
V1.2.4
2 parents 337695e + dc0be91 commit 4b11172

File tree

124 files changed

+4914
-3482
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+4914
-3482
lines changed

.circleci/config.yml

Lines changed: 31 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ commands:
138138
- artifacts/*.tgz
139139
- artifacts/*.tar
140140
- store_artifacts:
141-
path: tests/logs
141+
path: tests/flow/logs
142142

143143
valgrind-general-steps:
144144
parameters:
@@ -168,35 +168,29 @@ commands:
168168
command: |
169169
make -C opt test VALGRIND=1 <<parameters.test_args>>
170170
no_output_timeout: 120m
171+
- store_artifacts:
172+
path: tests/flow/logs
171173

172174
build-and-test-gpu-steps:
173175
steps:
174176
- abort_for_docs
175177
- abort_for_noci
176178
- checkout-all
177-
- run:
178-
name: Relocate docker overlay2 dir
179-
command: |
180-
sudo systemctl stop docker
181-
sudo mkdir -p /var2/lib/docker
182-
sudo mv /var/lib/docker/overlay2 /var2/lib/docker
183-
sudo mkdir /var/lib/docker/overlay2
184-
sudo mount --bind /var2/lib/docker/overlay2 /var/lib/docker/overlay2
185-
sudo systemctl start docker
179+
- relocate-docker-storage
186180
- run:
187181
name: Build
188182
command: |
189-
docker build -f Dockerfile.gpu-test --no-cache -t redisai-gpu:latest-x64-bionic-test .
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"
190186
- run:
191187
name: Test
192188
command: |
193189
mkdir -p $HOME/tests
194-
docker run --gpus all -v $HOME/tests:/build/tests/logs -it --rm redisai-gpu:latest-x64-bionic-test
190+
docker run --gpus all -v $HOME/tests:/build/tests/flow/logs -it --rm redisai-gpu:latest-test
195191
no_output_timeout: 40m
196192
- store_artifacts:
197-
path: tests/logs
198-
199-
193+
path: /home/circleci/tests
200194

201195
jobs:
202196
lint:
@@ -236,13 +230,15 @@ jobs:
236230
- setup_remote_docker
237231
- checkout-all
238232
- setup-automation
233+
234+
# since we run in parallel, we need to generate docker files with different suffixes hence the DOCKER_SUFFIX
239235
- run:
240236
name: Build for platform
241237
command: |
242-
bash <(curl -fsSL https://get.docker.com)
238+
bash <(curl -fsSL https://raw.githubusercontent.com/docker/docker-install/master/install.sh)
243239
pushd opt/build/docker
244240
docker login -u redisfab -p $DOCKER_REDISFAB_PWD
245-
make build <<parameters.target>> OSNICK=<<parameters.osnick>> ARTIFACTS=1 VERBOSE=1 <<parameters.lite>>
241+
make build DOCKER_SUFFIX="$$" <<parameters.target>> OSNICK=<<parameters.osnick>> PACK=1 VERBOSE=1 <<parameters.lite>>
246242
popd > /dev/null
247243
logstar=bin/artifacts/tests-logs-cpu.tgz
248244
logsdir=tests/logs/cpu
@@ -254,8 +250,6 @@ jobs:
254250
root: bin/
255251
paths:
256252
- artifacts/*
257-
- store_artifacts:
258-
path: test/logs
259253

260254
coverage:
261255
docker:
@@ -284,6 +278,8 @@ jobs:
284278
make -C opt test SHOW=1 COV=1 CLUSTER=1
285279
make -C opt cov-upload
286280
no_output_timeout: 30m
281+
- store_artifacts:
282+
path: tests/flow/logs
287283

288284
valgrind:
289285
parameters:
@@ -315,6 +311,8 @@ jobs:
315311
command: |
316312
make -C opt test VALGRIND=1 <<parameters.test_args>>
317313
no_output_timeout: 120m
314+
- store_artifacts:
315+
path: tests/flow/logs
318316

319317
valgrind-general-for-forked-prs:
320318
docker:
@@ -460,19 +458,18 @@ jobs:
460458
command: MODULE_VERSION=$CIRCLE_TAG VERBOSE=1 TEST=release ./tests/qa/run
461459
- run:
462460
name: Run QA Automation (AILite)
463-
command: MODULE_VERSION=$CIRCLE_TAG VERBOSE=1 TEST=release VARIANT=lite ./tests/qa/run
461+
command: MODULE_VERSION=$CIRCLE_TAG VERBOSE=1 TEST=release VARIANT=light ./tests/qa/run
464462

465463

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
475-
464+
#nightly-automation:
465+
# docker:
466+
# - image: redisfab/rmbuilder:6.2.1-x64-buster
467+
# steps:
468+
# - checkout
469+
# - setup-automation
470+
# - run:
471+
# name: Run QA Automation
472+
# command: MODULE_VERSION=$CIRCLE_BRANCH VERBOSE=1 TEST=nightly QUICK=1 ./tests/qa/run
476473

477474
on-any-branch: &on-any-branch
478475
filters:
@@ -576,7 +573,7 @@ workflows:
576573
- xenial
577574
- bionic
578575
lite:
579-
- "REDISAI_LITE=0 publish"
576+
- "REDISAI_LITE=0 PUBLISH=1"
580577
- "REDISAI_LITE=1"
581578
target:
582579
- "CPU=1"
@@ -585,14 +582,14 @@ workflows:
585582
context: common
586583
<<: *on-dev-branches
587584
<<: *after-linter
585+
- valgrind-general-for-forked-prs:
586+
<<: *on-any-branch
587+
<<: *after-linter
588588
- valgrind:
589589
name: valgrind-cluster
590590
test_args: GEN=0
591591
<<: *on-integ-branch
592592
<<: *after-linter
593-
- valgrind-general-for-forked-prs:
594-
<<: *on-any-branch
595-
<<: *after-linter
596593
- deploy-snapshot:
597594
context: common
598595
<<: *after-platform-builds

Dockerfile

Lines changed: 0 additions & 88 deletions
This file was deleted.

Dockerfile.arm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# BUILD redisfab/redisai:${VERSION}-cpu-${ARCH}-${OSNICK}
22

3-
ARG REDIS_VER=6.2.3
3+
ARG REDIS_VER=6.2.4
44

55
# OSNICK=bionic|stretch|buster
66
ARG OSNICK=buster

Dockerfile.gpu

Lines changed: 0 additions & 95 deletions
This file was deleted.

Dockerfile.jetson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# BUILD redisfab/redisai:${VERSION}-jetson-${ARCH}-${OSNICK}
22

3-
ARG REDIS_VER=6.2.3
3+
ARG REDIS_VER=6.2.4
44

55
# OSNICK=bionic|centos7|centos6
66
ARG OSNICK=bionic

0 commit comments

Comments
 (0)