Skip to content

Commit 595902e

Browse files
authored
Merge branch 'master' into disable-nightly-automation
2 parents 34c68bd + d42ad15 commit 595902e

File tree

12 files changed

+24
-17
lines changed

12 files changed

+24
-17
lines changed

.circleci/config.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,10 @@ jobs:
458458
- run:
459459
name: Run QA Automation
460460
command: MODULE_VERSION=$CIRCLE_TAG VERBOSE=1 TEST=release ./tests/qa/run
461+
- run:
462+
name: Run QA Automation (AILite)
463+
command: MODULE_VERSION=$CIRCLE_TAG VERBOSE=1 TEST=release VARIANT=lite ./tests/qa/run
464+
461465

462466
#nightly-automation:
463467
# docker:
@@ -469,7 +473,6 @@ jobs:
469473
# name: Run QA Automation
470474
# command: MODULE_VERSION=$CIRCLE_BRANCH VERBOSE=1 TEST=nightly QUICK=1 ./tests/qa/run
471475

472-
473476
on-any-branch: &on-any-branch
474477
filters:
475478
branches:

Dockerfile

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.0.9
3+
ARG REDIS_VER=6.2.3
44

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

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.0.9
3+
ARG REDIS_VER=6.2.3
44

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

Dockerfile.gpu

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

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

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

Dockerfile.gpu-test

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

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

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

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.0.9
3+
ARG REDIS_VER=6.2.3
44

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

opt/build/docker/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ REPO=redisai
1111
# LATEST_BRANCH=1.2
1212
INT_BRANCHES=1.2
1313

14-
REDIS_VER:=6.0.9
14+
REDIS_VER:=6.2.3
1515
REDISAI_LITE:=0
1616

1717
export ART_DIR=$(ROOT)/bin/artifacts

tests/qa/RS_VERSIONS

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
6.0.12-58
2-
100.0.0-2400
1+
100.0.0-2440

tests/qa/RS_VERSIONS-lite

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
6.0.12-58
2+
100.0.0-2440

tests/qa/nightly.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"service_id": "single_module_test_cycle",
3-
"name": "redisai automation-testing",
3+
"name": "redisai{{VARIANT}} automation-testing",
44
"properties": {
55
"sut_version": "master",
66
"email_recipients": "[email protected]",
@@ -15,7 +15,7 @@
1515
"teardown": true,
1616
"name": "bionic-amd64-aws",
1717
"concurrency": 1,
18-
"module_url": "http://redismodules.s3.amazonaws.com/{{RS_MODULE_FILE_PREFIX}}/snapshots/{{RS_MODULE_FILE_PREFIX}}-cpu.linux-bionic-x64.master.zip"
18+
"module_url": "http://redismodules.s3.amazonaws.com/{{RS_MODULE_FILE_PREFIX}}/snapshots/{{RS_MODULE_FILE_PREFIX}}-cpu.linux-bionic-x64.master{{VARIANT}}.zip"
1919
}
2020
]
2121
}

tests/qa/release.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"service_id": "single_module_test_cycle",
3-
"name": "redisai automation-testing",
3+
"name": "redisai{{VARIANT}} automation-testing",
44
"properties": {
55
"sut_version": "{{RS_VERSION}}",
66
"email_recipients": "[email protected]",
@@ -15,13 +15,13 @@
1515
"teardown": true,
1616
"name": "xenial-amd64-aws",
1717
"concurrency": 1,
18-
"module_url": "http://redismodules.s3.amazonaws.com/{{RS_MODULE_LC}}/{{RS_MODULE_FILE_PREFIX}}.linux-xenial-x64.{{MODULE_VERSION}}.zip"
18+
"module_url": "http://redismodules.s3.amazonaws.com/{{RS_MODULE_LC}}/{{RS_MODULE_FILE_PREFIX}}.linux-xenial-x64.{{MODULE_VERSION}}{{VARIANT}}.zip"
1919
},
2020
{
2121
"teardown": true,
2222
"name": "bionic-amd64-aws",
2323
"concurrency": 1,
24-
"module_url": "http://redismodules.s3.amazonaws.com/{{RS_MODULE_LC}}/{{RS_MODULE_FILE_PREFIX}}.linux-bionic-x64.{{MODULE_VERSION}}.zip"
24+
"module_url": "http://redismodules.s3.amazonaws.com/{{RS_MODULE_LC}}/{{RS_MODULE_FILE_PREFIX}}.linux-bionic-x64.{{MODULE_VERSION}}{{VARIANT}}.zip"
2525
}
2626
]
2727
}

tests/qa/run

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ fi
3030
export RS_MODULE=RedisAI
3131
export RS_MODULE_LC=${RS_MODULE,,}
3232
export RS_MODULE_FILE_PREFIX=redisai-cpu
33+
export VARIANT=${VARIANT} # for variants such as RedisAILite. We append -lite (see circleci for an example)
3334

3435
if [[ -z $QA_AUTOMATION_TOKEN && $NOP != 1 ]]; then
3536
echo "Variable QA_AUTOMATION_TOKEN is undefined." >&2
@@ -59,7 +60,7 @@ run_test() {
5960
cd $HERE
6061

6162
json_in=$(mktemp /tmp/$TEST.json.XXXX)
62-
$READIES/bin/xtx -e RS_MODULE -e RS_MODULE_LC -e RS_MODULE_FILE_PREFIX -e MODULE_VERSION -e RS_VERSION $TEST.json > $json_in
63+
$READIES/bin/xtx -e VARIANT -e RS_MODULE -e RS_MODULE_LC -e RS_MODULE_FILE_PREFIX -e MODULE_VERSION -e RS_VERSION $TEST.json > $json_in
6364
(( VERBOSE >= 1 )) && cat $json_in
6465

6566
if [[ $NOP == 1 ]]; then
@@ -89,10 +90,12 @@ run_test() {
8990
}
9091

9192
rc=0
93+
# By default we use RS_VERSIONS, but with variants they may need to specify their own redis verisons, hence this file
94+
VERSIONFILE=${HERE}/RS_VERSIONS${VARIANT}
9295
if [[ $QUICK == 1 ]]; then
93-
RS_VERSIONS=$(cat $HERE/RS_VERSIONS | head -1)
96+
RS_VERSIONS=$(cat $VERSIONFILE | head -1)
9497
else
95-
RS_VERSIONS=$(cat $HERE/RS_VERSIONS)
98+
RS_VERSIONS=$(cat $VERSIONFILE)
9699
fi
97100
for RS_VERSION in $RS_VERSIONS; do
98101
run_test $RS_VERSION

0 commit comments

Comments
 (0)