From ab06458642a7ca8e35a79016b7fd92fed4d306a8 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Mon, 20 May 2019 15:09:41 -0400 Subject: [PATCH] Revert "Build Tooling: Define build concurrency explicitly" This reverts commit 4338f9e09d9d502409fee00ea1062ea369d0f8c6. --- .travis.yml | 4 +--- bin/packages/build.js | 10 +--------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index 721f1eaa7a0a9b..7ff3c9b0445020 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,9 +25,7 @@ branches: before_install: - nvm install --latest-npm -env: - - PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true - - HARDWARE_CONCURRENCY=2 +env: PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true jobs: include: diff --git a/bin/packages/build.js b/bin/packages/build.js index 0cad2bbb1a8f07..5750b8b1c30ffe 100755 --- a/bin/packages/build.js +++ b/bin/packages/build.js @@ -44,15 +44,7 @@ if ( ! files.length ) { }; } -const options = {}; -if ( process.env.HARDWARE_CONCURRENCY ) { - // WorkerFarm is configured to use the number of CPUs available as the - // default value. This can be overwritten for finite control or for use in - // uncooperative continuous integration. - options.maxConcurrentWorkers = Number( process.env.HARDWARE_CONCURRENCY ); -} - -const worker = workerFarm( options, require.resolve( './build-worker' ) ); +const worker = workerFarm( require.resolve( './build-worker' ) ); let complete = 0;