diff --git a/pyproject.toml b/pyproject.toml index deff7be..df19a61 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "redisbench-admin" -version = "0.2.5" +version = "0.2.6" description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )." authors = ["filipecosta90 "] readme = "README.md" diff --git a/redisbench_admin/run_remote/run_remote.py b/redisbench_admin/run_remote/run_remote.py index 7e741ff..7b50fdd 100644 --- a/redisbench_admin/run_remote/run_remote.py +++ b/redisbench_admin/run_remote/run_remote.py @@ -599,30 +599,31 @@ def run_remote_command_logic(args): tf_triggering_env, ), ) - add_standardized_metric_bybranch( - "benchmark_duration", - benchmark_duration_seconds, - tf_github_branch, - deployment_type, - rts, - start_time_ms, - test_name, - tf_github_org, - tf_github_repo, - tf_triggering_env, - ) - add_standardized_metric_bybranch( - "dataset_load_duration", - dataset_load_duration_seconds, - tf_github_branch, - deployment_type, - rts, - start_time_ms, - test_name, - tf_github_org, - tf_github_repo, - tf_triggering_env, - ) + if tf_github_branch is not None and tf_github_branch != "": + add_standardized_metric_bybranch( + "benchmark_duration", + benchmark_duration_seconds, + str(tf_github_branch), + deployment_type, + rts, + start_time_ms, + test_name, + tf_github_org, + tf_github_repo, + tf_triggering_env, + ) + add_standardized_metric_bybranch( + "dataset_load_duration", + dataset_load_duration_seconds, + str(tf_github_branch), + deployment_type, + rts, + start_time_ms, + test_name, + tf_github_org, + tf_github_repo, + tf_triggering_env, + ) add_standardized_metric_byversion( "benchmark_duration", benchmark_duration_seconds,