redis-benchmarks-specification 0.1.89__py3-none-any.whl → 0.1.91__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.

Potentially problematic release.


This version of redis-benchmarks-specification might be problematic. Click here for more details.

@@ -222,6 +222,7 @@ def generate_benchmark_started_pr_comment(
222
222
  benchmark_stream_id,
223
223
  total_pending,
224
224
  total_benchmarks,
225
+ total_failed,
225
226
  ):
226
227
  comment_body = (
227
228
  "### CE Performance Automation : step 2 of 2 (benchmark) RUNNING...\n\n"
@@ -231,12 +232,15 @@ def generate_benchmark_started_pr_comment(
231
232
  )
232
233
 
233
234
  completed = total_benchmarks - total_pending
235
+ successful = completed - total_failed
234
236
  comment_body += (
235
237
  f"Status: {markdown_progress_bar(completed,total_benchmarks,80)} completed.\n\n"
236
238
  )
237
239
  comment_body += f"In total will run {total_benchmarks} benchmarks.\n"
238
240
  comment_body += f" - {total_pending} pending.\n"
239
- comment_body += f" - {completed} completed.\n"
241
+ comment_body += f" - {completed} completed:\n"
242
+ comment_body += f" - {successful} successful.\n"
243
+ comment_body += f" - {total_failed} failed.\n"
240
244
 
241
245
  if not isinstance(benchmark_stream_id, str):
242
246
  benchmark_stream_id = benchmark_stream_id.decode()
@@ -531,7 +531,9 @@ def process_self_contained_coordinator_stream(
531
531
 
532
532
  stream_test_list_pending = f"ci.benchmarks.redis/ci/redis/redis:benchmarks:{stream_id}:{running_platform}:tests_pending"
533
533
  stream_test_list_running = f"ci.benchmarks.redis/ci/redis/redis:benchmarks:{stream_id}:{running_platform}:tests_running"
534
+ stream_test_list_failed = f"ci.benchmarks.redis/ci/redis/redis:benchmarks:{stream_id}:{running_platform}:tests_failed"
534
535
  stream_test_list_completed = f"ci.benchmarks.redis/ci/redis/redis:benchmarks:{stream_id}:{running_platform}:tests_completed"
536
+
535
537
  for test_file in testsuite_spec_files:
536
538
  if defaults_filename in test_file:
537
539
  continue
@@ -573,8 +575,9 @@ def process_self_contained_coordinator_stream(
573
575
  )
574
576
  filtered_test_files.append(test_file)
575
577
  pending_tests = len(filtered_test_files)
578
+ failed_tests = 0
576
579
  comment_body = generate_benchmark_started_pr_comment(
577
- stream_id, pending_tests, len(filtered_test_files)
580
+ stream_id, pending_tests, len(filtered_test_files), failed_tests
578
581
  )
579
582
  # update on github if needed
580
583
  if is_actionable_pr:
@@ -1011,31 +1014,46 @@ def process_self_contained_coordinator_stream(
1011
1014
  )
1012
1015
 
1013
1016
  dataset_load_duration_seconds = 0
1017
+ try:
1018
+ exporter_datasink_common(
1019
+ benchmark_config,
1020
+ benchmark_duration_seconds,
1021
+ build_variant_name,
1022
+ datapoint_time_ms,
1023
+ dataset_load_duration_seconds,
1024
+ datasink_conn,
1025
+ datasink_push_results_redistimeseries,
1026
+ git_branch,
1027
+ git_version,
1028
+ metadata,
1029
+ redis_conns,
1030
+ results_dict,
1031
+ running_platform,
1032
+ setup_name,
1033
+ setup_type,
1034
+ test_name,
1035
+ tf_github_org,
1036
+ tf_github_repo,
1037
+ tf_triggering_env,
1038
+ topology_spec_name,
1039
+ default_metrics,
1040
+ )
1041
+ r.shutdown(save=False)
1042
+
1043
+ except redis.exceptions.ConnectionError as e:
1044
+ logging.critical(
1045
+ "Some unexpected exception was caught during metric fetching. Skipping it..."
1046
+ )
1047
+ logging.critical(
1048
+ f"Exception type: {type(e).__name__}"
1049
+ )
1050
+ logging.critical(f"Exception message: {str(e)}")
1051
+ logging.critical("Traceback details:")
1052
+ logging.critical(traceback.format_exc())
1053
+ print("-" * 60)
1054
+ traceback.print_exc(file=sys.stdout)
1055
+ print("-" * 60)
1014
1056
 
1015
- exporter_datasink_common(
1016
- benchmark_config,
1017
- benchmark_duration_seconds,
1018
- build_variant_name,
1019
- datapoint_time_ms,
1020
- dataset_load_duration_seconds,
1021
- datasink_conn,
1022
- datasink_push_results_redistimeseries,
1023
- git_branch,
1024
- git_version,
1025
- metadata,
1026
- redis_conns,
1027
- results_dict,
1028
- running_platform,
1029
- setup_name,
1030
- setup_type,
1031
- test_name,
1032
- tf_github_org,
1033
- tf_github_repo,
1034
- tf_triggering_env,
1035
- topology_spec_name,
1036
- default_metrics,
1037
- )
1038
- r.shutdown(save=False)
1039
1057
  test_result = True
1040
1058
  total_test_suite_runs = total_test_suite_runs + 1
1041
1059
 
@@ -1054,10 +1072,20 @@ def process_self_contained_coordinator_stream(
1054
1072
  logging.critical("Printing redis container log....")
1055
1073
 
1056
1074
  print("-" * 60)
1057
-
1058
- print(
1059
- redis_container.logs(stdout=True, stderr=True)
1060
- )
1075
+ try:
1076
+ print(
1077
+ redis_container.logs(
1078
+ stdout=True, stderr=True
1079
+ )
1080
+ )
1081
+ except docker.errors.NotFound:
1082
+ logging.info(
1083
+ "When trying to stop DB container with id {} and image {} it was already stopped".format(
1084
+ redis_container.id,
1085
+ redis_container.image,
1086
+ )
1087
+ )
1088
+ pass
1061
1089
 
1062
1090
  print("-" * 60)
1063
1091
 
@@ -1100,12 +1128,21 @@ def process_self_contained_coordinator_stream(
1100
1128
  conn.lrem(stream_test_list_running, 1, test_name)
1101
1129
  conn.lpush(stream_test_list_completed, test_name)
1102
1130
  conn.expire(stream_test_list_completed, REDIS_BINS_EXPIRE_SECS)
1131
+ if test_result is False:
1132
+ conn.lpush(stream_test_list_failed, test_name)
1133
+ failed_tests = failed_tests + 1
1134
+ logging.warning(
1135
+ f"updating key {stream_test_list_failed} with the failed test: {test_name}. Total failed tests {failed_tests}."
1136
+ )
1103
1137
  pending_tests = pending_tests - 1
1104
1138
 
1105
1139
  # update on github if needed
1106
1140
  if is_actionable_pr:
1107
1141
  comment_body = generate_benchmark_started_pr_comment(
1108
- stream_id, pending_tests, len(filtered_test_files)
1142
+ stream_id,
1143
+ pending_tests,
1144
+ len(filtered_test_files),
1145
+ failed_tests,
1109
1146
  )
1110
1147
  update_comment_if_needed(
1111
1148
  auto_approve_github,
@@ -9,7 +9,7 @@ dbconfig:
9
9
  preload_tool:
10
10
  run_image: redislabs/memtier_benchmark:edge
11
11
  tool: memtier_benchmark
12
- arguments: '"--data-size" "2000000" "--ratio" "1:0" "--key-pattern" "P:P" "-c" "50" "-t" "2" "--hide-histogram" "--key-minimum" "1"'
12
+ arguments: '"--data-size" "2000000" "--ratio" "1:0" "--key-pattern" "P:P" "-c" "50" "-t" "2" "--hide-histogram" "--key-minimum" "1" "--key-minimum" "1000"'
13
13
  resources:
14
14
  requests:
15
15
  memory: 2g
@@ -22,7 +22,7 @@ build-variants:
22
22
  clientconfig:
23
23
  run_image: redislabs/memtier_benchmark:edge
24
24
  tool: memtier_benchmark
25
- arguments: --data-size 2000000 --ratio 0:1 --key-pattern R:R -c 25 -t 4 --hide-histogram --test-time 180
25
+ arguments: --data-size 2000000 --key-minimum 1 --key-maximum 1000 --ratio 0:1 --key-pattern R:R -c 25 -t 4 --hide-histogram --test-time 180
26
26
  resources:
27
27
  requests:
28
28
  cpus: '4'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: redis-benchmarks-specification
3
- Version: 0.1.89
3
+ Version: 0.1.91
4
4
  Summary: The Redis benchmarks specification describes the cross-language/tools requirements and expectations to foster performance and observability standards around redis related technologies. Members from both industry and academia, including organizations and individuals are encouraged to contribute.
5
5
  Author: filipecosta90
6
6
  Author-email: filipecosta.90@gmail.com
@@ -13,7 +13,7 @@ redis_benchmarks_specification/__cli__/stats.py,sha256=wahzZRbpfokv8dQU8O4BH5JFr
13
13
  redis_benchmarks_specification/__common__/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  redis_benchmarks_specification/__common__/builder_schema.py,sha256=LW00BSz_LXa83wbgRFylOCyRMMH4-3YpWgYh2hevOFM,5693
15
15
  redis_benchmarks_specification/__common__/env.py,sha256=l58AH5LC2jQcyPRJA4ue_4kMloOewcqnLvkLWfzph_A,3119
16
- redis_benchmarks_specification/__common__/github.py,sha256=WsyDjkgs8Iw8U7MS2pW0d9YiNCDtTUOGgstsuTeWFYQ,9390
16
+ redis_benchmarks_specification/__common__/github.py,sha256=mf5KBEo852w8uv6XXKTFTwf4X4aJCmk_VunMdbqt9Yo,9564
17
17
  redis_benchmarks_specification/__common__/package.py,sha256=4uVt1BAZ999LV2rZkq--Tk6otAVIf9YR3g3KGeUpiW4,834
18
18
  redis_benchmarks_specification/__common__/runner.py,sha256=6x1L8UAo-gmxLMcsUU4FGQ5OLV08fqygDnoVZ1rVUVQ,6642
19
19
  redis_benchmarks_specification/__common__/spec.py,sha256=3hvfAb7RuAsqB_PNEo_-iuOtgz1ZCWe3ouMwS5Mw54A,1002
@@ -33,7 +33,7 @@ redis_benchmarks_specification/__self_contained_coordinator__/cpuset.py,sha256=s
33
33
  redis_benchmarks_specification/__self_contained_coordinator__/docker.py,sha256=iivxZ55vL2kVHHkqVbXY2ftvxvceqH_Zw079KLCv9N8,2507
34
34
  redis_benchmarks_specification/__self_contained_coordinator__/prepopulation.py,sha256=ajhpzxsBy6tiHrO79gEIKQYxZR-Us6B4rC6NYg1EZjM,2875
35
35
  redis_benchmarks_specification/__self_contained_coordinator__/runners.py,sha256=Ul8UoxvWRxCVWmyaCBadpLMDOVEoNSp-A9KMPtPmUwM,28483
36
- redis_benchmarks_specification/__self_contained_coordinator__/self_contained_coordinator.py,sha256=reGVUVWmcx3L6EfMGi7ZbKRiIHefdVS-O15ZfbS7P7k,53612
36
+ redis_benchmarks_specification/__self_contained_coordinator__/self_contained_coordinator.py,sha256=__sjvSChAW2GNhZZ3tRNireT4GvuB01nmfqZJv3-GOo,55948
37
37
  redis_benchmarks_specification/__setups__/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
38
  redis_benchmarks_specification/__setups__/topologies.py,sha256=xQ1IJkcTji_ZjLiJd3vOxZpvbNtBLZw9cPkw5hGJKHU,481
39
39
  redis_benchmarks_specification/__spec__/__init__.py,sha256=l-G1z-t6twUgi8QLueqoTQLvJmv3hJoEYskGm6H7L6M,83
@@ -105,7 +105,7 @@ redis_benchmarks_specification/test-suites/memtier_benchmark-1Mkeys-string-get-1
105
105
  redis_benchmarks_specification/test-suites/memtier_benchmark-1Mkeys-string-get-1KiB.yml,sha256=E0omb2yhVr5jLX48JWA-_1le0PaqZkVwLer4EHLh-AA,934
106
106
  redis_benchmarks_specification/test-suites/memtier_benchmark-1Mkeys-string-get-200KiB.yml,sha256=rqXCcciNtZeIFVON1suAlPWkgMm9AW7UZKbb0w3qg9g,942
107
107
  redis_benchmarks_specification/test-suites/memtier_benchmark-1Mkeys-string-get-20KiB.yml,sha256=9XeIi_017Ra9kF-D0mcfEZJQrEPglmXv4_ziuns6iLA,938
108
- redis_benchmarks_specification/test-suites/memtier_benchmark-1Mkeys-string-get-2MB.yml,sha256=LM8LdSNHJnBJfKYQ9CiQnaz3HUFiphVEhxuEqmBjUYA,942
108
+ redis_benchmarks_specification/test-suites/memtier_benchmark-1Mkeys-string-get-2MB.yml,sha256=x6QG0rbF-epkKyypS0jKUpn3OdEr7mOPfBn3AaFVFFU,999
109
109
  redis_benchmarks_specification/test-suites/memtier_benchmark-1Mkeys-string-mget-1KiB.yml,sha256=MHs-vbKpoBjTgNdkkZ6CcEEO23LYGZjWCDv48zrRdUA,987
110
110
  redis_benchmarks_specification/test-suites/memtier_benchmark-1key-geo-60M-elements-geodist-pipeline-10.yml,sha256=nE8P3duUYTUjlRv_L22eAKA2bHANqhUu2O05r55GJx8,878
111
111
  redis_benchmarks_specification/test-suites/memtier_benchmark-1key-geo-60M-elements-geodist.yml,sha256=yhwDxlcM1WmfoXbdFFkWUYhpDm0lFNEITLC5MPqiNbg,852
@@ -150,8 +150,8 @@ redis_benchmarks_specification/test-suites/memtier_benchmark-2keys-set-10-100-el
150
150
  redis_benchmarks_specification/test-suites/memtier_benchmark-2keys-stream-5-entries-xread-all-entries-pipeline-10.yml,sha256=RSkNgV5SsjdkXhM0mifi2GlwIxtiHR8N3u-ieI23BoQ,1126
151
151
  redis_benchmarks_specification/test-suites/memtier_benchmark-2keys-stream-5-entries-xread-all-entries.yml,sha256=w7-dOIU-eATHXCvJbSeih6Vt54oygtkXKskQdzCll3o,1100
152
152
  redis_benchmarks_specification/test-suites/template.txt,sha256=qrci_94QV9bPUJe0cL8lsUaQmX5Woz-jT-pDF0629AE,423
153
- redis_benchmarks_specification-0.1.89.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
154
- redis_benchmarks_specification-0.1.89.dist-info/METADATA,sha256=cVTQ8VI4pladPy-Hyl283Rl_ySWgEap2pILChh2p6g4,22482
155
- redis_benchmarks_specification-0.1.89.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
156
- redis_benchmarks_specification-0.1.89.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
157
- redis_benchmarks_specification-0.1.89.dist-info/RECORD,,
153
+ redis_benchmarks_specification-0.1.91.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
154
+ redis_benchmarks_specification-0.1.91.dist-info/METADATA,sha256=xCm2SmLalu-0JXtVIUk0L3tW1IaJM9WTQ5pJZ0xXTcc,22482
155
+ redis_benchmarks_specification-0.1.91.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
156
+ redis_benchmarks_specification-0.1.91.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
157
+ redis_benchmarks_specification-0.1.91.dist-info/RECORD,,