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