22
22
generate_new_pr_comment_notification ,
23
23
)
24
24
from redisbench_admin .utils .remote import get_overall_dashboard_keynames
25
+ from redisbench_admin .compare .args import ARCH_X86
25
26
26
27
27
28
def get_project_compare_zsets (triggering_env , org , repo ):
@@ -225,6 +226,8 @@ def compare_command_logic(args, project_name, project_version):
225
226
"redisjson" : "UErSC0jGk" ,
226
227
"redistimeseries" : "2WMw61UGz" ,
227
228
}
229
+ baseline_architecture = args .baseline_architecture
230
+ comparison_architecture = args .comparison_architecture
228
231
uid = None
229
232
if tf_github_repo .lower () in grafana_dashboards_uids :
230
233
uid = grafana_dashboards_uids [tf_github_repo .lower ()]
@@ -274,6 +277,8 @@ def compare_command_logic(args, project_name, project_version):
274
277
to_ts_ms ,
275
278
use_metric_context_path ,
276
279
running_platform ,
280
+ baseline_architecture ,
281
+ comparison_architecture ,
277
282
)
278
283
comment_body = ""
279
284
if total_comparison_points > 0 :
@@ -498,6 +503,8 @@ def compute_regression_table(
498
503
to_ts_ms = None ,
499
504
use_metric_context_path = None ,
500
505
running_platform = None ,
506
+ baseline_architecture = ARCH_X86 ,
507
+ comparison_architecture = ARCH_X86 ,
501
508
):
502
509
START_TIME_NOW_UTC , _ , _ = get_start_time_vars ()
503
510
START_TIME_LAST_MONTH_UTC = START_TIME_NOW_UTC - datetime .timedelta (days = 31 )
@@ -584,6 +591,8 @@ def compute_regression_table(
584
591
tf_triggering_env ,
585
592
verbose ,
586
593
running_platform ,
594
+ baseline_architecture ,
595
+ comparison_architecture ,
587
596
)
588
597
logging .info (
589
598
"Printing differential analysis between {} and {}" .format (
@@ -711,6 +720,8 @@ def from_rts_to_regression_table(
711
720
tf_triggering_env ,
712
721
verbose ,
713
722
running_platform = None ,
723
+ baseline_architecture = ARCH_X86 ,
724
+ comparison_architecture = ARCH_X86 ,
714
725
):
715
726
print_all = print_regressions_only is False and print_improvements_only is False
716
727
table = []
@@ -735,6 +746,8 @@ def from_rts_to_regression_table(
735
746
]
736
747
if running_platform is not None :
737
748
filters_baseline .append ("running_platform={}" .format (running_platform ))
749
+ if baseline_architecture != ARCH_X86 :
750
+ filters_baseline .append (f"arch={ baseline_architecture } " )
738
751
filters_comparison = [
739
752
"{}={}" .format (by_str_comparison , comparison_str ),
740
753
"metric={}" .format (metric_name ),
@@ -744,6 +757,8 @@ def from_rts_to_regression_table(
744
757
]
745
758
if running_platform is not None :
746
759
filters_comparison .append ("running_platform={}" .format (running_platform ))
760
+ if comparison_architecture != ARCH_X86 :
761
+ filters_comparison .append (f"arch={ comparison_architecture } " )
747
762
baseline_timeseries = rts .ts ().queryindex (filters_baseline )
748
763
comparison_timeseries = rts .ts ().queryindex (filters_comparison )
749
764
0 commit comments