Skip to content

Commit

Permalink
Added extra by branch, version, and platform zsets secondary data str…
Browse files Browse the repository at this point in the history
…uctures (#357)
  • Loading branch information
filipecosta90 authored May 13, 2022
1 parent b3cb85e commit 361e36d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "redisbench-admin"
version = "0.9.1"
version = "0.9.2"
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
authors = ["filipecosta90 <filipecosta.90@gmail.com>","Redis Performance Group <performance@redis.com>"]
readme = "README.md"
Expand Down
6 changes: 6 additions & 0 deletions redisbench_admin/run/redistimeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,10 +404,16 @@ def update_secondary_result_keys(
rts.sadd(project_compilers_setname, metadata_tags["compiler"])
if tf_github_branch is not None and tf_github_branch != "":
rts.sadd(project_branches_setname, tf_github_branch)
project_branches_zsetname = project_branches_setname + ":zset"
rts.zadd(project_branches_zsetname, {tf_github_branch: start_time_ms})
if artifact_version is not None and artifact_version != "":
rts.sadd(project_versions_setname, artifact_version)
project_versions_zsetname = project_versions_setname + ":zset"
rts.zadd(project_versions_zsetname, {artifact_version: start_time_ms})
if running_platform is not None:
rts.sadd(running_platforms_setname, running_platform)
running_platforms_szetname = running_platforms_setname + ":zset"
rts.zadd(running_platforms_szetname, {running_platform: start_time_ms})
if build_variant_name is not None:
rts.sadd(build_variant_setname, build_variant_name)
if testcase_metric_context_paths is not None:
Expand Down

0 comments on commit 361e36d

Please sign in to comment.