Skip to content

Commit a6e6762

Browse files
committed
Add more visible warning when a benchmark fails to compile in a PR
1 parent 420cfca commit a6e6762

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

site/src/github/comparison_summary.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,10 @@ async fn summarize_run(
183183
.map(|benchmark| format!("- {benchmark}"))
184184
.collect::<Vec<_>>()
185185
.join("\n");
186-
format!("\n**Warning ⚠**: The following benchmark(s) failed to build:\n{benchmarks}\n")
186+
let alert_row = ":exclamation: ".repeat(5);
187+
format!(
188+
"\n{alert_row}\n**Warning :warning:**: The following benchmark(s) failed to build:\n{benchmarks}\n{alert_row}\n"
189+
)
187190
} else {
188191
String::new()
189192
};

0 commit comments

Comments
 (0)