From 361e36d50e082c3ef2c7e674b2bf4ba090a021dd Mon Sep 17 00:00:00 2001 From: filipe oliveira Date: Fri, 13 May 2022 11:34:02 +0100 Subject: [PATCH] Added extra by branch, version, and platform zsets secondary data structures (#357) --- pyproject.toml | 2 +- redisbench_admin/run/redistimeseries.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b3fc418..b29d8fc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 ","Redis Performance Group "] readme = "README.md" diff --git a/redisbench_admin/run/redistimeseries.py b/redisbench_admin/run/redistimeseries.py index 12b13aa..fe4ce5c 100644 --- a/redisbench_admin/run/redistimeseries.py +++ b/redisbench_admin/run/redistimeseries.py @@ -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: