@@ -125,7 +125,10 @@ pub async fn handle_compare(
125
125
} )
126
126
. collect ( ) ;
127
127
128
- let mut new_errors = comparison. new_errors . into_iter ( ) . collect :: < Vec < _ > > ( ) ;
128
+ let mut new_errors = comparison
129
+ . newly_failed_benchmarks
130
+ . into_iter ( )
131
+ . collect :: < Vec < _ > > ( ) ;
129
132
new_errors. sort ( ) ;
130
133
Ok ( api:: comparison:: Response {
131
134
prev,
@@ -172,8 +175,6 @@ pub struct ComparisonSummary {
172
175
num_improvements : usize ,
173
176
/// The cached number of comparisons that are regressions
174
177
num_regressions : usize ,
175
- /// Which benchmarks had errors
176
- errors_in : Vec < String > ,
177
178
}
178
179
179
180
impl ComparisonSummary {
@@ -207,13 +208,10 @@ impl ComparisonSummary {
207
208
} ;
208
209
comparisons. sort_by ( cmp) ;
209
210
210
- let errors_in = comparison. new_errors . keys ( ) . cloned ( ) . collect :: < Vec < _ > > ( ) ;
211
-
212
211
Some ( ComparisonSummary {
213
212
comparisons,
214
213
num_improvements,
215
214
num_regressions,
216
- errors_in,
217
215
} )
218
216
}
219
217
@@ -222,7 +220,6 @@ impl ComparisonSummary {
222
220
comparisons : vec ! [ ] ,
223
221
num_improvements : 0 ,
224
222
num_regressions : 0 ,
225
- errors_in : vec ! [ ] ,
226
223
}
227
224
}
228
225
@@ -319,10 +316,6 @@ impl ComparisonSummary {
319
316
self . comparisons . is_empty ( )
320
317
}
321
318
322
- pub fn errors_in ( & self ) -> & [ String ] {
323
- & self . errors_in
324
- }
325
-
326
319
fn arithmetic_mean < ' a > (
327
320
& ' a self ,
328
321
changes : impl Iterator < Item = & ' a TestResultComparison > ,
@@ -607,7 +600,7 @@ async fn compare_given_commits(
607
600
a : ArtifactDescription :: for_artifact ( & * conn, a. clone ( ) , master_commits) . await ,
608
601
b : ArtifactDescription :: for_artifact ( & * conn, b. clone ( ) , master_commits) . await ,
609
602
statistics,
610
- new_errors : errors_in_b. into_iter ( ) . collect ( ) ,
603
+ newly_failed_benchmarks : errors_in_b. into_iter ( ) . collect ( ) ,
611
604
} ) )
612
605
}
613
606
@@ -755,7 +748,7 @@ pub struct Comparison {
755
748
/// Statistics based on test case
756
749
pub statistics : HashSet < TestResultComparison > ,
757
750
/// A map from benchmark name to an error which occured when building `b` but not `a`.
758
- pub new_errors : HashMap < String , String > ,
751
+ pub newly_failed_benchmarks : HashMap < String , String > ,
759
752
}
760
753
761
754
impl Comparison {
@@ -798,21 +791,21 @@ impl Comparison {
798
791
. partition ( |s| category_map. get ( & s. benchmark ( ) ) == Some ( & Category :: Primary ) ) ;
799
792
800
793
let ( primary_errors, secondary_errors) = self
801
- . new_errors
794
+ . newly_failed_benchmarks
802
795
. into_iter ( )
803
796
. partition ( |( b, _) | category_map. get ( & b. as_str ( ) . into ( ) ) == Some ( & Category :: Primary ) ) ;
804
797
805
798
let primary = Comparison {
806
799
a : self . a . clone ( ) ,
807
800
b : self . b . clone ( ) ,
808
801
statistics : primary,
809
- new_errors : primary_errors,
802
+ newly_failed_benchmarks : primary_errors,
810
803
} ;
811
804
let secondary = Comparison {
812
805
a : self . a ,
813
806
b : self . b ,
814
807
statistics : secondary,
815
- new_errors : secondary_errors,
808
+ newly_failed_benchmarks : secondary_errors,
816
809
} ;
817
810
(
818
811
ComparisonSummary :: summarize_comparison ( & primary) ,
@@ -1516,7 +1509,7 @@ mod tests {
1516
1509
bootstrap_total : 0 ,
1517
1510
} ,
1518
1511
statistics,
1519
- new_errors : Default :: default ( ) ,
1512
+ newly_failed_benchmarks : Default :: default ( ) ,
1520
1513
} ;
1521
1514
ComparisonSummary :: summarize_comparison ( & comparison)
1522
1515
. unwrap_or_else ( || ComparisonSummary :: empty ( ) )
0 commit comments