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

@@ -107,6 +107,41 @@ from redis_benchmarks_specification.__self_contained_coordinator__.artifacts imp
107
107
  from redis_benchmarks_specification.__self_contained_coordinator__.build_info import (
108
108
  extract_build_info_from_streamdata,
109
109
  )
110
+
111
+
112
+ def print_directory_logs(directory_path, description=""):
113
+ """Print all .log files in a directory for debugging purposes."""
114
+ if not os.path.exists(directory_path):
115
+ logging.warning(f"Directory {directory_path} does not exist")
116
+ return
117
+
118
+ logging.info(f"Printing all .log files in {description} directory: {directory_path}")
119
+ try:
120
+ for root, dirs, files in os.walk(directory_path):
121
+ for file in files:
122
+ # Only process .log files
123
+ if not file.endswith('.log'):
124
+ continue
125
+
126
+ file_path = os.path.join(root, file)
127
+ logging.info(f"Found log file: {file_path}")
128
+ try:
129
+ # Try to read and print the log file content
130
+ with open(file_path, "r", encoding="utf-8", errors="ignore") as f:
131
+ content = f.read()
132
+ if content.strip(): # Only print non-empty files
133
+ logging.info(f"Content of {file_path}:")
134
+ logging.info("-" * 40)
135
+ logging.info(content)
136
+ logging.info("-" * 40)
137
+ else:
138
+ logging.info(f"Log file {file_path} is empty")
139
+ except Exception as e:
140
+ logging.warning(f"Could not read log file {file_path}: {e}")
141
+ except Exception as e:
142
+ logging.error(f"Error walking directory {directory_path}: {e}")
143
+
144
+
110
145
  from redis_benchmarks_specification.__self_contained_coordinator__.cpuset import (
111
146
  extract_db_cpu_limit,
112
147
  generate_cpuset_cpus,
@@ -1319,6 +1354,18 @@ def process_self_contained_coordinator_stream(
1319
1354
 
1320
1355
  print("-" * 60)
1321
1356
 
1357
+ # Print all log files in the temporary directories for debugging
1358
+ logging.critical(
1359
+ "Printing all files in temporary directories for debugging..."
1360
+ )
1361
+ try:
1362
+ print_directory_logs(temporary_dir, "Redis server")
1363
+ print_directory_logs(temporary_dir_client, "Client")
1364
+ except Exception as log_error:
1365
+ logging.error(
1366
+ f"Failed to print directory logs: {log_error}"
1367
+ )
1368
+
1322
1369
  test_result = False
1323
1370
  # tear-down
1324
1371
  logging.info("Tearing down setup")
@@ -1349,14 +1396,27 @@ def process_self_contained_coordinator_stream(
1349
1396
  )
1350
1397
  )
1351
1398
  pass
1352
- logging.info(
1353
- "Removing temporary dirs {} and {}".format(
1354
- temporary_dir, temporary_dir_client
1355
- )
1356
- )
1357
1399
 
1358
- shutil.rmtree(temporary_dir, ignore_errors=True)
1359
- shutil.rmtree(temporary_dir_client, ignore_errors=True)
1400
+ # Only remove temporary directories if test passed
1401
+ if test_result:
1402
+ logging.info(
1403
+ "Test passed. Removing temporary dirs {} and {}".format(
1404
+ temporary_dir, temporary_dir_client
1405
+ )
1406
+ )
1407
+ shutil.rmtree(temporary_dir, ignore_errors=True)
1408
+ shutil.rmtree(
1409
+ temporary_dir_client, ignore_errors=True
1410
+ )
1411
+ else:
1412
+ logging.warning(
1413
+ "Test failed. Preserving temporary dirs for debugging: {} and {}".format(
1414
+ temporary_dir, temporary_dir_client
1415
+ )
1416
+ )
1417
+ # Print all log files in the temporary directories for debugging
1418
+ print_directory_logs(temporary_dir, "Redis server")
1419
+ print_directory_logs(temporary_dir_client, "Client")
1360
1420
 
1361
1421
  overall_result &= test_result
1362
1422
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: redis-benchmarks-specification
3
- Version: 0.1.315
3
+ Version: 0.1.317
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
@@ -36,7 +36,7 @@ redis_benchmarks_specification/__self_contained_coordinator__/docker.py,sha256=e
36
36
  redis_benchmarks_specification/__self_contained_coordinator__/post_processing.py,sha256=sVLKNnWdAqYY9DjVdqRC5tDaIrVSaI3Ca7w8-DQ-LRM,776
37
37
  redis_benchmarks_specification/__self_contained_coordinator__/prepopulation.py,sha256=1UeFr2T1ZQBcHCSd4W1ZtaWgXyFPfjLyDi_DgDc1eTA,2957
38
38
  redis_benchmarks_specification/__self_contained_coordinator__/runners.py,sha256=noRHn9leTfEm2fa1yHBHQd8TUGhFDoU86QQkHABnWSs,30073
39
- redis_benchmarks_specification/__self_contained_coordinator__/self_contained_coordinator.py,sha256=hlSBMa-n6byXW7zVxq5nzqEKN34DrPpcgN-NnzGk-_c,79375
39
+ redis_benchmarks_specification/__self_contained_coordinator__/self_contained_coordinator.py,sha256=t8xKP403TmV7KKb4cEb9E5ziR_ZXxEQfOJE1UczutJw,82518
40
40
  redis_benchmarks_specification/__setups__/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
41
41
  redis_benchmarks_specification/__setups__/topologies.py,sha256=xQ1IJkcTji_ZjLiJd3vOxZpvbNtBLZw9cPkw5hGJKHU,481
42
42
  redis_benchmarks_specification/__spec__/__init__.py,sha256=l-G1z-t6twUgi8QLueqoTQLvJmv3hJoEYskGm6H7L6M,83
@@ -276,8 +276,8 @@ redis_benchmarks_specification/test-suites/memtier_benchmark-playbook-session-st
276
276
  redis_benchmarks_specification/test-suites/memtier_benchmark-playbook-session-storage-1k-sessions.yml,sha256=2egtIxPxCze2jlbAfgsk4v9JSQHNMoPLbDWFEW8olDg,7006
277
277
  redis_benchmarks_specification/test-suites/template.txt,sha256=ezqGiRPOvuSDO0iG7GEf-AGXNfHbgXI89_G0RUEzL88,481
278
278
  redis_benchmarks_specification/vector-search-test-suites/vector_db_benchmark_test.yml,sha256=PD7ow-k4Ll2BkhEC3aIqiaCZt8Hc4aJIp96Lw3J3mcI,791
279
- redis_benchmarks_specification-0.1.315.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
280
- redis_benchmarks_specification-0.1.315.dist-info/METADATA,sha256=MqRP3yWv1c71Wt0sSprZSneaxNdqGFxFI5yoSRgb0Jo,22726
281
- redis_benchmarks_specification-0.1.315.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
282
- redis_benchmarks_specification-0.1.315.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
283
- redis_benchmarks_specification-0.1.315.dist-info/RECORD,,
279
+ redis_benchmarks_specification-0.1.317.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
280
+ redis_benchmarks_specification-0.1.317.dist-info/METADATA,sha256=X9Vl0RjcHOeuGO-oeCa5uQ0hTEc5Fp1q764t9ocOKWQ,22726
281
+ redis_benchmarks_specification-0.1.317.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
282
+ redis_benchmarks_specification-0.1.317.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
283
+ redis_benchmarks_specification-0.1.317.dist-info/RECORD,,