Skip to content

Commit 361e36d

Browse files
Added extra by branch, version, and platform zsets secondary data structures (#357)
1 parent b3cb85e commit 361e36d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redisbench-admin"
3-
version = "0.9.1"
3+
version = "0.9.2"
44
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
55
authors = ["filipecosta90 <[email protected]>","Redis Performance Group <[email protected]>"]
66
readme = "README.md"

redisbench_admin/run/redistimeseries.py

+6
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,16 @@ def update_secondary_result_keys(
404404
rts.sadd(project_compilers_setname, metadata_tags["compiler"])
405405
if tf_github_branch is not None and tf_github_branch != "":
406406
rts.sadd(project_branches_setname, tf_github_branch)
407+
project_branches_zsetname = project_branches_setname + ":zset"
408+
rts.zadd(project_branches_zsetname, {tf_github_branch: start_time_ms})
407409
if artifact_version is not None and artifact_version != "":
408410
rts.sadd(project_versions_setname, artifact_version)
411+
project_versions_zsetname = project_versions_setname + ":zset"
412+
rts.zadd(project_versions_zsetname, {artifact_version: start_time_ms})
409413
if running_platform is not None:
410414
rts.sadd(running_platforms_setname, running_platform)
415+
running_platforms_szetname = running_platforms_setname + ":zset"
416+
rts.zadd(running_platforms_szetname, {running_platform: start_time_ms})
411417
if build_variant_name is not None:
412418
rts.sadd(build_variant_setname, build_variant_name)
413419
if testcase_metric_context_paths is not None:

0 commit comments

Comments
 (0)