@@ -118,8 +118,9 @@ async function runProjectsInBulk(
118
118
119
119
await collectMany ( runManyCommand , env ) ;
120
120
121
- const currProjectReports = await Promise . all (
122
- projects . map ( async ( project ) : Promise < ProjectReport > => {
121
+ const currProjectReports = await asyncSequential (
122
+ projects ,
123
+ async ( project ) : Promise < ProjectReport > => {
123
124
const ctx = createCommandContext ( settings , project ) ;
124
125
const config = await printPersistConfig ( ctx ) ;
125
126
const reports = await saveOutputFiles ( {
@@ -129,7 +130,7 @@ async function runProjectsInBulk(
129
130
settings,
130
131
} ) ;
131
132
return { project, reports, config, ctx } ;
132
- } ) ,
133
+ } ,
133
134
) ;
134
135
logger . debug (
135
136
`Loaded ${ currProjectReports . length } persist configs by running print-config command for each project` ,
@@ -222,12 +223,13 @@ async function collectPreviousReports(
222
223
}
223
224
224
225
return runInBaseBranch ( base , env , async ( ) => {
225
- const uncachedProjectConfigs = await Promise . all (
226
- uncachedProjectReports . map ( async args => ( {
226
+ const uncachedProjectConfigs = await asyncSequential (
227
+ uncachedProjectReports ,
228
+ async args => ( {
227
229
name : args . project . name ,
228
230
ctx : args . ctx ,
229
231
config : await checkPrintConfig ( args ) ,
230
- } ) ) ,
232
+ } ) ,
231
233
) ;
232
234
233
235
const validProjectConfigs =
0 commit comments