Skip to content

Commit 19c5f19

Browse files
authored
QA automation update (2) (RedisJSON#507)
1 parent c43dd20 commit 19c5f19

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ jobs:
295295
- setup-automation
296296
- run:
297297
name: Run QA Automation
298-
command: ./tests/qa/qatests -v -t release -m "$CIRCLE_TAG"
298+
command: MODULE_VERSION=$CIRCLE_TAG VERBOSE=1 TEST=release ./tests/qa/run
299299

300300
nightly-automation:
301301
docker:
@@ -305,7 +305,7 @@ jobs:
305305
- setup-automation
306306
- run:
307307
name: Run QA Automation
308-
command: ./tests/qa/qatests -v -t nightly -m "$CIRCLE_BRANCH" --snapshot --quick
308+
command: MODULE_VERSION=$CIRCLE_BRANCH VERBOSE=1 TEST=nightly QUICK=1 ./tests/qa/run
309309

310310
performance-automation:
311311
docker:

Makefile

+10-3
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,17 @@ lint:
123123

124124
#----------------------------------------------------------------------------------------------
125125

126+
ifeq ($(OS),macos)
127+
BINUTILS_PREFIX:=$(shell brew --prefix binutils)
128+
OBJCOPY:=$(BINUTILS_PREFIX)/bin/objcopy
129+
else
130+
OBJCOPY:=objcopy
131+
endif
132+
126133
define extract_symbols
127-
$(SHOW)objcopy --only-keep-debug $1 $1.debug
128-
$(SHOW)objcopy --strip-debug $1
129-
$(SHOW)objcopy --add-gnu-debuglink $1.debug $1
134+
$(SHOW)$(OBJCOPY) --only-keep-debug $1 $1.debug
135+
$(SHOW)$(OBJCOPY) --strip-debug $1
136+
$(SHOW)$(OBJCOPY) --add-gnu-debuglink $1.debug $1
130137
endef
131138

132139
RUST_SOEXT.linux=so

tests/qa/qatests

+6-8
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import json
99
import requests
1010

1111
HERE = os.path.dirname(__file__)
12-
ROOT = os.path.abspath(os.path.join(HERE, ".."))
13-
READIES = "/w/rafi_1/readies"
12+
ROOT = os.path.abspath(os.path.join(HERE, "../.."))
13+
READIES = os.path.abspath(os.path.join(ROOT, "deps/readies"))
1414
sys.path.insert(0, READIES)
1515
import paella
1616

@@ -65,7 +65,7 @@ RS_VERSIONS file includes Redis Enterprive versions for release tests.
6565

6666

6767
class Test:
68-
def __init__(self, token, test_fname, modver, snapshot, rsver, osnick, light):
68+
def __init__(self, token, test_fname, modver, snapshot, rsver, osnick):
6969
global NOP, VERBOSE
7070

7171
self.token = token
@@ -74,7 +74,6 @@ class Test:
7474
self.snapshot = snapshot
7575
self.rsver = rsver
7676
self.osnick = osnick
77-
self.light = light
7877

7978
os.environ['RS_MODULE_DIR'] = 'rejson'
8079
self.rsmod = 'ReJSON'
@@ -126,7 +125,6 @@ class Test:
126125
if NOP:
127126
return 0
128127

129-
BB()
130128
res = requests.post(f"https://{OPERETO3_URL}/processes", verify=False,
131129
headers={'Authorization': f'Bearer {self.token}',
132130
'Content-Type': 'application/json'},
@@ -157,7 +155,7 @@ class Test:
157155
@click.option('--nop', is_flag=True, default=False, help='Dry run')
158156
@click.option('--verbose', '-v', is_flag=True, default=False, help='Be verbose')
159157
@click.option('--verbosity', type=int, default=0, help='Verbosity level')
160-
def main(token, test, modver, snapshot, rsver, osnick, light, quick, nop, verbose, verbosity, *args, **kwargs):
158+
def main(token, test, modver, snapshot, rsver, osnick, common, quick, nop, verbose, verbosity, *args, **kwargs):
161159
BB()
162160
global NOP, VERBOSE
163161
VERBOSE = 1 if verbose else verbosity
@@ -172,13 +170,13 @@ def main(token, test, modver, snapshot, rsver, osnick, light, quick, nop, verbos
172170
raise click.ClickException(f"Invalid test name: {test}")
173171

174172
if rsver is not None:
175-
Test(token, test_fname, modver, snapshot, rsver, osnick, light).run()
173+
Test(token, test_fname, modver, snapshot, rsver, osnick).run()
176174
else:
177175
rs_versions = paella.flines(os.path.join(HERE, 'RS_VERSIONS'))
178176
if quick:
179177
rs_versions = [rs_versions[0]]
180178
for rsver in rs_versions:
181-
Test(token, test_fname, modver, snapshot, rsver, osnick, light).run()
179+
Test(token, test_fname, modver, snapshot, rsver, osnick).run()
182180

183181

184182
if __name__ == '__main__':

0 commit comments

Comments
 (0)