File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -61,10 +61,24 @@ async function main() {
61
61
62
62
console . log ( 'Executing "%s"' , c ) ;
63
63
64
- childProcess . execFileSync ( cmd [ 0 ] , cmd . slice ( 1 ) , {
65
- shell : false ,
66
- stdio : 'inherit' ,
67
- } ) ;
64
+ try {
65
+ childProcess . execFileSync ( cmd [ 0 ] , cmd . slice ( 1 ) , {
66
+ shell : false ,
67
+ stdio : 'inherit' ,
68
+ } ) ;
69
+ } catch ( e ) {
70
+ // See #1611.
71
+ // Due to the wide range of modules and node versions that we
72
+ // benchmark these days, not every library supports every node
73
+ // version.
74
+ // So we ignore any benchmark that fails in order to not fail the
75
+ // whole run benchmark gh action. Their results will not be
76
+ // visible for this node version in the frontend.
77
+ // The better solution would be benchmark case metadata that lists
78
+ // compatible / node versions (e.g. for stnl sth like >= 23) and
79
+ // then skip incompatible node versions explicitly.
80
+ console . error ( 'Skipped "%s" benchmark due to an error' , c ) ;
81
+ }
68
82
}
69
83
}
70
84
break ;
You can’t perform that action at this time.
0 commit comments