Skip to content

Commit 2014340

Browse files
committed
master merge
2 parents 33ded3e + db9857c commit 2014340

File tree

91 files changed

+2847
-1922
lines changed

Some content is hidden

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

91 files changed

+2847
-1922
lines changed

.circleci/config.yml

Lines changed: 19 additions & 21 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,7 +458,7 @@ 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

466464
#nightly-automation:
@@ -575,7 +573,7 @@ workflows:
575573
- xenial
576574
- bionic
577575
lite:
578-
- "REDISAI_LITE=0 publish PUSH_GENERAL=1 OFFICIAL=1"
576+
- "REDISAI_LITE=0 PUBLISH=1"
579577
- "REDISAI_LITE=1"
580578
target:
581579
- "CPU=1"

.github/release-drafter-config.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name-template: 'Version $NEXT_PATCH_VERSION'
2+
tag-template: 'v$NEXT_PATCH_VERSION'
3+
categories:
4+
- title: 'Features'
5+
labels:
6+
- 'feature'
7+
- 'enhancement'
8+
- title: 'Bug Fixes'
9+
labels:
10+
- 'fix'
11+
- 'bugfix'
12+
- 'bug'
13+
- title: 'Maintenance'
14+
label: 'chore'
15+
change-template: '- $TITLE (#$NUMBER)'
16+
exclude-labels:
17+
- 'skip-changelog'
18+
template: |
19+
## Changes
20+
21+
$CHANGES

.github/workflows/release-drafter.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- master
8+
9+
jobs:
10+
update_release_draft:
11+
runs-on: ubuntu-latest
12+
steps:
13+
# Drafts your next Release notes as Pull Requests are merged into "master"
14+
- uses: release-drafter/release-drafter@v5
15+
with:
16+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
17+
config-name: release-drafter-config.yml
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Dockerfile

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

Dockerfile.gpu

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

0 commit comments

Comments
 (0)