File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -176,14 +176,18 @@ async fn summarize_run(
176
176
let inst_comparison =
177
177
calculate_metric_comparison ( ctxt, & commit, Metric :: InstructionsUser ) . await ?;
178
178
179
- let errors = if !inst_comparison. newly_failed_benchmarks . is_empty ( ) {
179
+ let has_broken_benchmarks = !inst_comparison. newly_failed_benchmarks . is_empty ( ) ;
180
+ let errors = if has_broken_benchmarks {
180
181
let benchmarks = inst_comparison
181
182
. newly_failed_benchmarks
182
183
. keys ( )
183
184
. map ( |benchmark| format ! ( "- {benchmark}" ) )
184
185
. collect :: < Vec < _ > > ( )
185
186
. join ( "\n " ) ;
186
- format ! ( "\n **Warning ⚠**: The following benchmark(s) failed to build:\n {benchmarks}\n " )
187
+ let alert_row = ":exclamation: " . repeat ( 5 ) ;
188
+ format ! (
189
+ "\n {alert_row}\n **Warning :warning:**: The following benchmark(s) failed to build:\n {benchmarks}\n {alert_row}\n "
190
+ )
187
191
} else {
188
192
String :: new ( )
189
193
} ;
@@ -206,7 +210,9 @@ async fn summarize_run(
206
210
& mut message,
207
211
"### Overall result: {}{}\n " ,
208
212
overall_result,
209
- if is_regression {
213
+ if has_broken_benchmarks {
214
+ " - BENCHMARK(S) FAILED"
215
+ } else if is_regression {
210
216
" - ACTION NEEDED"
211
217
} else {
212
218
" - no action needed"
You can’t perform that action at this time.
0 commit comments