File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11.idea
22coverage.txt
3+ .artifacts
Original file line number Diff line number Diff line change @@ -111,5 +111,30 @@ done
111111echo " Wrote ${summary_md} "
112112echo " Wrote ${attempts_tsv} "
113113
114+ # Print the computed summary to stdout so CI logs are informative on failure.
115+ echo
116+ echo " === Flake Repeat Summary (${backend_label} ) ==="
117+ cat " ${summary_md} "
118+
119+ # Print failing attempts (if any) and a tail of each failing log file.
120+ if [[ " ${overall_exit} " -ne 0 ]]; then
121+ echo
122+ echo " === Failing Attempts (${backend_label} ) ==="
123+ awk -F ' \t' ' NR==1 || $4=="fail"' " ${attempts_tsv} "
124+
125+ echo
126+ echo " === Failing Log Tails (${backend_label} ) ==="
127+ awk -F ' \t' ' NR>1 && $4=="fail" {print $6}' " ${attempts_tsv} " | while IFS= read -r out; do
128+ [[ -z " ${out} " ]] && continue
129+ file=" ${artifacts_dir} /${out} "
130+ echo " --- ${file} ---"
131+ if [[ -f " ${file} " ]]; then
132+ tail -n 120 " ${file} "
133+ else
134+ echo " missing log file: ${file} "
135+ fi
136+ done
137+ fi
138+
114139# Keep a non-zero exit on failures so scheduled runs surface flakes in job status.
115140exit " ${overall_exit} "
You can’t perform that action at this time.
0 commit comments