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

@@ -153,6 +153,8 @@ def exporter_datasink_common(
153
153
  topology_spec_name,
154
154
  default_metrics=None,
155
155
  git_hash=None,
156
+ collect_commandstats=True,
157
+ collect_memory_metrics=True,
156
158
  ):
157
159
  logging.info(
158
160
  f"Using datapoint_time_ms: {datapoint_time_ms}. git_hash={git_hash}, git_branch={git_branch}, git_version={git_version}. gh_org={tf_github_org}, gh_repo={tf_github_repo}"
@@ -181,71 +183,77 @@ def exporter_datasink_common(
181
183
  None,
182
184
  git_hash,
183
185
  )
184
- logging.info("Collecting memory metrics")
185
- (
186
- _,
187
- _,
188
- overall_end_time_metrics,
189
- ) = collect_redis_metrics(
190
- redis_conns,
191
- ["memory"],
192
- {
193
- "memory": [
194
- "used_memory",
195
- "used_memory_dataset",
196
- ]
197
- },
198
- )
199
- print(overall_end_time_metrics)
200
- # 7 days from now
201
- expire_redis_metrics_ms = 7 * 24 * 60 * 60 * 1000
202
- export_redis_metrics(
203
- git_version,
204
- datapoint_time_ms,
205
- overall_end_time_metrics,
206
- datasink_conn,
207
- setup_name,
208
- setup_type,
209
- test_name,
210
- git_branch,
211
- tf_github_org,
212
- tf_github_repo,
213
- tf_triggering_env,
214
- {"metric-type": "redis-metrics"},
215
- expire_redis_metrics_ms,
216
- )
217
- logging.info("Collecting commandstat metrics")
218
- (
219
- _,
220
- _,
221
- overall_commandstats_metrics,
222
- ) = collect_redis_metrics(redis_conns, ["commandstats"])
223
- export_redis_metrics(
224
- git_version,
225
- datapoint_time_ms,
226
- overall_commandstats_metrics,
227
- datasink_conn,
228
- setup_name,
229
- setup_type,
230
- test_name,
231
- git_branch,
232
- tf_github_org,
233
- tf_github_repo,
234
- tf_triggering_env,
235
- {"metric-type": "commandstats"},
236
- expire_redis_metrics_ms,
237
- )
186
+ if collect_memory_metrics:
187
+ logging.info("Collecting memory metrics")
188
+ (
189
+ _,
190
+ _,
191
+ overall_end_time_metrics,
192
+ ) = collect_redis_metrics(
193
+ redis_conns,
194
+ ["memory"],
195
+ {
196
+ "memory": [
197
+ "used_memory",
198
+ "used_memory_dataset",
199
+ ]
200
+ },
201
+ )
202
+ print(overall_end_time_metrics)
203
+ # 7 days from now
204
+ expire_redis_metrics_ms = 7 * 24 * 60 * 60 * 1000
205
+ export_redis_metrics(
206
+ git_version,
207
+ datapoint_time_ms,
208
+ overall_end_time_metrics,
209
+ datasink_conn,
210
+ setup_name,
211
+ setup_type,
212
+ test_name,
213
+ git_branch,
214
+ tf_github_org,
215
+ tf_github_repo,
216
+ tf_triggering_env,
217
+ {"metric-type": "redis-memory-metrics"},
218
+ expire_redis_metrics_ms,
219
+ git_hash,
220
+ running_platform,
221
+ )
222
+ if collect_commandstats:
223
+ logging.info("Collecting commandstat metrics")
224
+ (
225
+ _,
226
+ _,
227
+ overall_commandstats_metrics,
228
+ ) = collect_redis_metrics(redis_conns, ["commandstats"])
229
+ export_redis_metrics(
230
+ git_version,
231
+ datapoint_time_ms,
232
+ overall_commandstats_metrics,
233
+ datasink_conn,
234
+ setup_name,
235
+ setup_type,
236
+ test_name,
237
+ git_branch,
238
+ tf_github_org,
239
+ tf_github_repo,
240
+ tf_triggering_env,
241
+ {"metric-type": "commandstats"},
242
+ expire_redis_metrics_ms,
243
+ git_hash,
244
+ running_platform,
245
+ )
238
246
 
239
247
  # Update deployment tracking sets
240
248
  deployment_type_and_name = f"{setup_type}_AND_{setup_name}"
241
249
  deployment_type_and_name_and_version = f"{setup_type}_AND_{setup_name}_AND_{git_version}"
242
250
 
243
251
  # Add to deployment-specific set
244
- deployment_set_key = f"ci.benchmarks.redislabs/{tf_triggering_env}/{deployment_type_and_name_and_version}:set"
252
+ deployment_set_key = f"ci.benchmarks.redis/{tf_triggering_env}/{deployment_type_and_name_and_version}:set"
245
253
  datasink_conn.sadd(deployment_set_key, test_name)
246
254
 
247
255
  # Add to testcases set
248
- testcases_set_key = f"ci.benchmarks.redislabs/{tf_triggering_env}/testcases:set"
256
+ testcases_set_key = f"ci.benchmarks.redis/{tf_triggering_env}/testcases:set"
249
257
  datasink_conn.sadd(testcases_set_key, test_name)
250
258
 
251
259
  # Add metadata fields to timeseries metadata
@@ -1173,7 +1173,6 @@ def timeseries_test_sucess_flow(
1173
1173
  testcase_metric_context_paths = []
1174
1174
  version_target_tables = None
1175
1175
  branch_target_tables = None
1176
-
1177
1176
  if timeseries_dict is None:
1178
1177
  (
1179
1178
  timeseries_dict,
@@ -28,6 +28,8 @@ from redisbench_admin.run.common import (
28
28
  prepare_benchmark_parameters,
29
29
  dbconfig_keyspacelen_check,
30
30
  )
31
+ from redisbench_admin.run_remote.run_remote import export_redis_metrics
32
+
31
33
  from redisbench_admin.run.metrics import extract_results_table
32
34
  from redisbench_admin.run.run import calculate_client_tool_duration_and_check
33
35
  from redisbench_admin.utils.benchmark_config import (
@@ -1430,7 +1432,7 @@ def process_self_contained_coordinator_stream(
1430
1432
  logging.info(f"Auto-detected github_version: {git_version}")
1431
1433
 
1432
1434
  # Auto-detect git hash if it's the default value
1433
- if git_hash == "NA" and detected_info["github_hash"] != "unknown":
1435
+ if (git_hash is None or git_hash == "NA") and detected_info["github_hash"] != "unknown":
1434
1436
  git_hash = detected_info["github_hash"]
1435
1437
  logging.info(f"Auto-detected git_hash: {git_hash}")
1436
1438
 
@@ -1790,6 +1792,7 @@ def process_self_contained_coordinator_stream(
1790
1792
  start_time_ms,
1791
1793
  start_time_str,
1792
1794
  ) = get_start_time_vars()
1795
+ dataset_load_duration_seconds = 0 # No dataset loading time for memory comparison
1793
1796
 
1794
1797
  # Skip load tests (keyspacelen = 0) in memory comparison mode
1795
1798
  keyspacelen = benchmark_config.get("dbconfig", {}).get("check", {}).get("keyspacelen", None)
@@ -1912,7 +1915,32 @@ def process_self_contained_coordinator_stream(
1912
1915
 
1913
1916
  # Set datapoint_time_ms for memory comparison mode
1914
1917
  datapoint_time_ms = start_time_ms
1915
-
1918
+ # 7 days from now
1919
+ expire_redis_metrics_ms = 7 * 24 * 60 * 60 * 1000
1920
+ metadata["metric-type"] = "memory-stats"
1921
+
1922
+ # Debug: Check git_hash value and memory metrics before export
1923
+ logging.info(f"DEBUG: About to export memory metrics with git_hash='{git_hash}', type={type(git_hash)}")
1924
+ logging.info(f"DEBUG: memory_metrics_dict has {len(memory_metrics_dict)} items: {list(memory_metrics_dict.keys())}")
1925
+ logging.info(f"DEBUG: Sample values: {dict(list(memory_metrics_dict.items())[:3])}")
1926
+ export_redis_metrics(
1927
+ git_version,
1928
+ datapoint_time_ms,
1929
+ memory_metrics_dict,
1930
+ datasink_conn,
1931
+ setup_name,
1932
+ setup_type,
1933
+ test_name,
1934
+ git_branch,
1935
+ tf_github_org,
1936
+ tf_github_repo,
1937
+ tf_triggering_env,
1938
+ metadata,
1939
+ expire_redis_metrics_ms,
1940
+ git_hash,
1941
+ running_platform,
1942
+ )
1943
+
1916
1944
  exporter_datasink_common(
1917
1945
  benchmark_config,
1918
1946
  0, # benchmark_duration_seconds = 0 for memory only
@@ -1936,6 +1964,8 @@ def process_self_contained_coordinator_stream(
1936
1964
  topology_spec_name,
1937
1965
  default_metrics,
1938
1966
  git_hash,
1967
+ collect_commandstats=False,
1968
+ collect_memory_metrics=True,
1939
1969
  )
1940
1970
 
1941
1971
  # Send MEMORY PURGE after memory comparison (if FLUSHALL at test end is not enabled)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: redis-benchmarks-specification
3
- Version: 0.1.296
3
+ Version: 0.1.298
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
@@ -15,9 +15,9 @@ redis_benchmarks_specification/__common__/builder_schema.py,sha256=kfDpRIk7NkJrb
15
15
  redis_benchmarks_specification/__common__/env.py,sha256=kvJ8Ll-fvI_Tc0vynrzUEr22TqnJizzvJ4Lu9RjNr_M,3119
16
16
  redis_benchmarks_specification/__common__/github.py,sha256=9TZtnISsSgXTSAN_VQejo5YRPDPhlU0gjxgKGPw_sP8,10699
17
17
  redis_benchmarks_specification/__common__/package.py,sha256=4uVt1BAZ999LV2rZkq--Tk6otAVIf9YR3g3KGeUpiW4,834
18
- redis_benchmarks_specification/__common__/runner.py,sha256=TT5c5vJSsg1RApUqbitSkvsyl4PQm2qnW48iu4LXJmo,7871
18
+ redis_benchmarks_specification/__common__/runner.py,sha256=3eZ3GUKfWMUbvNhoryRnbennqPVRqzQ9189-B9N2YdE,8314
19
19
  redis_benchmarks_specification/__common__/spec.py,sha256=D_SN48wg6NMthW_-OS1H5bydSDiuZpfd4WPPj7Vfwmc,5760
20
- redis_benchmarks_specification/__common__/timeseries.py,sha256=dae3YF4cX2Css8i5VnOGxAk3DOu8tHfZt-Vy-uiWQDQ,52917
20
+ redis_benchmarks_specification/__common__/timeseries.py,sha256=w8XQrGPEFuuemDXXz4iny7lYsNbYH0ycQyq3jHIr80g,52916
21
21
  redis_benchmarks_specification/__compare__/__init__.py,sha256=DtBXRp0Q01XgCFmY-1OIePMyyYihVNAjZ1Y8zwqSDN0,101
22
22
  redis_benchmarks_specification/__compare__/args.py,sha256=shER83ddBRBMAlbgxGXJ5H5XziKe-sP_Nyx7t5aLOo8,7650
23
23
  redis_benchmarks_specification/__compare__/compare.py,sha256=nymItbCO28KiAe3bVxYVObwbzpLmISAF_qyJ6b3KCPQ,62466
@@ -25,7 +25,7 @@ redis_benchmarks_specification/__init__.py,sha256=YQIEx2sLPPA0JR9OuCuMNMNtm-f_gq
25
25
  redis_benchmarks_specification/__runner__/__init__.py,sha256=l-G1z-t6twUgi8QLueqoTQLvJmv3hJoEYskGm6H7L6M,83
26
26
  redis_benchmarks_specification/__runner__/args.py,sha256=YeN7-eOGoqCHKh5FrKz9z5Ee-Rh-3DF9tm2Hb-3m7sQ,10648
27
27
  redis_benchmarks_specification/__runner__/remote_profiling.py,sha256=JS46mFxnRB2HSU_HO90WE4w7P7usHzX1dwZg1bJpTMc,18588
28
- redis_benchmarks_specification/__runner__/runner.py,sha256=q54TjleiQILgCgNwip9m7X_6sf12GokYPO_cXaM0MzU,136136
28
+ redis_benchmarks_specification/__runner__/runner.py,sha256=H2XoMfvmPJEYcmT_8kukSN5YgyU-y1shdebwJe8CttE,137951
29
29
  redis_benchmarks_specification/__self_contained_coordinator__/__init__.py,sha256=l-G1z-t6twUgi8QLueqoTQLvJmv3hJoEYskGm6H7L6M,83
30
30
  redis_benchmarks_specification/__self_contained_coordinator__/args.py,sha256=uxBjdQ78klvsVi6lOfGYQVaWIxc8OI-DwYKY16SgvCY,5952
31
31
  redis_benchmarks_specification/__self_contained_coordinator__/artifacts.py,sha256=OVHqJzDgeSSRfUSiKp1ZTAVv14PvSbk-5yJsAAoUfpw,936
@@ -273,8 +273,8 @@ redis_benchmarks_specification/test-suites/memtier_benchmark-nokeys-pubsub-publi
273
273
  redis_benchmarks_specification/test-suites/memtier_benchmark-nokeys-server-time-pipeline-10.yml,sha256=7G_J8kUFay7jXhZvsZK5jvVHSLZvhMV0uuDMkZBbeSQ,675
274
274
  redis_benchmarks_specification/test-suites/template.txt,sha256=d_edIE7Sxa5X7I2yG-Io0bPdbDIHR0oWFoCA3XUt_EU,435
275
275
  redis_benchmarks_specification/vector-search-test-suites/vector_db_benchmark_test.yml,sha256=PD7ow-k4Ll2BkhEC3aIqiaCZt8Hc4aJIp96Lw3J3mcI,791
276
- redis_benchmarks_specification-0.1.296.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
277
- redis_benchmarks_specification-0.1.296.dist-info/METADATA,sha256=Bcnx415tWst5YOLzbPmN6o_oAq1ATijUzHeIlXbxPzI,22726
278
- redis_benchmarks_specification-0.1.296.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
279
- redis_benchmarks_specification-0.1.296.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
280
- redis_benchmarks_specification-0.1.296.dist-info/RECORD,,
276
+ redis_benchmarks_specification-0.1.298.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
277
+ redis_benchmarks_specification-0.1.298.dist-info/METADATA,sha256=quT5ecfq6InxVjpWL5LEasY2QSToisbH73pbkSWMdcc,22726
278
+ redis_benchmarks_specification-0.1.298.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
279
+ redis_benchmarks_specification-0.1.298.dist-info/entry_points.txt,sha256=x5WBXCZsnDRTZxV7SBGmC65L2k-ygdDOxV8vuKN00Nk,715
280
+ redis_benchmarks_specification-0.1.298.dist-info/RECORD,,