From 03fb2cbb040da0757b6b32a4fdefbeed2e2ff788 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 12 Mar 2018 21:22:01 +0100 Subject: [PATCH 1/5] Adding builds to our CI. --- kokoro.bat => test/kokoro.bat | 3 +++ kokoro.sh => test/kokoro.sh | 6 +++++- test/kokoro/linux.cfg | 2 +- test/kokoro/macos.cfg | 2 +- test/kokoro/windows.cfg | 2 +- tools/release/kokoro.bat | 28 ++++++++++++++++++++++++ tools/release/kokoro.sh | 37 ++++++++++++++++++++++++++++++++ tools/release/kokoro/linux.cfg | 25 +++++++++++++++++++++ tools/release/kokoro/macos.cfg | 25 +++++++++++++++++++++ tools/release/kokoro/windows.cfg | 25 +++++++++++++++++++++ 10 files changed, 151 insertions(+), 4 deletions(-) rename kokoro.bat => test/kokoro.bat (95%) rename kokoro.sh => test/kokoro.sh (86%) create mode 100644 tools/release/kokoro.bat create mode 100755 tools/release/kokoro.sh create mode 100644 tools/release/kokoro/linux.cfg create mode 100644 tools/release/kokoro/macos.cfg create mode 100644 tools/release/kokoro/windows.cfg diff --git a/kokoro.bat b/test/kokoro.bat similarity index 95% rename from kokoro.bat rename to test/kokoro.bat index fc5fd8b22..47a31e370 100644 --- a/kokoro.bat +++ b/test/kokoro.bat @@ -15,8 +15,11 @@ @echo "Starting Windows test" cd /d %~dp0 +cd .. git submodule update --init git submodule foreach --recursive git submodule update --init +call tools\release\kokoro.bat + .\run-tests.bat diff --git a/kokoro.sh b/test/kokoro.sh similarity index 86% rename from kokoro.sh rename to test/kokoro.sh index 3e51749c1..dbc6c8db9 100755 --- a/kokoro.sh +++ b/test/kokoro.sh @@ -14,10 +14,14 @@ # limitations under the License. set -e -cd $(dirname $0) +cd $(dirname $0)/.. # Install gRPC and its submodules. git submodule update --init git submodule foreach --recursive git submodule update --init +./packages/grpc-native-core/tools/buildgen/generate_projects.sh + +./tools/release/kokoro.sh + ./run-tests.sh diff --git a/test/kokoro/linux.cfg b/test/kokoro/linux.cfg index c6b2c88f6..f40e6db43 100644 --- a/test/kokoro/linux.cfg +++ b/test/kokoro/linux.cfg @@ -15,7 +15,7 @@ # Config file for Kokoro (in protobuf text format) # Location of the continuous shell script in repository. -build_file: "grpc-node/kokoro.sh" +build_file: "grpc-node/test/kokoro.sh" timeout_mins: 60 action { define_artifacts { diff --git a/test/kokoro/macos.cfg b/test/kokoro/macos.cfg index c6b2c88f6..f40e6db43 100644 --- a/test/kokoro/macos.cfg +++ b/test/kokoro/macos.cfg @@ -15,7 +15,7 @@ # Config file for Kokoro (in protobuf text format) # Location of the continuous shell script in repository. -build_file: "grpc-node/kokoro.sh" +build_file: "grpc-node/test/kokoro.sh" timeout_mins: 60 action { define_artifacts { diff --git a/test/kokoro/windows.cfg b/test/kokoro/windows.cfg index e4a4524bd..2b9d09060 100644 --- a/test/kokoro/windows.cfg +++ b/test/kokoro/windows.cfg @@ -15,5 +15,5 @@ # Config file for Kokoro (in protobuf text format) # Location of the continuous shell script in repository. -build_file: "grpc-node/kokoro.bat" +build_file: "grpc-node/test/kokoro.bat" timeout_mins: 60 diff --git a/tools/release/kokoro.bat b/tools/release/kokoro.bat new file mode 100644 index 000000000..e86e01bd7 --- /dev/null +++ b/tools/release/kokoro.bat @@ -0,0 +1,28 @@ +@rem Copyright 2018 gRPC authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem http://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. + +@echo "Starting Windows build" + +cd /d %~dp0 +cd ..\.. + +git submodule update --init +git submodule foreach --recursive git submodule update --init + +set ARTIFACTS_OUT=artifacts +cd packages\grpc-native-core +call tools\run_tests\artifacts\build_artifact_node.bat +cd ..\.. + +move packages\grpc-native-core\artifacts . diff --git a/tools/release/kokoro.sh b/tools/release/kokoro.sh new file mode 100755 index 000000000..7282c7371 --- /dev/null +++ b/tools/release/kokoro.sh @@ -0,0 +1,37 @@ +#!/bin/sh +# Copyright 2018 gRPC authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -e +cd $(dirname $0)/../.. +base_dir=$(pwd) + +# Install gRPC and its submodules. +git submodule update --init +git submodule foreach --recursive git submodule update --init + +./packages/grpc-native-core/tools/buildgen/generate_projects.sh + +OS=`uname` + +case $OS in +Linux) + ./packages/grpc-native-core/tools/run_tests/artifacts/build_all_linux_artifacts.sh + mv packages/grpc-native-core/artifacts . + ;; +Darwin) + export ARTIFACTS_OUT=$(base_dir)/artifacts + ./packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.sh + ;; +esac diff --git a/tools/release/kokoro/linux.cfg b/tools/release/kokoro/linux.cfg new file mode 100644 index 000000000..80bc144f2 --- /dev/null +++ b/tools/release/kokoro/linux.cfg @@ -0,0 +1,25 @@ +# Copyright 2018 gRPC authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Config file for Kokoro (in protobuf text format) + +# Location of the continuous shell script in repository. +build_file: "grpc-node/tools/release/kokoro.sh" +timeout_mins: 60 +action { + define_artifacts { + regex: "github/grpc-node/artifacts/**", + strip_prefix: "github/grpc-node/artifacts" + } +} diff --git a/tools/release/kokoro/macos.cfg b/tools/release/kokoro/macos.cfg new file mode 100644 index 000000000..80bc144f2 --- /dev/null +++ b/tools/release/kokoro/macos.cfg @@ -0,0 +1,25 @@ +# Copyright 2018 gRPC authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Config file for Kokoro (in protobuf text format) + +# Location of the continuous shell script in repository. +build_file: "grpc-node/tools/release/kokoro.sh" +timeout_mins: 60 +action { + define_artifacts { + regex: "github/grpc-node/artifacts/**", + strip_prefix: "github/grpc-node/artifacts" + } +} diff --git a/tools/release/kokoro/windows.cfg b/tools/release/kokoro/windows.cfg new file mode 100644 index 000000000..925126e50 --- /dev/null +++ b/tools/release/kokoro/windows.cfg @@ -0,0 +1,25 @@ +# Copyright 2018 gRPC authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Config file for Kokoro (in protobuf text format) + +# Location of the continuous shell script in repository. +build_file: "grpc-node/tools/release/kokoro.bat" +timeout_mins: 60 +action { + define_artifacts { + regex: "github/grpc-node/artifacts/**", + strip_prefix: "github/grpc-node/artifacts" + } +} From 50c5b06479a14f0af661eb83bd19f7dd79ebf21f Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 12 Mar 2018 22:57:35 +0100 Subject: [PATCH 2/5] Splitting build and test jobs. --- test/kokoro/linux-build.cfg | 19 +++++++++++++++++++ test/kokoro/macos-build.cfg | 19 +++++++++++++++++++ test/kokoro/windows-build.cfg | 19 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 test/kokoro/linux-build.cfg create mode 100644 test/kokoro/macos-build.cfg create mode 100644 test/kokoro/windows-build.cfg diff --git a/test/kokoro/linux-build.cfg b/test/kokoro/linux-build.cfg new file mode 100644 index 000000000..b5e6d6e63 --- /dev/null +++ b/test/kokoro/linux-build.cfg @@ -0,0 +1,19 @@ +# Copyright 2018 gRPC authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Config file for Kokoro (in protobuf text format) + +# Location of the continuous shell script in repository. +build_file: "grpc-node/tools/release/kokoro.sh" +timeout_mins: 60 diff --git a/test/kokoro/macos-build.cfg b/test/kokoro/macos-build.cfg new file mode 100644 index 000000000..b5e6d6e63 --- /dev/null +++ b/test/kokoro/macos-build.cfg @@ -0,0 +1,19 @@ +# Copyright 2018 gRPC authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Config file for Kokoro (in protobuf text format) + +# Location of the continuous shell script in repository. +build_file: "grpc-node/tools/release/kokoro.sh" +timeout_mins: 60 diff --git a/test/kokoro/windows-build.cfg b/test/kokoro/windows-build.cfg new file mode 100644 index 000000000..1885ef39f --- /dev/null +++ b/test/kokoro/windows-build.cfg @@ -0,0 +1,19 @@ +# Copyright 2018 gRPC authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Config file for Kokoro (in protobuf text format) + +# Location of the continuous shell script in repository. +build_file: "grpc-node/tools/release/kokoro.bat" +timeout_mins: 60 From 64e3e9d764862a2151a03230e340a9422257b30c Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 12 Mar 2018 23:23:23 +0100 Subject: [PATCH 3/5] Don't do release build tests in the normal tests. --- test/kokoro.bat | 2 -- test/kokoro.sh | 2 -- 2 files changed, 4 deletions(-) diff --git a/test/kokoro.bat b/test/kokoro.bat index 47a31e370..1f0fabfcf 100644 --- a/test/kokoro.bat +++ b/test/kokoro.bat @@ -20,6 +20,4 @@ cd .. git submodule update --init git submodule foreach --recursive git submodule update --init -call tools\release\kokoro.bat - .\run-tests.bat diff --git a/test/kokoro.sh b/test/kokoro.sh index dbc6c8db9..c4b9373b4 100755 --- a/test/kokoro.sh +++ b/test/kokoro.sh @@ -22,6 +22,4 @@ git submodule foreach --recursive git submodule update --init ./packages/grpc-native-core/tools/buildgen/generate_projects.sh -./tools/release/kokoro.sh - ./run-tests.sh From 8857ccae3422bf9e5440bcb84a7e112c70746cb8 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Tue, 13 Mar 2018 01:06:53 +0100 Subject: [PATCH 4/5] Enabling debug mode, removing nvm references, installing deps, and increasing timeouts. --- .../run_tests/artifacts/build_all_linux_artifacts.sh | 3 --- .../tools/run_tests/artifacts/build_artifact_node.sh | 3 +++ .../tools/run_tests/artifacts/build_artifact_node_arm.sh | 3 --- .../tools/run_tests/artifacts/build_package_node.sh | 3 --- tools/release/kokoro.sh | 8 +++++--- tools/release/kokoro/linux.cfg | 2 +- tools/release/kokoro/macos.cfg | 2 +- tools/release/kokoro/windows.cfg | 2 +- 8 files changed, 11 insertions(+), 15 deletions(-) diff --git a/packages/grpc-native-core/tools/run_tests/artifacts/build_all_linux_artifacts.sh b/packages/grpc-native-core/tools/run_tests/artifacts/build_all_linux_artifacts.sh index 2d34d4d75..25fb545f7 100755 --- a/packages/grpc-native-core/tools/run_tests/artifacts/build_all_linux_artifacts.sh +++ b/packages/grpc-native-core/tools/run_tests/artifacts/build_all_linux_artifacts.sh @@ -13,9 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -source ~/.nvm/nvm.sh - -nvm install 8 set -ex cd $(dirname $0) diff --git a/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.sh b/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.sh index d8128863e..734d7182f 100755 --- a/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.sh +++ b/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.sh @@ -13,6 +13,9 @@ # See the License for the specific language governing permissions and # limitations under the License. + +set -ex + NODE_ALPINE_BUILD=false while true ; do diff --git a/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node_arm.sh b/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node_arm.sh index b33f8decf..8c0202ca1 100755 --- a/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node_arm.sh +++ b/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node_arm.sh @@ -13,9 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -source ~/.nvm/nvm.sh - -nvm use 8 set -ex cd $(dirname $0)/../../.. diff --git a/packages/grpc-native-core/tools/run_tests/artifacts/build_package_node.sh b/packages/grpc-native-core/tools/run_tests/artifacts/build_package_node.sh index 2860f68bc..412d0be23 100755 --- a/packages/grpc-native-core/tools/run_tests/artifacts/build_package_node.sh +++ b/packages/grpc-native-core/tools/run_tests/artifacts/build_package_node.sh @@ -13,9 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -source ~/.nvm/nvm.sh - -nvm use 8 set -ex cd $(dirname $0)/../../.. diff --git a/tools/release/kokoro.sh b/tools/release/kokoro.sh index 7282c7371..32303b2ed 100755 --- a/tools/release/kokoro.sh +++ b/tools/release/kokoro.sh @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -set -e +set -ex cd $(dirname $0)/../.. base_dir=$(pwd) @@ -21,17 +21,19 @@ base_dir=$(pwd) git submodule update --init git submodule foreach --recursive git submodule update --init +pip install mako ./packages/grpc-native-core/tools/buildgen/generate_projects.sh OS=`uname` case $OS in Linux) + sudo apt-get update + sudo apt-get install -y linux-libc-dev:i386 g++-aarch64-linux-gnu g++-arm-linux-gnueabihf ./packages/grpc-native-core/tools/run_tests/artifacts/build_all_linux_artifacts.sh mv packages/grpc-native-core/artifacts . ;; Darwin) - export ARTIFACTS_OUT=$(base_dir)/artifacts - ./packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.sh + ARTIFACTS_OUT=$base_dir/artifacts ./packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.sh ;; esac diff --git a/tools/release/kokoro/linux.cfg b/tools/release/kokoro/linux.cfg index 80bc144f2..b3348f8d3 100644 --- a/tools/release/kokoro/linux.cfg +++ b/tools/release/kokoro/linux.cfg @@ -16,7 +16,7 @@ # Location of the continuous shell script in repository. build_file: "grpc-node/tools/release/kokoro.sh" -timeout_mins: 60 +timeout_mins: 180 action { define_artifacts { regex: "github/grpc-node/artifacts/**", diff --git a/tools/release/kokoro/macos.cfg b/tools/release/kokoro/macos.cfg index 80bc144f2..73a539fae 100644 --- a/tools/release/kokoro/macos.cfg +++ b/tools/release/kokoro/macos.cfg @@ -16,7 +16,7 @@ # Location of the continuous shell script in repository. build_file: "grpc-node/tools/release/kokoro.sh" -timeout_mins: 60 +timeout_mins: 120 action { define_artifacts { regex: "github/grpc-node/artifacts/**", diff --git a/tools/release/kokoro/windows.cfg b/tools/release/kokoro/windows.cfg index 925126e50..1ba6123f3 100644 --- a/tools/release/kokoro/windows.cfg +++ b/tools/release/kokoro/windows.cfg @@ -16,7 +16,7 @@ # Location of the continuous shell script in repository. build_file: "grpc-node/tools/release/kokoro.bat" -timeout_mins: 60 +timeout_mins: 120 action { define_artifacts { regex: "github/grpc-node/artifacts/**", From fcf472e7cb965194a52e36b2635508368c9c5f1a Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Tue, 13 Mar 2018 22:22:31 +0100 Subject: [PATCH 5/5] Adding JOBS environment variable to speed builds up, and reducing scope of Alpine Linux builds. --- .../artifacts/build_all_linux_artifacts.sh | 3 ++- .../run_tests/artifacts/build_artifact_node.bat | 2 ++ .../run_tests/artifacts/build_artifact_node.sh | 17 ++++++----------- run-tests.bat | 1 + run-tests.sh | 1 + tools/release/kokoro.sh | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/grpc-native-core/tools/run_tests/artifacts/build_all_linux_artifacts.sh b/packages/grpc-native-core/tools/run_tests/artifacts/build_all_linux_artifacts.sh index 25fb545f7..59f62a2fb 100755 --- a/packages/grpc-native-core/tools/run_tests/artifacts/build_all_linux_artifacts.sh +++ b/packages/grpc-native-core/tools/run_tests/artifacts/build_all_linux_artifacts.sh @@ -21,6 +21,7 @@ cd $tool_dir/../../.. base_dir=$(pwd) export ARTIFACTS_OUT=$base_dir/artifacts +export JOBS=8 rm -rf build || true @@ -32,4 +33,4 @@ $tool_dir/build_artifact_node.sh $tool_dir/build_artifact_node_arm.sh -docker run -e ARTIFACTS_OUT=/var/grpc/artifacts -v $base_dir:/var/grpc alpine_node_artifact bash -c /var/grpc/tools/run_tests/artifacts/build_artifact_node.sh --with-alpine +docker run -e JOBS=8 -e ARTIFACTS_OUT=/var/grpc/artifacts -v $base_dir:/var/grpc alpine_node_artifact /var/grpc/tools/run_tests/artifacts/build_artifact_node.sh --with-alpine diff --git a/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.bat b/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.bat index a33236844..41177f907 100644 --- a/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.bat +++ b/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.bat @@ -20,6 +20,8 @@ set electron_versions=1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.7.0 set PATH=%PATH%;C:\Program Files\nodejs\;%APPDATA%\npm +set JOBS=8 + del /f /q BUILD || rmdir build /s /q call npm update || goto :error diff --git a/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.sh b/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.sh index 734d7182f..e00eb6a06 100755 --- a/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.sh +++ b/packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.sh @@ -16,12 +16,15 @@ set -ex -NODE_ALPINE_BUILD=false +arch_list=( ia32 x64 ) +node_versions=( 4.0.0 5.0.0 6.0.0 7.0.0 8.0.0 9.0.0 ) +electron_versions=( 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.7.0 ) while true ; do case $1 in --with-alpine) - NODE_ALPINE_BUILD=true + arch_list=( x64 ) + electron_versions=( ) ;; "") ;; @@ -33,8 +36,6 @@ while true ; do shift || break done -NODE_ALPINE_BUILD=$1 - umask 022 cd $(dirname $0)/../../.. @@ -45,17 +46,11 @@ mkdir -p "${ARTIFACTS_OUT}" npm update -arch_list=( ia32 x64 ) - -node_versions=( 4.0.0 5.0.0 6.0.0 7.0.0 8.0.0 9.0.0 ) - -electron_versions=( 1.0.0 1.1.0 1.2.0 1.3.0 1.4.0 1.5.0 1.6.0 1.7.0 ) - for arch in ${arch_list[@]} do for version in ${node_versions[@]} do - ./node_modules/.bin/node-pre-gyp configure rebuild package --target=$version --target_arch=$arch --grpc_alpine=$NODE_ALPINE_BUILD + ./node_modules/.bin/node-pre-gyp configure rebuild package --target=$version --target_arch=$arch cp -r build/stage/* "${ARTIFACTS_OUT}"/ done diff --git a/run-tests.bat b/run-tests.bat index 92c2b2993..bd9a83a99 100644 --- a/run-tests.bat +++ b/run-tests.bat @@ -20,6 +20,7 @@ PowerShell -Command .\install-nvm-windows.ps1 SET NVM_HOME=%ROOT%nvm SET NVM_SYMLINK=%ROOT%nvm\nodejs SET PATH=%NVM_HOME%;%NVM_SYMLINK%;%PATH% +SET JOBS=8 nvm version diff --git a/run-tests.sh b/run-tests.sh index c1a76889d..5df881864 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -38,6 +38,7 @@ set -ex npm install --unsafe-perm mkdir -p reports +export JOBS=8 # TODO(mlumish): Add electron tests diff --git a/tools/release/kokoro.sh b/tools/release/kokoro.sh index 32303b2ed..e5b578f72 100755 --- a/tools/release/kokoro.sh +++ b/tools/release/kokoro.sh @@ -34,6 +34,6 @@ Linux) mv packages/grpc-native-core/artifacts . ;; Darwin) - ARTIFACTS_OUT=$base_dir/artifacts ./packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.sh + JOBS=8 ARTIFACTS_OUT=$base_dir/artifacts ./packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.sh ;; esac