File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { dev } from './runners/dev';
2
2
import { build } from './runners/build' ;
3
3
import {
4
4
DefaultBenchCase ,
5
+ ValidMetricsForCase ,
5
6
cloneRepo ,
6
7
getDataPath ,
7
8
mergeMetrics ,
@@ -29,10 +30,17 @@ async function prBench() {
29
30
30
31
await build ( productName , caseName ) ;
31
32
32
- try {
33
- await yarnInstall ( productName , caseName ) ;
34
- } catch ( err ) {
35
- console . log ( 'failed to collect install size metrics:' , err ) ;
33
+ if (
34
+ ValidMetricsForCase [
35
+ caseName as keyof typeof ValidMetricsForCase
36
+ ] ?. includes ( 'installSize' ) ||
37
+ ! ValidMetricsForCase [ caseName as keyof typeof ValidMetricsForCase ]
38
+ ) {
39
+ try {
40
+ await yarnInstall ( productName , caseName ) ;
41
+ } catch ( err ) {
42
+ console . log ( 'failed to collect install size metrics:' , err ) ;
43
+ }
36
44
}
37
45
38
46
await mergeMetrics ( productName , caseName ) ;
You can’t perform that action at this time.
0 commit comments