redisbench-admin 0.11.8__py3-none-any.whl → 0.11.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- redisbench_admin/compare/compare.py +30 -24
- redisbench_admin/run/common.py +5 -3
- redisbench_admin/utils/benchmark_config.py +7 -0
- {redisbench_admin-0.11.8.dist-info → redisbench_admin-0.11.10.dist-info}/METADATA +1 -1
- {redisbench_admin-0.11.8.dist-info → redisbench_admin-0.11.10.dist-info}/RECORD +8 -8
- {redisbench_admin-0.11.8.dist-info → redisbench_admin-0.11.10.dist-info}/LICENSE +0 -0
- {redisbench_admin-0.11.8.dist-info → redisbench_admin-0.11.10.dist-info}/WHEEL +0 -0
- {redisbench_admin-0.11.8.dist-info → redisbench_admin-0.11.10.dist-info}/entry_points.txt +0 -0
|
@@ -191,32 +191,38 @@ def compare_command_logic(args, project_name, project_version):
|
|
|
191
191
|
logging.info("Detected github token")
|
|
192
192
|
g = Github(github_token)
|
|
193
193
|
if pull_request is not None and pull_request != "":
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
194
|
+
try:
|
|
195
|
+
pull_request_n = int(pull_request)
|
|
196
|
+
github_pr = (
|
|
197
|
+
g.get_user(tf_github_org)
|
|
198
|
+
.get_repo(tf_github_repo)
|
|
199
|
+
.get_issue(pull_request_n)
|
|
200
|
+
)
|
|
201
|
+
comments = github_pr.get_comments()
|
|
202
|
+
pr_link = github_pr.html_url
|
|
203
|
+
logging.info("Working on github PR already: {}".format(pr_link))
|
|
204
|
+
is_actionable_pr = True
|
|
205
|
+
contains_regression_comment, pos = check_regression_comment(comments)
|
|
206
|
+
if contains_regression_comment:
|
|
207
|
+
regression_comment = comments[pos]
|
|
208
|
+
old_regression_comment_body = regression_comment.body
|
|
209
|
+
logging.info(
|
|
210
|
+
"Already contains regression comment. Link: {}".format(
|
|
211
|
+
regression_comment.html_url
|
|
212
|
+
)
|
|
211
213
|
)
|
|
214
|
+
if verbose:
|
|
215
|
+
logging.info("Printing old regression comment:")
|
|
216
|
+
print("".join(["-" for x in range(1, 80)]))
|
|
217
|
+
print(regression_comment.body)
|
|
218
|
+
print("".join(["-" for x in range(1, 80)]))
|
|
219
|
+
else:
|
|
220
|
+
logging.info("Does not contain regression comment")
|
|
221
|
+
|
|
222
|
+
except Exception as e:
|
|
223
|
+
logging.error(
|
|
224
|
+
f"Error while working with github. exception {e.__str__()}"
|
|
212
225
|
)
|
|
213
|
-
if verbose:
|
|
214
|
-
logging.info("Printing old regression comment:")
|
|
215
|
-
print("".join(["-" for x in range(1, 80)]))
|
|
216
|
-
print(regression_comment.body)
|
|
217
|
-
print("".join(["-" for x in range(1, 80)]))
|
|
218
|
-
else:
|
|
219
|
-
logging.info("Does not contain regression comment")
|
|
220
226
|
|
|
221
227
|
grafana_dashboards_uids = {
|
|
222
228
|
"redisgraph": "SH9_rQYGz",
|
redisbench_admin/run/common.py
CHANGED
|
@@ -619,9 +619,11 @@ def run_redis_pre_steps(benchmark_config, r, required_modules):
|
|
|
619
619
|
)
|
|
620
620
|
search_specific_init(r, module_names)
|
|
621
621
|
if required_modules is not None and len(required_modules) > 0:
|
|
622
|
-
check_required_modules(module_names, required_modules)
|
|
623
|
-
|
|
624
|
-
|
|
622
|
+
artifact_pos = check_required_modules(module_names, required_modules)
|
|
623
|
+
version = artifact_versions[artifact_pos]
|
|
624
|
+
logging.info(
|
|
625
|
+
f"Using version {version} in by version timeseries coming from {module_names[artifact_pos]}"
|
|
626
|
+
)
|
|
625
627
|
else:
|
|
626
628
|
version = r.info("server")["redis_version"]
|
|
627
629
|
|
|
@@ -565,6 +565,7 @@ def get_testfiles_to_process(
|
|
|
565
565
|
|
|
566
566
|
|
|
567
567
|
def check_required_modules(module_names, required_modules):
|
|
568
|
+
position = -1
|
|
568
569
|
if required_modules is not None:
|
|
569
570
|
if len(required_modules) > 0:
|
|
570
571
|
logging.info(
|
|
@@ -572,6 +573,12 @@ def check_required_modules(module_names, required_modules):
|
|
|
572
573
|
required_modules
|
|
573
574
|
)
|
|
574
575
|
)
|
|
576
|
+
first_module = required_modules[0]
|
|
577
|
+
if first_module in module_names:
|
|
578
|
+
position = module_names.index(first_module)
|
|
579
|
+
logging.info(
|
|
580
|
+
f"POSITION of 1st required module :{first_module} in the module names list {module_names}: pos={position} "
|
|
581
|
+
)
|
|
575
582
|
for required_module in required_modules:
|
|
576
583
|
if required_module not in module_names:
|
|
577
584
|
raise Exception(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: redisbench-admin
|
|
3
|
-
Version: 0.11.
|
|
3
|
+
Version: 0.11.10
|
|
4
4
|
Summary: Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... ).
|
|
5
5
|
Author: filipecosta90
|
|
6
6
|
Author-email: filipecosta.90@gmail.com
|
|
@@ -4,7 +4,7 @@ redisbench_admin/commands/__init__.py,sha256=mzVrEtqefFdopyzR-W6xx3How95dyZfToGK
|
|
|
4
4
|
redisbench_admin/commands/commands.json.py,sha256=mzVrEtqefFdopyzR-W6xx3How95dyZfToGKm1-_YzeY,95
|
|
5
5
|
redisbench_admin/compare/__init__.py,sha256=DtBXRp0Q01XgCFmY-1OIePMyyYihVNAjZ1Y8zwqSDN0,101
|
|
6
6
|
redisbench_admin/compare/args.py,sha256=10zbiT8roeTGnAubvoVFZTbJNbVxuRaRPtCKjxV8iNE,5226
|
|
7
|
-
redisbench_admin/compare/compare.py,sha256=
|
|
7
|
+
redisbench_admin/compare/compare.py,sha256=HOYLu8I0fi3ZGRD-uc5T1AyUr5WSHx3yt-Bs6o8dvRU,38025
|
|
8
8
|
redisbench_admin/deploy/__init__.py,sha256=DtBXRp0Q01XgCFmY-1OIePMyyYihVNAjZ1Y8zwqSDN0,101
|
|
9
9
|
redisbench_admin/deploy/args.py,sha256=neLUcQqI__HkJItkQg2C293hl5g3yHG40t171r7-E5Y,1732
|
|
10
10
|
redisbench_admin/deploy/deploy.py,sha256=c1srxDMaUHuyh6wGdgLqzTz3ljZFtGqiumtAmguVyuk,3791
|
|
@@ -176,7 +176,7 @@ redisbench_admin/run/ann/pkg/test/test-jaccard.py,sha256=oIhaQCQKrQokwv3fvgLSwPl
|
|
|
176
176
|
redisbench_admin/run/ann/pkg/test/test-metrics.py,sha256=vJdS8Kuk8bAnpB65Uqb-9rUUI35XrHwaO3cNwKX5gxc,3057
|
|
177
177
|
redisbench_admin/run/args.py,sha256=Sspv4eusQs9HMVMIyv_hB9vQ3S_s0lHYGAL1gPb2WGM,7864
|
|
178
178
|
redisbench_admin/run/cluster.py,sha256=QuptSW-IhdyFIoQ3hzY613jtQWxBrVIlgc8OarcEK20,6072
|
|
179
|
-
redisbench_admin/run/common.py,sha256=
|
|
179
|
+
redisbench_admin/run/common.py,sha256=_nnvrSE1y7cOwha2BsaTM-j-PkFH2gf4LYu0FrbqKeQ,28172
|
|
180
180
|
redisbench_admin/run/ftsb/__init__.py,sha256=DtBXRp0Q01XgCFmY-1OIePMyyYihVNAjZ1Y8zwqSDN0,101
|
|
181
181
|
redisbench_admin/run/ftsb/ftsb.py,sha256=plP-yxjMvvy-gITlXpuXJcyrPHfDoYYI8JRwTe5kK4M,2388
|
|
182
182
|
redisbench_admin/run/git.py,sha256=6UYGcTN0MPzf4QDVoJnFkou0yZasLF6jLG7f0zoySq8,3064
|
|
@@ -224,7 +224,7 @@ redisbench_admin/run_remote/run_remote.py,sha256=Y2EIiNzkktp_yu0CB3C8yjUXkbLBZSQ
|
|
|
224
224
|
redisbench_admin/run_remote/standalone.py,sha256=oqnnMWXzJG_GCV2YcmEhVRsiZWJVHt3etMe4o6rS_7E,6862
|
|
225
225
|
redisbench_admin/run_remote/terraform.py,sha256=zD2gGuOmnTex6Dt2lhdAtNn21iL6sykPPXI10jJaim4,3945
|
|
226
226
|
redisbench_admin/utils/__init__.py,sha256=DtBXRp0Q01XgCFmY-1OIePMyyYihVNAjZ1Y8zwqSDN0,101
|
|
227
|
-
redisbench_admin/utils/benchmark_config.py,sha256=
|
|
227
|
+
redisbench_admin/utils/benchmark_config.py,sha256=Ee-FS5CjePxK2rcImFZMiaXZcGBLoFXTbBvI4QYLCYE,21733
|
|
228
228
|
redisbench_admin/utils/local.py,sha256=zUvyVI9LZMT3qyxs1pO3mXL6Bt_1z9EZUGppaRcWNRA,3890
|
|
229
229
|
redisbench_admin/utils/redisearch.py,sha256=lchUEzpt0zB1rHwlDlw9LLifAnxFWcLP-PePw7TjL-0,1602
|
|
230
230
|
redisbench_admin/utils/redisgraph_benchmark_go.py,sha256=os7EJt6kBxsFJLKkSoANbjMT7-cEq4-Ns-49alk2Tf8,2048
|
|
@@ -235,8 +235,8 @@ redisbench_admin/utils/utils.py,sha256=zq62tU-8mre2n_iTbssc990TqwArpmHQJ9WXgHdLK
|
|
|
235
235
|
redisbench_admin/watchdog/__init__.py,sha256=cD7zfXt0VEmy0b7452HvcAxX_9kVj6Vm213yNdUHP20,95
|
|
236
236
|
redisbench_admin/watchdog/args.py,sha256=nKsG1G6ATOZlAMHMtT9u3kXxduKCbejSZ5x8oB_ynZ8,1312
|
|
237
237
|
redisbench_admin/watchdog/watchdog.py,sha256=jFGtm5ktjKuXKWvH7lnmf3pp-ch1WBJUOomXILJMDAg,6158
|
|
238
|
-
redisbench_admin-0.11.
|
|
239
|
-
redisbench_admin-0.11.
|
|
240
|
-
redisbench_admin-0.11.
|
|
241
|
-
redisbench_admin-0.11.
|
|
242
|
-
redisbench_admin-0.11.
|
|
238
|
+
redisbench_admin-0.11.10.dist-info/LICENSE,sha256=AAMtfs82zOOvmG68vILivm6lxi2rcOlGObmA8jzxQvw,10768
|
|
239
|
+
redisbench_admin-0.11.10.dist-info/METADATA,sha256=6r-4GcofEGmvCDG7XhY95n6jTYYK3uT3tkX2CnbTSBc,5438
|
|
240
|
+
redisbench_admin-0.11.10.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
241
|
+
redisbench_admin-0.11.10.dist-info/entry_points.txt,sha256=UUawXk_AS-PlieKJ1QxPQXGsRLb6OW_F0MtmA1W0KE8,113
|
|
242
|
+
redisbench_admin-0.11.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|