@@ -95,7 +95,7 @@ def run_test_execution(test_suite_id: str | UUID, username: str | None = None, r
9595 test_run .set_progress (
9696 "validation" ,
9797 "Warning" if invalid_count else "Completed" ,
98- error = f"{ invalid_count } test{ 's' if invalid_count > 1 else '' } had errors" if invalid_count else None ,
98+ error = f"{ invalid_count } test{ 's' if invalid_count > 1 else '' } had errors. See details in results. " if invalid_count else None ,
9999 )
100100
101101 if valid_test_defs :
@@ -118,6 +118,7 @@ def run_test_execution(test_suite_id: str | UUID, username: str | None = None, r
118118 if (run_test_defs := [td for td in valid_test_defs if td .run_type == run_type ]):
119119 run_functions [run_type ](run_test_defs )
120120 else :
121+ test_run .set_progress (run_type , "Completed" )
121122 LOG .info (f"No { run_type } tests to run" )
122123 else :
123124 LOG .info ("No valid tests to run" )
@@ -174,7 +175,7 @@ def update_test_progress(progress: ThreadedProgress) -> None:
174175 run_type ,
175176 "Running" ,
176177 detail = f"{ progress ['processed' ]} of { progress ['total' ]} " ,
177- error = f"{ progress ['errors' ]} test{ 's' if progress ['errors' ] > 1 else '' } had errors"
178+ error = f"{ progress ['errors' ]} test{ 's' if progress ['errors' ] > 1 else '' } had errors. See details in results. "
178179 if progress ["errors" ]
179180 else None ,
180181 )
@@ -299,7 +300,7 @@ def update_single_progress(progress: ThreadedProgress) -> None:
299300 test_run .set_progress (
300301 "CAT" ,
301302 "Warning" if error_count else "Completed" ,
302- error = f"{ error_count } test{ 's' if error_count > 1 else '' } had errors"
303+ error = f"{ error_count } test{ 's' if error_count > 1 else '' } had errors. See details in results. "
303304 if error_count
304305 else None ,
305306 )
@@ -308,8 +309,9 @@ def update_single_progress(progress: ThreadedProgress) -> None:
308309def _rollup_test_scores (test_run : TestRun , table_group : TableGroup ) -> None :
309310 try :
310311 LOG .info ("Rolling up test scores" )
312+ sql_generator = RollupScoresSQL (test_run .id , table_group .id )
311313 execute_db_queries (
312- RollupScoresSQL ( test_run . id , table_group . id ). rollup_test_scores (),
314+ sql_generator . rollup_test_scores (update_prevalence = True , update_table_group = True ),
313315 )
314316 run_refresh_score_cards_results (
315317 project_code = table_group .project_code ,
0 commit comments