@@ -39,6 +39,13 @@ def compare_command_logic(args, project_name, project_version):
3939 tf_github_repo = args .github_repo
4040 tf_triggering_env = args .triggering_env
4141 deployment_type = args .deployment_type
42+ deployment_name = args .deployment_name
43+ logging .info (
44+ "Using deployment_type={} and deployment_name={} for the analysis" .format (
45+ deployment_type ,
46+ deployment_name ,
47+ )
48+ )
4249 from_ts_ms = args .from_timestamp
4350 to_ts_ms = args .to_timestamp
4451 use_tag = False
@@ -116,7 +123,6 @@ def compare_command_logic(args, project_name, project_version):
116123 for test_name in test_names :
117124
118125 test_name = test_name .decode ()
119- deployment_name = deployment_type
120126 ts_name_baseline = get_ts_metric_name (
121127 "by.{}" .format (by_str ),
122128 baseline_str ,
@@ -157,7 +163,11 @@ def compare_command_logic(args, project_name, project_version):
157163 pass
158164 percentage_change = "N/A"
159165 percentage_change = 0.0
166+ baseline_v_str = "N/A"
167+ comparison_v_str = "N/A"
160168 if baseline_v != "N/A" and comparison_v != "N/A" :
169+ baseline_v_str = "{:.3f}" .format (baseline_v )
170+ comparison_v_str = "{:.3f}" .format (comparison_v )
161171 if metric_mode == "higher-better" :
162172 percentage_change = (
163173 float (comparison_v ) / float (baseline_v ) - 1
@@ -192,8 +202,8 @@ def compare_command_logic(args, project_name, project_version):
192202 profilers_artifacts_matrix .append (
193203 [
194204 test_name ,
195- baseline_v ,
196- comparison_v ,
205+ baseline_v_str ,
206+ comparison_v_str ,
197207 percentage_change_str ,
198208 ]
199209 )
0 commit comments