@@ -7,7 +7,7 @@ use serde::Deserialize;
7
7
use database:: ArtifactId ;
8
8
use regex:: Regex ;
9
9
use reqwest:: header:: USER_AGENT ;
10
- use std:: { sync:: Arc , time:: Duration } ;
10
+ use std:: { fmt :: Write , sync:: Arc , time:: Duration } ;
11
11
12
12
lazy_static:: lazy_static! {
13
13
static ref BODY_TRY_COMMIT : Regex =
@@ -638,7 +638,7 @@ pub async fn post_finished(data: &InputData) {
638
638
format ! (
639
639
"Finished benchmarking try commit ({}): [comparison url]({}).
640
640
641
- **Summary**: {}
641
+ **Summary**: {}
642
642
643
643
Benchmarking this pull request likely means that it is \
644
644
perf-sensitive, so we're automatically marking it as not fit \
@@ -672,13 +672,20 @@ async fn categorize_benchmark(commit: &database::QueuedCommit, data: &InputData)
672
672
Ok ( Some ( c) ) => c,
673
673
_ => return String :: from ( "ERROR categorizing benchmark run!" ) ,
674
674
} ;
675
+ const DISAGREEMENT : & str = "If you disagree with this performance assessment, \
676
+ please file an issue in [rust-lang/rustc-perf](https://github.com/rust-lang/rustc-perf/issues/new).";
675
677
let ( summary, direction) =
676
678
match crate :: comparison:: ComparisonSummary :: summarize_comparison ( & comparison) {
677
679
Some ( s) if s. direction ( ) . is_some ( ) => {
678
680
let direction = s. direction ( ) . unwrap ( ) ;
679
681
( s, direction)
680
682
}
681
- _ => return String :: from ( "This benchmark run did not return any significant changes" ) ,
683
+ _ => {
684
+ return format ! (
685
+ "This benchmark run did not return any significant changes.\n \n {}" ,
686
+ DISAGREEMENT
687
+ )
688
+ }
682
689
} ;
683
690
684
691
use crate :: comparison:: Direction ;
@@ -692,9 +699,9 @@ async fn categorize_benchmark(commit: &database::QueuedCommit, data: &InputData)
692
699
category
693
700
) ;
694
701
for change in summary. ordered_changes ( ) {
695
- use std:: fmt:: Write ;
696
702
write ! ( result, "- " ) . unwrap ( ) ;
697
703
change. summary_line ( & mut result, None )
698
704
}
705
+ write ! ( result, "\n {}" , DISAGREEMENT ) . unwrap ( ) ;
699
706
result
700
707
}
0 commit comments