From d45de14b7a715c9576ec01dbd90a52a467bf78cd Mon Sep 17 00:00:00 2001 From: eps1lon Date: Mon, 20 Feb 2023 22:02:49 +0100 Subject: [PATCH] Distribute bundles more evenly into CI shards --- scripts/rollup/build.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/rollup/build.js b/scripts/rollup/build.js index f95fbe12ac398..4c8ed5d9e4dff 100644 --- a/scripts/rollup/build.js +++ b/scripts/rollup/build.js @@ -527,10 +527,6 @@ function resolveEntryFork(resolvedEntry, isFBBundle) { } async function createBundle(bundle, bundleType) { - if (shouldSkipBundle(bundle, bundleType)) { - return; - } - const filename = getFilename(bundle, bundleType); const logKey = chalk.white.bold(filename) + chalk.dim(` (${bundleType.toLowerCase()})`); @@ -766,6 +762,10 @@ async function buildEverything() { ); } + bundles = bundles.filter(([bundle, bundleType]) => { + return !shouldSkipBundle(bundle, bundleType); + }); + if (process.env.CIRCLE_NODE_TOTAL) { // In CI, parallelize bundles across multiple tasks. const nodeTotal = parseInt(process.env.CIRCLE_NODE_TOTAL, 10);