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';
22import { build } from './runners/build' ;
33import {
44 DefaultBenchCase ,
5+ ValidMetricsForCase ,
56 cloneRepo ,
67 getDataPath ,
78 mergeMetrics ,
@@ -29,10 +30,17 @@ async function prBench() {
2930
3031 await build ( productName , caseName ) ;
3132
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+ }
3644 }
3745
3846 await mergeMetrics ( productName , caseName ) ;
You can’t perform that action at this time.
0 commit comments