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

@@ -506,6 +506,7 @@ def builder_process_stream(
506
506
  tests_priority_lower_limit,
507
507
  tests_priority_upper_limit,
508
508
  tests_regexp,
509
+ build_start_datetime,
509
510
  build_duration_secs,
510
511
  )
511
512
  if contains_regression_comment:
@@ -351,6 +351,7 @@ def trigger_tests_cli_command_logic(args, project_name, project_version):
351
351
  )
352
352
 
353
353
  if args.wait_build is True:
354
+ build_start_datetime = datetime.datetime.utcnow()
354
355
  decoded_stream_id = stream_id.decode()
355
356
  builder_list_streams = (
356
357
  f"builder:{decoded_stream_id}:builds_completed"
@@ -409,6 +410,9 @@ def trigger_tests_cli_command_logic(args, project_name, project_version):
409
410
  logging.info(
410
411
  f"FINAL total of {len_list} already build benchmark stream ids for this build: {benchmark_stream_ids}"
411
412
  )
413
+ build_end_datetime = datetime.datetime.utcnow()
414
+ build_duration = build_end_datetime - build_start_datetime
415
+ build_duration_secs = build_duration.total_seconds()
412
416
 
413
417
  comment_body = generate_build_finished_pr_comment(
414
418
  benchmark_stream_ids,
@@ -420,6 +424,8 @@ def trigger_tests_cli_command_logic(args, project_name, project_version):
420
424
  tests_priority_lower_limit,
421
425
  tests_priority_upper_limit,
422
426
  tests_regexp,
427
+ build_start_datetime,
428
+ build_duration_secs,
423
429
  )
424
430
  if is_actionable_pr:
425
431
  if contains_regression_comment:
@@ -47,7 +47,7 @@ def generate_build_finished_pr_comment(
47
47
  tests_priority_lower_limit,
48
48
  tests_priority_upper_limit,
49
49
  tests_regexp,
50
- build_datetime,
50
+ build_start_datetime,
51
51
  build_duration_seconds,
52
52
  ):
53
53
  build_duration_seconds = int(build_duration_seconds)
@@ -55,7 +55,7 @@ def generate_build_finished_pr_comment(
55
55
  comment_body += (
56
56
  "This comment was automatically generated given a benchmark was triggered.\n"
57
57
  )
58
- comment_body += f"Started building at {build_datetime} and took {build_duration_seconds} seconds.\n"
58
+ comment_body += f"Started building at {build_start_datetime} and took {build_duration_seconds} seconds.\n"
59
59
  comment_body += "You can check each build/benchmark progress in grafana:\n"
60
60
  comment_body += f" - git hash: {git_hash}\n"
61
61
  comment_body += f" - git branch: {git_branch}\n"
@@ -1011,31 +1011,46 @@ def process_self_contained_coordinator_stream(
1011
1011
  )
1012
1012
 
1013
1013
  dataset_load_duration_seconds = 0
1014
+ try:
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
+
1040
+ except redis.exceptions.ConnectionError as e:
1041
+ logging.critical(
1042
+ "Some unexpected exception was caught during metric fetching. Skipping it..."
1043
+ )
1044
+ logging.critical(
1045
+ f"Exception type: {type(e).__name__}"
1046
+ )
1047
+ logging.critical(f"Exception message: {str(e)}")
1048
+ logging.critical("Traceback details:")
1049
+ logging.critical(traceback.format_exc())
1050
+ print("-" * 60)
1051
+ traceback.print_exc(file=sys.stdout)
1052
+ print("-" * 60)
1014
1053
 
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
1054
  test_result = True
1040
1055
  total_test_suite_runs = total_test_suite_runs + 1
1041
1056
 
@@ -1054,10 +1069,20 @@ def process_self_contained_coordinator_stream(
1054
1069
  logging.critical("Printing redis container log....")
1055
1070
 
1056
1071
  print("-" * 60)
1057
-
1058
- print(
1059
- redis_container.logs(stdout=True, stderr=True)
1060
- )
1072
+ try:
1073
+ print(
1074
+ redis_container.logs(
1075
+ stdout=True, stderr=True
1076
+ )
1077
+ )
1078
+ except docker.errors.NotFound:
1079
+ logging.info(
1080
+ "When trying to stop DB container with id {} and image {} it was already stopped".format(
1081
+ redis_container.id,
1082
+ redis_container.image,
1083
+ )
1084
+ )
1085
+ pass
1061
1086
 
1062
1087
  print("-" * 60)
1063
1088
 
@@ -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.88
3
+ Version: 0.1.90
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
@@ -4,16 +4,16 @@ redis_benchmarks_specification/__api__/api.py,sha256=k_CMICtMm1z8jY3hByaL0hIr_5v
4
4
  redis_benchmarks_specification/__api__/app.py,sha256=JzQm84DjIVdfLbDO423BJbrds6gFzMbA0syRkHE_aUU,7063
5
5
  redis_benchmarks_specification/__builder__/Readme.md,sha256=O6MV_J3OSgzW-ir2TbukP8Vhkm_LOzQJJndG1Cykqic,111
6
6
  redis_benchmarks_specification/__builder__/__init__.py,sha256=l-G1z-t6twUgi8QLueqoTQLvJmv3hJoEYskGm6H7L6M,83
7
- redis_benchmarks_specification/__builder__/builder.py,sha256=tAzcYALvbuFkgaU1LTIsPTzUWNmXMHKiSGX1gj4I1Fw,24491
7
+ redis_benchmarks_specification/__builder__/builder.py,sha256=V6kgow4b1KWcmDggEswKW47v2Nfv68qkFy_1bzX8FOc,24541
8
8
  redis_benchmarks_specification/__builder__/schema.py,sha256=1wcmyVJBcWrBvK58pghN9NCoWLCO3BzPsmdKWYfkVog,584
9
9
  redis_benchmarks_specification/__cli__/__init__.py,sha256=l-G1z-t6twUgi8QLueqoTQLvJmv3hJoEYskGm6H7L6M,83
10
10
  redis_benchmarks_specification/__cli__/args.py,sha256=GU7lJBTLtufypa1R25Ey2PeBUu9fr0Tv4iGk6wfrsRQ,6186
11
- redis_benchmarks_specification/__cli__/cli.py,sha256=JRWSxPyKZfebwMJEy_6pRirke2wZMmJzTgmDmBsO-XE,16863
11
+ redis_benchmarks_specification/__cli__/cli.py,sha256=2NVOaL-6yws-HIMkfQv4QPFqppbgQ3_VrBEljHrtzTQ,17268
12
12
  redis_benchmarks_specification/__cli__/stats.py,sha256=wahzZRbpfokv8dQU8O4BH5JFrOZk-l6k8LWdKfue9_0,20204
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=zGZR_HFPaMarF5w5CQ1Z8A1UaeQYGcZSd5TtlMhxAZ8,9378
16
+ redis_benchmarks_specification/__common__/github.py,sha256=WsyDjkgs8Iw8U7MS2pW0d9YiNCDtTUOGgstsuTeWFYQ,9390
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=2HgztelRgsLJC5rhsaXaEnxu_6YMOOPhqQZKKzZGzI4,55287
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.88.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
154
- redis_benchmarks_specification-0.1.88.dist-info/METADATA,sha256=Md4fwlhSdB9WMc_ojGrugAesyhNFn91zA1F7jHd6yoA,22482
155
- redis_benchmarks_specification-0.1.88.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
156
- redis_benchmarks_specification-0.1.88.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
157
- redis_benchmarks_specification-0.1.88.dist-info/RECORD,,
153
+ redis_benchmarks_specification-0.1.90.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
154
+ redis_benchmarks_specification-0.1.90.dist-info/METADATA,sha256=S-9nJqG02WZt2Q0ibWrnANBp-sDrMG8MBeZ6WRVf7YA,22482
155
+ redis_benchmarks_specification-0.1.90.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
156
+ redis_benchmarks_specification-0.1.90.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
157
+ redis_benchmarks_specification-0.1.90.dist-info/RECORD,,