Skip to content

Commit 85ff390

Browse files
committed
fix(ci): prevent parallel print-config commands
1 parent 556d878 commit 85ff390

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

packages/ci/src/lib/run-monorepo.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ async function runProjectsInBulk(
118118

119119
await collectMany(runManyCommand, env);
120120

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> => {
123124
const ctx = createCommandContext(settings, project);
124125
const config = await printPersistConfig(ctx);
125126
const reports = await saveOutputFiles({
@@ -129,7 +130,7 @@ async function runProjectsInBulk(
129130
settings,
130131
});
131132
return { project, reports, config, ctx };
132-
}),
133+
},
133134
);
134135
logger.debug(
135136
`Loaded ${currProjectReports.length} persist configs by running print-config command for each project`,
@@ -222,12 +223,13 @@ async function collectPreviousReports(
222223
}
223224

224225
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 => ({
227229
name: args.project.name,
228230
ctx: args.ctx,
229231
config: await checkPrintConfig(args),
230-
})),
232+
}),
231233
);
232234

233235
const validProjectConfigs =

0 commit comments

Comments
 (0)