@@ -5789,28 +5789,46 @@ ORDER BY (test_name, callee_offset)
57895789 clickhouse_execute (args , "SYSTEM SET COVERAGE TEST ''" )
57905790 except Exception as e :
57915791 print ("Cannot flush final coverage: " , str (e ))
5792- cov_rows = int (clickhouse_execute (args , "SELECT count() FROM system.coverage_log FINAL" ) or 0 )
5793- cov_tests = int (clickhouse_execute (args , "SELECT uniq(test_name) FROM system.coverage_log FINAL" ) or 0 )
5792+ coverage_stats_timeout = 120
5793+ cov_rows = int (
5794+ clickhouse_execute (
5795+ args ,
5796+ "SELECT count() FROM system.coverage_log FINAL" ,
5797+ timeout = coverage_stats_timeout ,
5798+ )
5799+ or 0
5800+ )
5801+ cov_tests = int (
5802+ clickhouse_execute (
5803+ args ,
5804+ "SELECT uniq(test_name) FROM system.coverage_log FINAL" ,
5805+ timeout = coverage_stats_timeout ,
5806+ )
5807+ or 0
5808+ )
57945809 print (f"system.coverage_log: { cov_rows } rows, { cov_tests } distinct tests" )
57955810 try :
57965811 ic_rows = int (
57975812 clickhouse_execute (
57985813 args ,
57995814 "SELECT count() FROM system.coverage_indirect_calls FINAL" ,
5815+ timeout = coverage_stats_timeout ,
58005816 )
58015817 or 0
58025818 )
58035819 ic_tests = int (
58045820 clickhouse_execute (
58055821 args ,
58065822 "SELECT uniq(test_name) FROM system.coverage_indirect_calls FINAL" ,
5823+ timeout = coverage_stats_timeout ,
58075824 )
58085825 or 0
58095826 )
58105827 ic_callees = int (
58115828 clickhouse_execute (
58125829 args ,
58135830 "SELECT uniqExact(callee_offset) FROM system.coverage_indirect_calls FINAL" ,
5831+ timeout = coverage_stats_timeout ,
58145832 )
58155833 or 0
58165834 )
0 commit comments