@@ -119,22 +119,22 @@ def get_build_stats(ctx, giturl, branch, commit, tree_name, verbose, arch):
119119 if dashboard_builds is None :
120120 return []
121121 missing_build_ids = []
122- if len (dashboard_builds ) == len (maestro_builds ):
123- count_comparison_flag = "✅"
124- else :
125- count_comparison_flag = "❌"
122+ summary_flag = "✅"
123+ if len (dashboard_builds ) != len (maestro_builds ):
126124 missing_build_ids = find_missing_items (
127125 maestro_builds , dashboard_builds , "build" , verbose
128126 )
129127 builds_with_status_mismatch = validate_build_status (
130128 maestro_builds , dashboard_builds
131129 )
130+ if missing_build_ids or builds_with_status_mismatch :
131+ summary_flag = "❌"
132132 stats = [
133133 f"{ tree_name } /{ branch } " ,
134134 commit ,
135135 len (maestro_builds ),
136136 len (dashboard_builds ),
137- count_comparison_flag ,
137+ summary_flag ,
138138 missing_build_ids ,
139139 builds_with_status_mismatch ,
140140 ]
@@ -329,20 +329,20 @@ def get_boot_stats(ctx, giturl, branch, commit, tree_name, verbose, arch):
329329 if dashboard_boots is None :
330330 return []
331331 missing_boot_ids = []
332- if len (dashboard_boots ) == len (maestro_boots ):
333- count_comparison_flag = "✅"
334- else :
335- count_comparison_flag = "❌"
332+ summary_flag = "✅"
333+ if len (dashboard_boots ) != len (maestro_boots ):
336334 missing_boot_ids = find_missing_items (
337335 maestro_boots , dashboard_boots , "boot" , verbose
338336 )
339337 boots_with_status_mismatch = validate_boot_status (maestro_boots , dashboard_boots )
338+ if missing_boot_ids or boots_with_status_mismatch :
339+ summary_flag = "❌"
340340 stats = [
341341 f"{ tree_name } /{ branch } " ,
342342 commit ,
343343 len (maestro_boots ),
344344 len (dashboard_boots ),
345- count_comparison_flag ,
345+ summary_flag ,
346346 missing_boot_ids ,
347347 boots_with_status_mismatch ,
348348 ]
0 commit comments