Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ commands:
type: string
default: ../../src/rejson.so
steps:
- setup-automation
- run:
name: Install remote benchmark tool dependencies
command: |
Expand All @@ -69,6 +70,7 @@ commands:
export AWS_SECRET_ACCESS_KEY=$PERFORMANCE_EC2_SECRET_KEY
export AWS_DEFAULT_REGION=$PERFORMANCE_EC2_REGION
export EC2_PRIVATE_PEM=$PERFORMANCE_EC2_PRIVATE_PEM

redisbench-admin run-remote \
--required-module ReJSON \
--module_path "<< parameters.module_path >>" \
Expand All @@ -86,7 +88,7 @@ commands:
jobs:
build:
docker:
- image: redisfab/rmbuilder:6.0.9-x64-buster
- image: redisfab/rmbuilder:6.2.5-x64-buster
steps:
- checkout

Expand Down Expand Up @@ -115,7 +117,7 @@ jobs:
- build
package_branch:
docker:
- image: redisfab/rmbuilder:6.0.9-x64-buster
- image: redisfab/rmbuilder:6.2.5-x64-buster
steps:
- attach_workspace:
at: /workspace
Expand All @@ -134,7 +136,7 @@ jobs:

package_release:
docker:
- image: redisfab/rmbuilder:6.0.9-x64-buster
- image: redisfab/rmbuilder:6.2.5-x64-buster
steps:
- attach_workspace:
at: /workspace
Expand All @@ -159,7 +161,7 @@ jobs:

deploy_branch:
docker:
- image: redisfab/rmbuilder:6.0.9-x64-buster
- image: redisfab/rmbuilder:6.2.5-x64-buster
steps:
- attach_workspace:
at: /workspace
Expand All @@ -170,7 +172,7 @@ jobs:

deploy_release:
docker:
- image: redisfab/rmbuilder:6.0.9-x64-buster
- image: redisfab/rmbuilder:6.2.5-x64-buster
steps:
- attach_workspace:
at: /workspace
Expand All @@ -181,7 +183,7 @@ jobs:

release_automation:
docker:
- image: redisfab/rmbuilder:6.0.9-x64-buster
- image: redisfab/rmbuilder:6.2.5-x64-buster
steps:
- checkout
- setup-automation
Expand All @@ -191,7 +193,7 @@ jobs:

nightly_automation:
docker:
- image: redisfab/rmbuilder:6.0.9-x64-buster
- image: redisfab/rmbuilder:6.2.5-x64-buster
steps:
- checkout
- setup-automation
Expand All @@ -201,7 +203,7 @@ jobs:

performance-automation:
docker:
- image: redisfab/rmbuilder:6.2.1-x64-bionic
- image: redisfab/rmbuilder:6.2.5-x64-bionic
steps:
- early_return_for_forked_pull_requests
- checkout
Expand Down
9 changes: 4 additions & 5 deletions tests/qa/RS_VERSIONS
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
6.0.12-41
6.0.6-35
6.0.8-30
6.0.14-16
6.0.16-23
6.0.20-69
6.0.6-39
6.0.8-32
6.0.12-58
100.0.0-2199
5 changes: 0 additions & 5 deletions tests/qa/release.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@
"{{RS_MODULE}}"
],
"cycle_environments_setup": [
{
"teardown": true,
"name":"trusty-amd64-aws",
"concurrency": 1
},
{
"teardown": true,
"name": "xenial-amd64-aws",
Expand Down
24 changes: 10 additions & 14 deletions tests/qa/run
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ if [[ $1 == --help || $1 == help ]]; then
[ARGVARS...] run [--help|help]

Argument variables:
QA_AUTOMATION_USERNAME=name QA automation (Opereto) username
QA_AUTOMATION_PASS=pass QA automation (Opereto) password
QA_AUTOMATION_TOKEN=token QA automation (Opereto) token
TEST=name Name of .json parameters file
MODULE_VERSION=ver Module version to test. Default: master
NOP=1 Do not execute automation command
Expand All @@ -31,12 +30,8 @@ fi
export RS_MODULE=ReJSON
export RS_MODULE_FILE_PREFIX=rejson

if [[ -z $QA_AUTOMATION_USERNAME && $NOP != 1 ]]; then
echo "Variable QA_AUTOMATION_USERNAME is undefined." >&2
exit 1
fi
if [[ -z $QA_AUTOMATION_PASS && $NOP != 1 ]]; then
echo "Variable QA_AUTOMATION_PASS is undefined." >&2
if [[ -z $QA_AUTOMATION_TOKEN && $NOP != 1 ]]; then
echo "Variable QA_AUTOMATION_TOKEN is undefined." >&2
exit 1
fi

Expand All @@ -62,26 +57,27 @@ run_test() {
cd $HERE

json_in=$(mktemp /tmp/$TEST.json.XXXX)
$READIES/bin/xtx -e RS_MODULE -e MODULE_VERSION -e RS_VERSION $TEST.json > $json_in
$READIES/bin/xtx -e RS_MODULE -e RS_MODULE_FILE_PREFIX -e MODULE_VERSION -e RS_VERSION $TEST.json > $json_in
(( VERBOSE >= 1 )) && cat $json_in

if [[ $NOP == 1 ]]; then
echo "Testing RS $RS_VERSION"
return 0
fi

OPERETO3_URL="opereto.qa.redislabs.com"
JSON=$(curl -sk \
-u "$QA_AUTOMATION_USERNAME":"$QA_AUTOMATION_PASS" \
-X POST -H "Content-Type: application/json" \
-d @$json_in \
https://qa-automation-center.redislabs.com/processes 2>&1)
-X POST -H "Content-Type: application/json" \
-H "Authorization: Bearer $QA_AUTOMATION_TOKEN" \
-d @$json_in \
https://$OPERETO3_URL/processes 2>&1)
rc=$?
rm $json_in
status=$(results .status)
if [[ $rc == 0 && $status == success ]]; then
id=$(results .data[0])
echo "Tests running on $MODULE_VERSION for RS $RS_VERSION"
echo "Results: https://qa-automation-center.redislabs.com/ui#dashboard/flow/$id"
echo "Results: https://$OPERETO3_URL/ui#dashboard/flow/$id"
return 0
else
err=$(results .message)
Expand Down