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

@@ -343,6 +343,8 @@ def builder_process_stream(
343
343
  "linenoise",
344
344
  "lua",
345
345
  ]
346
+ if "fast_float" in deps_dir:
347
+ deps_list.append("fast_float")
346
348
  if "hdr_histogram" in deps_dir:
347
349
  deps_list.append("hdr_histogram")
348
350
  if "fpconv" in deps_dir:
@@ -87,6 +87,23 @@ def trigger_tests_dockerhub_cli_command_logic(args, project_name, project_versio
87
87
  args.build_arch,
88
88
  testDetails,
89
89
  "n/a",
90
+ [],
91
+ None,
92
+ None,
93
+ None,
94
+ None,
95
+ None,
96
+ None,
97
+ None,
98
+ None,
99
+ None,
100
+ None,
101
+ None,
102
+ None,
103
+ ".*",
104
+ 0,
105
+ 10000,
106
+ args.tests_regexp,
90
107
  )
91
108
  build_stream_fields["github_repo"] = args.gh_repo
92
109
  build_stream_fields["github_org"] = args.gh_org
@@ -20,7 +20,7 @@ def generate_standalone_redis_server_args(
20
20
  "{}".format(port),
21
21
  ]
22
22
  if dbdir != "":
23
- command.extend(["--dbdir", dbdir])
23
+ command.extend(["--dir", dbdir])
24
24
  if configuration_parameters is not None:
25
25
  for parameter, parameter_value in configuration_parameters.items():
26
26
  if parameter not in added_params:
@@ -832,39 +832,16 @@ def process_self_contained_coordinator_stream(
832
832
  db_cpuset_cpus, current_cpu_pos = generate_cpuset_cpus(
833
833
  ceil_db_cpu_limit, current_cpu_pos
834
834
  )
835
- logging.info(
836
- "Running redis-server on docker image {} (cpuset={}) with the following args: {}".format(
837
- run_image, db_cpuset_cpus, command_str
838
- )
839
- )
840
- volumes = {}
841
- working_dir = "/"
842
- if mnt_point != "":
843
- volumes = {
844
- temporary_dir: {
845
- "bind": mnt_point,
846
- "mode": "rw",
847
- },
848
- }
849
- working_dir = mnt_point
850
- redis_container = docker_client.containers.run(
851
- image=run_image,
852
- volumes=volumes,
853
- auto_remove=True,
854
- privileged=True,
855
- working_dir=mnt_point,
856
- command=command_str,
857
- network_mode="host",
858
- detach=True,
859
- cpuset_cpus=db_cpuset_cpus,
860
- pid_mode="host",
861
- publish_all_ports=True,
835
+ redis_container = start_redis_container(
836
+ command_str,
837
+ db_cpuset_cpus,
838
+ docker_client,
839
+ mnt_point,
840
+ redis_containers,
841
+ run_image,
842
+ temporary_dir,
862
843
  )
863
844
 
864
- time.sleep(5)
865
-
866
- redis_containers.append(redis_container)
867
-
868
845
  r = redis.StrictRedis(port=redis_proc_start_port)
869
846
  r.ping()
870
847
  redis_conns = [r]
@@ -1251,9 +1228,10 @@ def process_self_contained_coordinator_stream(
1251
1228
  stdout=True, stderr=True
1252
1229
  )
1253
1230
  )
1231
+ redis_container.remove()
1254
1232
  except docker.errors.NotFound:
1255
1233
  logging.info(
1256
- "When trying to stop DB container with id {} and image {} it was already stopped".format(
1234
+ "When trying to fetch logs from DB container with id {} and image {} it was already stopped".format(
1257
1235
  redis_container.id,
1258
1236
  redis_container.image,
1259
1237
  )
@@ -1269,6 +1247,7 @@ def process_self_contained_coordinator_stream(
1269
1247
  for redis_container in redis_containers:
1270
1248
  try:
1271
1249
  redis_container.stop()
1250
+ redis_container.remove()
1272
1251
  except docker.errors.NotFound:
1273
1252
  logging.info(
1274
1253
  "When trying to stop DB container with id {} and image {} it was already stopped".format(
@@ -1282,6 +1261,7 @@ def process_self_contained_coordinator_stream(
1282
1261
  if type(redis_container) == Container:
1283
1262
  try:
1284
1263
  redis_container.stop()
1264
+ redis_container.remove()
1285
1265
  except docker.errors.NotFound:
1286
1266
  logging.info(
1287
1267
  "When trying to stop Client container with id {} and image {} it was already stopped".format(
@@ -1295,6 +1275,7 @@ def process_self_contained_coordinator_stream(
1295
1275
  temporary_dir, temporary_dir_client
1296
1276
  )
1297
1277
  )
1278
+
1298
1279
  shutil.rmtree(temporary_dir, ignore_errors=True)
1299
1280
  shutil.rmtree(temporary_dir_client, ignore_errors=True)
1300
1281
 
@@ -1475,6 +1456,50 @@ def process_self_contained_coordinator_stream(
1475
1456
  return stream_id, overall_result, total_test_suite_runs
1476
1457
 
1477
1458
 
1459
+ def start_redis_container(
1460
+ command_str,
1461
+ db_cpuset_cpus,
1462
+ docker_client,
1463
+ mnt_point,
1464
+ redis_containers,
1465
+ run_image,
1466
+ temporary_dir,
1467
+ auto_remove=False,
1468
+ ):
1469
+ logging.info(
1470
+ "Running redis-server on docker image {} (cpuset={}) with the following args: {}".format(
1471
+ run_image, db_cpuset_cpus, command_str
1472
+ )
1473
+ )
1474
+ volumes = {}
1475
+ working_dir = "/"
1476
+ if mnt_point != "":
1477
+ volumes = {
1478
+ temporary_dir: {
1479
+ "bind": mnt_point,
1480
+ "mode": "rw",
1481
+ },
1482
+ }
1483
+ logging.info(f"setting volume as follow: {volumes}. working_dir={mnt_point}")
1484
+ working_dir = mnt_point
1485
+ redis_container = docker_client.containers.run(
1486
+ image=run_image,
1487
+ volumes=volumes,
1488
+ auto_remove=auto_remove,
1489
+ privileged=True,
1490
+ working_dir=mnt_point,
1491
+ command=command_str,
1492
+ network_mode="host",
1493
+ detach=True,
1494
+ cpuset_cpus=db_cpuset_cpus,
1495
+ pid_mode="host",
1496
+ publish_all_ports=True,
1497
+ )
1498
+ time.sleep(5)
1499
+ redis_containers.append(redis_container)
1500
+ return redis_container
1501
+
1502
+
1478
1503
  def filter_test_files(
1479
1504
  defaults_filename,
1480
1505
  priority_lower_limit,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: redis-benchmarks-specification
3
- Version: 0.1.215
3
+ Version: 0.1.216
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,11 +4,11 @@ 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=7y_dey7EKKF50Dxk2WOlEnAPhO564TkgHr9uXSw8aeA,26081
7
+ redis_benchmarks_specification/__builder__/builder.py,sha256=OmsMz4lO22DWGC7D1q1cfsyL3SZZC_I6tuLZL3ubq8A,26177
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=ggjDVunIe8LbJ8QGg6Td2ZRgD8qUjX_xCOf4cP780k8,6728
11
- redis_benchmarks_specification/__cli__/cli.py,sha256=wMRlIa8t2hbQabtq3sYqBYGBGfxgvqhaHRsacHlRTqk,20105
11
+ redis_benchmarks_specification/__cli__/cli.py,sha256=vy-WWRGOFIUGfL0Jz5r2y77rGuR5OsYfku0kUQQL0T4,20352
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=oU6zFrBsmPRgCr2c1zf7bM0o9bCyuqUpooJo0-nIHrE,5747
@@ -31,10 +31,10 @@ redis_benchmarks_specification/__self_contained_coordinator__/artifacts.py,sha25
31
31
  redis_benchmarks_specification/__self_contained_coordinator__/build_info.py,sha256=vlg8H8Rxu2falW8xp1GvL1SV1fyBguSbz6Apxc7A2yM,2282
32
32
  redis_benchmarks_specification/__self_contained_coordinator__/clients.py,sha256=voL6zP3RenpZ1A7JKGVkvEWVXI9KYwmnSgVJr6l8o-4,710
33
33
  redis_benchmarks_specification/__self_contained_coordinator__/cpuset.py,sha256=sRvtoJIitppcOpm3R5LbVmSfPEAqPumOqVATnF5Wbek,594
34
- redis_benchmarks_specification/__self_contained_coordinator__/docker.py,sha256=anBPdVDWYKGz2ladfdcP4dBDwcjCYhvOp0By2mbMTOI,2759
34
+ redis_benchmarks_specification/__self_contained_coordinator__/docker.py,sha256=Alf9Y1dfuOMoD4u_Dv3jTodkwZfSrlo2_YceevaWNFo,2757
35
35
  redis_benchmarks_specification/__self_contained_coordinator__/prepopulation.py,sha256=qB1rwqkROfuyFotB7MfUQiYS4Gzafd8dd2ca7lT4l2I,2909
36
36
  redis_benchmarks_specification/__self_contained_coordinator__/runners.py,sha256=FqVVvbXPsmq2I7pSH-JEklb1SDRdS7rG6ZHc6xTCUE0,28611
37
- redis_benchmarks_specification/__self_contained_coordinator__/self_contained_coordinator.py,sha256=BWRc4tRAI769oNVcug_TCjNoRIfjhWM9AftpZym7aeE,74364
37
+ redis_benchmarks_specification/__self_contained_coordinator__/self_contained_coordinator.py,sha256=CWL6xOUR_R232rMTIrlAbBAxusiN-QKOS5Rm9JAQ_dk,74493
38
38
  redis_benchmarks_specification/__setups__/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
39
  redis_benchmarks_specification/__setups__/topologies.py,sha256=xQ1IJkcTji_ZjLiJd3vOxZpvbNtBLZw9cPkw5hGJKHU,481
40
40
  redis_benchmarks_specification/__spec__/__init__.py,sha256=l-G1z-t6twUgi8QLueqoTQLvJmv3hJoEYskGm6H7L6M,83
@@ -152,8 +152,8 @@ redis_benchmarks_specification/test-suites/memtier_benchmark-2keys-stream-5-entr
152
152
  redis_benchmarks_specification/test-suites/memtier_benchmark-2keys-stream-5-entries-xread-all-entries.yml,sha256=Z6T75dIbjRb4YO1tFIV9K4S_KFzRHfAa4q3kOg0vcHw,1112
153
153
  redis_benchmarks_specification/test-suites/memtier_benchmark-3Mkeys-load-string-with-512B-values.yml,sha256=XAIFlbR6VJnmQRwedLGBGenbIsMC_I3uA35Mz_bkTTc,1028
154
154
  redis_benchmarks_specification/test-suites/template.txt,sha256=d_edIE7Sxa5X7I2yG-Io0bPdbDIHR0oWFoCA3XUt_EU,435
155
- redis_benchmarks_specification-0.1.215.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
156
- redis_benchmarks_specification-0.1.215.dist-info/METADATA,sha256=1zud-90JXXG-pP3YUG1wfNkI-9aLAIbQz24Mex24ELg,22726
157
- redis_benchmarks_specification-0.1.215.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
158
- redis_benchmarks_specification-0.1.215.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
159
- redis_benchmarks_specification-0.1.215.dist-info/RECORD,,
155
+ redis_benchmarks_specification-0.1.216.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
156
+ redis_benchmarks_specification-0.1.216.dist-info/METADATA,sha256=L3EWU11UgYCLdhjak5d95YlaYsGIKbPa7XkJrVMLg1Q,22726
157
+ redis_benchmarks_specification-0.1.216.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
158
+ redis_benchmarks_specification-0.1.216.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
159
+ redis_benchmarks_specification-0.1.216.dist-info/RECORD,,