Skip to content

Commit

Permalink
Merge pull request #204 from RediSearch/update_version_to_2.0.3
Browse files Browse the repository at this point in the history
Update version to 2.0.3
  • Loading branch information
MeirShpilraien authored Nov 11, 2020
2 parents 9a450b4 + 1cf882c commit cff648f
Show file tree
Hide file tree
Showing 11 changed files with 94 additions and 30 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ jobs:
- run:
name: Run QA Automation
command: MODULE_VERSION=$CIRCLE_TAG VERBOSE=1 TEST=release ./tests/qa/run
- run:
name: Run QA Automation (RediSearch Light)
command: MODULE_VERSION=$CIRCLE_TAG VERBOSE=1 TEST=release LIGHT=1 ./tests/qa/run

nightly-automation:
docker:
Expand All @@ -150,6 +153,9 @@ jobs:
- run:
name: Run QA Automation
command: MODULE_VERSION=$CIRCLE_BRANCH VERBOSE=1 TEST=nightly ./tests/qa/run
- run:
name: Run QA Automation (RediSearch Light)
command: MODULE_VERSION=$CIRCLE_BRANCH VERBOSE=1 TEST=nightly LIGHT=1 ./tests/qa/run


on-any-branch: &on-any-branch
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ $ mkdir build

$ python configure.py

$ cd buidl
$ cd build

$ make

Expand Down
2 changes: 1 addition & 1 deletion ramp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ homepage: 'http://redisearch.io'
license: Redis Source Available License Agreement
command_line_args: PARTITIONS AUTO
min_redis_version: '6.0'
min_redis_pack_version: '6.0'
min_redis_pack_version: '6.0.8'
config_command: "_FT.CONFIG SET"
capabilities:
- types
Expand Down
2 changes: 1 addition & 1 deletion src/dep/RediSearch
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#define RSCOORDINATOR_VERSION_MAJOR 2
#define RSCOORDINATOR_VERSION_MINOR 0
#define RSCOORDINATOR_VERSION_PATCH 2
#define RSCOORDINATOR_VERSION_PATCH 3

// convert semver to incremental number as expected by redis
#define RSCOORDINATOR_VERSION \
Expand Down
1 change: 1 addition & 0 deletions tests/qa/RS_VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6.0.12-29
4 changes: 3 additions & 1 deletion tests/qa/nightly.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"email_recipients": "[email protected]",
"sut_environments": [],
"tools_environment": {},
"module_name": "search",
"modules_version": "master",
"test_names_modules": [
"{{RS_MODULE}}"
],
"cycle_environments_setup": [
{
"teardown": true,
Expand Down
10 changes: 7 additions & 3 deletions tests/qa/nightly.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
# https://qa-automation-center.redislabs.com/ui#dashboard/info/single_module_test_cycle
# Redis-Enterprise/rl-automation/microservices/cycles/single_module_test_cycle_sanity_and_extended/service.yaml

service_id: single_module_test_cycle
name: redisearch automation-testing
properties:
sut_version: master
sut_version: {{RS_VERSION}}
email_recipients: [email protected]
sut_environments: []
tools_environment: {}
module_name: search
modules_version: master
test_names_modules:
- {{RS_MODULE}}
cycle_environments_setup:
- name: bionic-amd64-aws
# module_url: http://redismodules.s3.amazonaws.com/redisearch/snapshots/redisearch.Linux-ubuntu18.04-x86_64.master-snapshot.zip
# module_url: http://redismodules.s3.amazonaws.com/redisearch/snapshots/{{RS_MODULE_FILE_PREFIX}}.Linux-ubuntu18.04-x86_64.master-snapshot.zip
teardown: true
concurrency: 1
14 changes: 8 additions & 6 deletions tests/qa/release.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,34 @@
"service_id": "single_module_test_cycle",
"name": "redisearch automation-testing",
"properties": {
"sut_version": "master",
"sut_version": "{{RS_VERSION}}",
"email_recipients": "[email protected]",
"sut_environments": [],
"tools_environment": {},
"module_name": "search",
"modules_version": "{{MODULE_VERSION}}",
"test_names_modules": [
"{{RS_MODULE}}"
],
"cycle_environments_setup": [
{
"teardown": true,
"name":"trusty-amd64-aws",
"concurrency": 4
"concurrency": 1
},
{
"teardown": true,
"name": "xenial-amd64-aws",
"concurrency": 4
"concurrency": 1
},
{
"teardown": true,
"name": "bionic-amd64-aws",
"concurrency": 4
"concurrency": 1
},
{
"teardown": true,
"name": "rhel7.7-x86_64-aws",
"concurrency": 4
"concurrency": 1
}
]
}
Expand Down
28 changes: 16 additions & 12 deletions tests/qa/release.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
# https://qa-automation-center.redislabs.com/ui#dashboard/info/single_module_test_cycle
# Redis-Enterprise/rl-automation/microservices/cycles/single_module_test_cycle_sanity_and_extended/service.yaml

service_id: single_module_test_cycle
name: redisearch automation-testing
properties:
sut_version: master
sut_version: {{RS_VERSION}}
email_recipients: [email protected]
sut_environments: []
tools_environment: {}
module_name: search
modules_version: "{{MODULE_VERSION}}"
modules_version: {{MODULE_VERSION}}
test_names_modules:
- {{RS_MODULE}}
cycle_environments_setup:
- name: trusty-amd64-aws
# module_url: "http://redismodules.s3.amazonaws.com/redisearch/snapshots/redisearch.Linux-ubuntu18.04-x86_64.{{MODULE_VERSION}}-snapshot.zip"
# module_url: "http://redismodules.s3.amazonaws.com/redisearch/snapshots/{{RS_MODULE_FILE_PREFIX}}.Linux-ubuntu14.04-x86_64.{{MODULE_VERSION}}-snapshot.zip"
teardown: true
concurrency: 4
concurrency: 1
- name: xenial-amd64-aws
# module_url: "http://redismodules.s3.amazonaws.com/redisearch/snapshots/redisearch.Linux-ubuntu18.04-x86_64.{{MODULE_VERSION}}-snapshot.zip"
# module_url: "http://redismodules.s3.amazonaws.com/redisearch/snapshots/{{RS_MODULE_FILE_PREFIX}}.Linux-ubuntu16.04-x86_64.{{MODULE_VERSION}}-snapshot.zip"
teardown: true
concurrency: 4
concurrency: 1
- name: bionic-amd64-aws
# module_url: "http://redismodules.s3.amazonaws.com/redisearch/snapshots/redisearch.Linux-ubuntu18.04-x86_64.{{MODULE_VERSION}}-snapshot.zip"
# module_url: "http://redismodules.s3.amazonaws.com/redisearch/snapshots/{{RS_MODULE_FILE_PREFIX}}.Linux-ubuntu18.04-x86_64.{{MODULE_VERSION}}-snapshot.zip"
teardown: true
concurrency: 4
- name: rhel7.8-amd64-aws
# module_url: "http://redismodules.s3.amazonaws.com/redisearch/snapshots/redisearch.Linux-ubuntu18.04-x86_64.{{MODULE_VERSION}}-snapshot.zip"
concurrency: 1
- name: rhel7.7-amd64-aws
# module_url: "http://redismodules.s3.amazonaws.com/redisearch/snapshots/{{RS_MODULE_FILE_PREFIX}}.Linux-rhel7-x86_64.{{MODULE_VERSION}}-snapshot.zip"
teardown: true
concurrency: 4
concurrency: 1
53 changes: 49 additions & 4 deletions tests/qa/run
Original file line number Diff line number Diff line change
@@ -1,7 +1,31 @@
#!/bin/bash

HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
ROOT=$HERE/../..
ROOT=$(cd $HERE/../..; pwd)

(( $VERBOSE > 1 )) && { set -x; PS4='$LINENO: '; }

if [[ $1 == --help || $1 == help ]]; then
cat <<-END
Invoke QA Automation tests
[ARGVARS...] run [--help|help]
Argument variables:
QA_AUTOMATION_USERNAME=name QA automation (Opereto) username
QA_AUTOMATION_PASS=pass QA automation (Opereto) password
TEST=name Name of .json parameters file
MODULE_VERSION=ver Module version to test. Default: master
LIGHT=1 Test RediSearch Light
NOP=1 Do not execute automation command
VERBOSE=N Set verbosity level (N=1,2)
Other configuration:
RS_VERSION file includes Redis Enterprive version for release tests.
END
exit 0
fi

if [[ -z $QA_AUTOMATION_USERNAME ]]; then
echo "Variable QA_AUTOMATION_USERNAME is undefined." >&2
Expand All @@ -13,7 +37,26 @@ if [[ -z $QA_AUTOMATION_PASS ]]; then
fi

export TEST=${TEST:-release}
export MODULE_VERSION=${MODULE_VERSION:-master}
if [[ ! -f $HERE/$TEST.json ]]; then
echo "Invalid TEST name: $TEST" >&2
exit 1
fi

export RS_VERSION=$(cat $HERE/RS_VERSION)

if [[ -z $MODULE_VERSION ]]; then
export MODULE_VERSION=master
else
export MODULE_VERSION=$(echo "$MODULE_VERSION" | sed 's/^v\(.*\)/\1/')
fi

if [[ $LIGHT == 1 ]]; then
export RS_MODULE=RedisearchLight
export RS_MODULE_FILE_PREFIX=redisearch-light
else
export RS_MODULE=RediSearchEnterprise
export RS_MODULE_FILE_PREFIX=redisearch
fi

results() {
echo "$JSON" | jq "$1" | cut -d\" -f2
Expand All @@ -22,8 +65,10 @@ results() {
cd $HERE

json_in=$(mktemp /tmp/$TEST.json.XXXX)
$ROOT/deps/readies/bin/xtx -e MODULE_VERSION $TEST.json > $json_in
[[ $VERBOSE == 1 ]] && cat $json_in
$ROOT/deps/readies/bin/xtx -e RS_MODULE -e MODULE_VERSION -e RS_VERSION $TEST.json > $json_in
(( $VERBOSE >= 1 )) && cat $json_in

[[ $NOP == 1 ]] && exit 0

JSON=$(curl -sk \
-u "$QA_AUTOMATION_USERNAME":"$QA_AUTOMATION_PASS" \
Expand Down

0 comments on commit cff648f

Please sign in to comment.