File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import assert from "node:assert" ;
2+
13import minimist from "minimist" ;
24
35import { setOutputVariable } from "./utils.js" ;
@@ -238,8 +240,13 @@ for (const [agent, value] of Object.entries(matrix)) {
238240 console . log ( JSON . stringify ( value , undefined , 4 ) ) ;
239241}
240242
243+ // This defines the sort order, which is seen in PR replies; tsc is the most important and should be first.
244+ const kindOrder : readonly JobKind [ ] = [ "tsc" , "tsserver" , "startup" ] ;
245+
246+ assert . deepStrictEqual ( [ ...allJobKinds ] . sort ( ) , [ ...kindOrder ] . sort ( ) , "kindOrder must contain all job kinds" ) ;
247+
241248// These are outputs for the ProcessResults job, specifying which results were
242249// produced previously and need to be processed. This is a space separated list,
243250// iterated in the pipeline in bash.
244- setOutputVariable ( `TSPERF_PROCESS_KINDS` , [ ... processKinds ] . sort ( ) . join ( " " ) ) ;
251+ setOutputVariable ( `TSPERF_PROCESS_KINDS` , kindOrder . filter ( kind => processKinds . has ( kind ) ) . join ( " " ) ) ;
245252setOutputVariable ( `TSPERF_PROCESS_LOCATIONS` , [ ...processLocations ] . sort ( ) . join ( "," ) ) ;
You can’t perform that action at this time.
0 commit comments