File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,8 @@ recent_master_runs AS (
2323 , conclusion
2424 FROM runs
2525 WHERE owner = ' trinodb' AND repo = ' trino' AND name = ' ci'
26- AND head_branch = ' master' AND status = ' completed'
26+ -- only include push events, not pull requests, to filter out PR runs from master branch in forks
27+ AND head_branch = ' master' AND event = ' push' AND status = ' completed'
2728 AND created_at > now() - interval ' 1' day
2829)
2930, failed_recent_master_runs AS (
@@ -38,8 +39,8 @@ recent_master_runs AS (
3839 SELECT
3940 jobs .name
4041 , count (DISTINCT runs .id ) AS num_failed_runs
41- , array_agg(anno .message ORDER BY anno .message ) AS errors
42- , array_agg(runs .details_url ORDER BY runs .details_url ) AS failed_runs
42+ , array_agg(anno .title || chr( 10 ) || anno . message ORDER BY anno .message ) AS errors
43+ , array_agg(DISTINCT runs .details_url ORDER BY runs .details_url ) AS failed_runs
4344 FROM failed_recent_master_runs runs
4445 JOIN check_runs jobs ON jobs .check_suite_id = runs .check_suite_id AND jobs .conclusion NOT IN (' success' , ' skipped' )
4546 LEFT JOIN check_run_annotations anno ON anno .check_run_id = jobs .id
You can’t perform that action at this time.
0 commit comments