Skip to content

Commit 0db7eaf

Browse files
chore(turbo): normalize concurrency flags to 20
1 parent 018df2d commit 0db7eaf

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

.github/workflows/bundle-size.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
BUILD_PACKAGES_SCRIPT="$(node -e "const pkg=require('./package.json'); process.stdout.write(pkg.scripts?.['build:packages'] ?? '')")"
8686
if [ -f turbo.json ]; then
8787
echo "Falling back to Turbo package build on base worktree."
88-
pnpm exec turbo run build --filter=./packages/** --concurrency=10
88+
pnpm exec turbo run build --filter=./packages/** --concurrency=20
8989
elif [ -f nx.json ]; then
9090
echo "Falling back to detached-safe Nx package build on base worktree."
9191
npx nx run-many --targets=build --projects=tag:type:pkg --parallel=4 --skip-nx-cache

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,37 +45,37 @@
4545
"test": "pnpm exec turbo run test",
4646
"test:affected": "node tools/scripts/run-affected-package-tests.mjs",
4747
"build": "pnpm run build:packages",
48-
"build:all": "pnpm exec turbo run build --concurrency=8",
49-
"build:apps": "pnpm exec turbo run build --filter=./apps/** --concurrency=6",
50-
"build:packages": "pnpm exec turbo run build --filter=./packages/** --concurrency=10",
51-
"test:packages": "pnpm exec turbo run test --filter=./packages/** --concurrency=6",
48+
"build:all": "pnpm exec turbo run build --concurrency=20",
49+
"build:apps": "pnpm exec turbo run build --filter=./apps/** --concurrency=20",
50+
"build:packages": "pnpm exec turbo run build --filter=./packages/** --concurrency=20",
51+
"test:packages": "pnpm exec turbo run test --filter=./packages/** --concurrency=20",
5252
"lint:packages": "pnpm exec turbo run lint --filter=./packages/**",
5353
"lint-fix": "node tools/scripts/lint-fix.mjs",
5454
"trigger-release": "node -e 'import(\"open\").then(open => open.default(\"https://github.com/module-federation/core/actions/workflows/trigger-release.yml\"))'",
5555
"serve:next": "pnpm exec turbo run serve --filter=@module-federation/3000-home --filter=@module-federation/3001-shop --filter=@module-federation/3002-checkout --filter=app-router-4000 --filter=app-router-4001 --concurrency=20",
56-
"app:router:build": "pnpm exec turbo run build --filter=host --filter=host-v5 --filter=host-vue3 --filter=remote1 --filter=remote2 --filter=remote3 --filter=remote4 --filter=remote5 --filter=remote6 --concurrency=6",
56+
"app:router:build": "pnpm exec turbo run build --filter=host --filter=host-v5 --filter=host-vue3 --filter=remote1 --filter=remote2 --filter=remote3 --filter=remote4 --filter=remote5 --filter=remote6 --concurrency=20",
5757
"app:router:dev": "pnpm exec turbo run serve --filter=host --filter=host-v5 --filter=host-vue3 --filter=remote1 --filter=remote2 --filter=remote3 --filter=remote4 --filter=remote5 --filter=remote6 --concurrency=20",
58-
"app:next-router:build": "pnpm exec turbo run build --filter=app-router-4000 --filter=app-router-4001 --concurrency=4",
58+
"app:next-router:build": "pnpm exec turbo run build --filter=app-router-4000 --filter=app-router-4001 --concurrency=20",
5959
"app:next-router:dev": "pnpm exec turbo run serve --filter=app-router-4000 --filter=app-router-4001",
6060
"serve:website": "pnpm --filter website-new run serve",
61-
"build:website": "pnpm exec turbo run build --filter=website-new --concurrency=1",
61+
"build:website": "pnpm exec turbo run build --filter=website-new --concurrency=20",
6262
"extract-i18n:website": "pnpm --filter website-new run extract-i18n",
6363
"sync:webpack:types": "node ./scripts/sync-webpack-unbundled-types.mjs",
6464
"sync:pullMFTypes": "concurrently \"node ./packages/enhanced/pullts.js\"",
6565
"app:next:dev": "pnpm exec turbo run serve:development --filter=@module-federation/3000-home --filter=@module-federation/3001-shop --filter=@module-federation/3002-checkout",
6666
"app:next:build": "pnpm exec turbo run build:production --filter=@module-federation/3000-home --filter=@module-federation/3001-shop --filter=@module-federation/3002-checkout --concurrency=20",
6767
"app:next:prod": "pnpm run app:next:build && pnpm exec turbo run serve:production --filter=@module-federation/3000-home --filter=@module-federation/3001-shop --filter=@module-federation/3002-checkout",
68-
"app:node:build": "pnpm exec turbo run build --filter=node-host --filter=node-local-remote --filter=node-remote --filter=node-dynamic-remote-new-version --filter=node-dynamic-remote --concurrency=6",
68+
"app:node:build": "pnpm exec turbo run build --filter=node-host --filter=node-local-remote --filter=node-remote --filter=node-dynamic-remote-new-version --filter=node-dynamic-remote --concurrency=20",
6969
"app:node:dev": "pnpm exec turbo run serve:development --filter=node-host --filter=node-local-remote --filter=node-remote --filter=node-dynamic-remote-new-version --filter=node-dynamic-remote --concurrency=20",
70-
"app:runtime:build": "pnpm exec turbo run build --filter=runtime-host --filter=runtime-remote1 --filter=runtime-remote2 --concurrency=6",
70+
"app:runtime:build": "pnpm exec turbo run build --filter=runtime-host --filter=runtime-remote1 --filter=runtime-remote2 --concurrency=20",
7171
"app:runtime:dev": "pnpm exec turbo run serve:development --filter=runtime-host --filter=runtime-remote1 --filter=runtime-remote2",
72-
"app:manifest:build": "pnpm exec turbo run build --filter=3008-webpack-host --filter=3009-webpack-provider --filter=3010-rspack-provider --filter=3011-rspack-manifest-provider --filter=3012-rspack-js-entry-provider --concurrency=4",
73-
"app:manifest:dev": "pnpm exec turbo run serve:development --filter=3008-webpack-host --filter=3009-webpack-provider --filter=3010-rspack-provider --filter=3011-rspack-manifest-provider --filter=3012-rspack-js-entry-provider --concurrency=100",
74-
"app:manifest:prod": "pnpm exec turbo run serve:production --filter=3008-webpack-host --filter=3009-webpack-provider --filter=3010-rspack-provider --filter=3011-rspack-manifest-provider --filter=3012-rspack-js-entry-provider --concurrency=100",
72+
"app:manifest:build": "pnpm exec turbo run build --filter=3008-webpack-host --filter=3009-webpack-provider --filter=3010-rspack-provider --filter=3011-rspack-manifest-provider --filter=3012-rspack-js-entry-provider --concurrency=20",
73+
"app:manifest:dev": "pnpm exec turbo run serve:development --filter=3008-webpack-host --filter=3009-webpack-provider --filter=3010-rspack-provider --filter=3011-rspack-manifest-provider --filter=3012-rspack-js-entry-provider --concurrency=20",
74+
"app:manifest:prod": "pnpm exec turbo run serve:production --filter=3008-webpack-host --filter=3009-webpack-provider --filter=3010-rspack-provider --filter=3011-rspack-manifest-provider --filter=3012-rspack-js-entry-provider --concurrency=20",
7575
"app:ts:dev": "pnpm exec turbo run serve --filter=react-ts-host --filter=react-ts-nested-remote --filter=react-ts-remote",
76-
"app:component-data-fetch:build": "pnpm exec turbo run build --filter=modernjs-ssr-data-fetch-provider --filter=modernjs-ssr-data-fetch-provider-csr --filter=modernjs-ssr-data-fetch-host --concurrency=6",
76+
"app:component-data-fetch:build": "pnpm exec turbo run build --filter=modernjs-ssr-data-fetch-provider --filter=modernjs-ssr-data-fetch-provider-csr --filter=modernjs-ssr-data-fetch-host --concurrency=20",
7777
"app:component-data-fetch:dev": "pnpm exec turbo run dev --filter=modernjs-ssr-data-fetch-provider --filter=modernjs-ssr-data-fetch-provider-csr --filter=modernjs-ssr-data-fetch-host --concurrency=20",
78-
"app:modern:build": "pnpm exec turbo run build --filter=modernjs-ssr-dynamic-nested-remote --filter=modernjs-ssr-dynamic-remote --filter=modernjs-ssr-dynamic-remote-new-version --filter=modernjs-ssr-host --filter=modernjs-ssr-nested-remote --filter=modernjs-ssr-remote --filter=modernjs-ssr-remote-new-version --concurrency=6",
78+
"app:modern:build": "pnpm exec turbo run build --filter=modernjs-ssr-dynamic-nested-remote --filter=modernjs-ssr-dynamic-remote --filter=modernjs-ssr-dynamic-remote-new-version --filter=modernjs-ssr-host --filter=modernjs-ssr-nested-remote --filter=modernjs-ssr-remote --filter=modernjs-ssr-remote-new-version --concurrency=20",
7979
"app:modern:dev": "pnpm exec turbo run dev --filter=modernjs-ssr-dynamic-nested-remote --filter=modernjs-ssr-dynamic-remote --filter=modernjs-ssr-dynamic-remote-new-version --filter=modernjs-ssr-host --filter=modernjs-ssr-nested-remote --filter=modernjs-ssr-remote --filter=modernjs-ssr-remote-new-version --concurrency=20",
8080
"commitlint": "commitlint --edit",
8181
"prepare": "husky install",

tools/scripts/ci-local.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ async function runBasePackagesBuild(ctx) {
694694
'run',
695695
'build',
696696
'--filter=./packages/**',
697-
'--concurrency=10',
697+
'--concurrency=20',
698698
],
699699
baseCtx,
700700
);

tools/scripts/run-affected-package-tests.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function main() {
5353
for (const packageName of combinedTargets) {
5454
args.push(`--filter=${packageName}`);
5555
}
56-
args.push('--concurrency=50%');
56+
args.push('--concurrency=20');
5757

5858
const testRun = spawnSync('pnpm', args, {
5959
cwd: ROOT,

tools/scripts/run-node-e2e.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const REMOTE_SERVE_CMD = [
2929
'--filter=node-local-remote',
3030
'--filter=node-dynamic-remote',
3131
'--filter=node-dynamic-remote-new-version',
32-
'--concurrency=4',
32+
'--concurrency=20',
3333
];
3434

3535
const HOST_SERVE_CMD = [
@@ -39,7 +39,7 @@ const HOST_SERVE_CMD = [
3939
'run',
4040
'serve:development',
4141
'--filter=node-host',
42-
'--concurrency=1',
42+
'--concurrency=20',
4343
];
4444

4545
const E2E_CMD = [

0 commit comments

Comments
 (0)