Skip to content

Commit 3417660

Browse files
[fix] Fixed RDB path resolver on run-remote automation (#46)
1 parent 21dd4ee commit 3417660

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redisbench-admin"
3-
version = "0.1.45"
3+
version = "0.1.46"
44
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
55
authors = ["filipecosta90 <filipecosta.90@gmail.com>"]
66
readme = "README.md"

redisbench_admin/run_local/run_local.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ def run_local_command_logic(args):
131131
entry
132132
)
133133
if benchmark_tool == 'redisgraph-benchmark-go':
134-
print(entry)
135134
command = prepareRedisGraphBenchmarkGoCommand(
136135
"redisgraph-benchmark-go",
137136
"localhost",

redisbench_admin/run_remote/run_remote.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ def run_remote_command_logic(args):
302302
entry
303303
)
304304
if benchmark_tool == 'redisgraph-benchmark-go':
305-
print(entry)
306305
command = prepareRedisGraphBenchmarkGoCommand(
307306
"/tmp/redisgraph-benchmark-go",
308307
server_private_ip,

redisbench_admin/utils/redisgraph_benchmark_go.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ def spinUpRemoteRedis(
3636
username,
3737
private_key,
3838
local_module_file,
39-
remote_module_file,
40-
"."
39+
remote_module_file
4140
)
4241
executeRemoteCommands(
4342
server_public_ip,

redisbench_admin/utils/remote.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,12 @@ def viewBarSimple(a, b):
2828

2929

3030
def copyFileToRemoteSetup(
31-
server_public_ip, username, private_key, local_file, remote_file, dirname="."
31+
server_public_ip, username, private_key, local_file, remote_file, dirname=None
3232
):
3333
res = False
34-
full_local_path = "{}/{}".format(dirname, local_file)
34+
full_localpath = local_file
35+
if dirname is not None:
36+
full_local_path = "{}/{}".format(dirname, local_file)
3537
logging.info(
3638
"Copying local file {} to remote server {}".format(full_local_path, remote_file)
3739
)
@@ -51,9 +53,11 @@ def copyFileToRemoteSetup(
5153
))
5254
res = True
5355
else:
54-
logging.info(
56+
logging.error(
5557
"Local file {} does not exists. aborting...".format(full_local_path)
5658
)
59+
raise Exception(
60+
"Local file {} does not exists. aborting...".format(full_local_path))
5761
res = False
5862
return res
5963

0 commit comments

Comments
 (0)