From 7e8bef872a253e3049919086ffae0a186631137f Mon Sep 17 00:00:00 2001 From: Konstantin Raev Date: Tue, 15 Nov 2016 18:47:50 -0800 Subject: [PATCH] =?UTF-8?q?limited=20max=20workers=20in=20packager=20to=20?= =?UTF-8?q?1=20to=20stop=20crashes=20in=20Ci=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: This should stop Circle CI from crashing. Let's wait for the test to pass. cc davidaurelio matryoshcow mkonicek Closes https://github.com/facebook/react-native/pull/10962 Differential Revision: D4186949 Pulled By: kentaromiura fbshipit-source-id: 2542376a6e4bf0d7dc423c574bd4573ae9bdfc96 --- circle.yml | 2 +- scripts/run-ci-e2e-tests.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/circle.yml b/circle.yml index 6769be575..4da84b1a9 100644 --- a/circle.yml +++ b/circle.yml @@ -67,7 +67,7 @@ test: - ./gradlew :ReactAndroid:packageReactNdkLibsForBuck -Pjobs=1 -Pcom.android.build.threadPoolSize=1: timeout: 360 # build JS bundle for instrumentation tests - - node local-cli/cli.js bundle --platform android --dev true --entry-file ReactAndroid/src/androidTest/js/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js + - REACT_NATIVE_MAX_WORKERS=1 node local-cli/cli.js bundle --platform android --dev true --entry-file ReactAndroid/src/androidTest/js/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js # build test APK - buck install ReactAndroid/src/androidTest/buck-runner:instrumentation-tests --config build.threads=1 # run installed apk with tests diff --git a/scripts/run-ci-e2e-tests.js b/scripts/run-ci-e2e-tests.js index 73b0af4ff..cd1e4e561 100644 --- a/scripts/run-ci-e2e-tests.js +++ b/scripts/run-ci-e2e-tests.js @@ -185,12 +185,12 @@ try { if (argv.js) { // Check the packager produces a bundle (doesn't throw an error) - if (exec('react-native bundle --platform android --dev true --entry-file index.android.js --bundle-output android-bundle.js').code) { + if (exec('REACT_NATIVE_MAX_WORKERS=1 react-native bundle --platform android --dev true --entry-file index.android.js --bundle-output android-bundle.js').code) { echo('Could not build android package'); exitCode = 1; throw Error(exitCode); } - if (exec('react-native bundle --platform ios --dev true --entry-file index.ios.js --bundle-output ios-bundle.js').code) { + if (exec('REACT_NATIVE_MAX_WORKERS=1 react-native bundle --platform ios --dev true --entry-file index.ios.js --bundle-output ios-bundle.js').code) { echo('Could not build ios package'); exitCode = 1; throw Error(exitCode);