Apache DataFusion SQL Query Engine
ARROW-8522: [Release][Developer] Add option to bootstrap NPM when running release verification script
Wes McKinney978ecd2ca302
diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.shindex a6de4ffe62..ea1ddcd2c0 100755--- a/dev/release/verify-release-candidate.sh+++ b/dev/release/verify-release-candidate.sh@@ -420,26 +420,19 @@ test_glib() {test_js() {pushd js- # export NVM_DIR="`pwd`/.nvm"- # mkdir -p $NVM_DIR- # curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash- # [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"- #- # nvm install node+ if [ "${INSTALL_NODE}" -gt 0 ]; then+ export NVM_DIR="`pwd`/.nvm"+ mkdir -p $NVM_DIR+ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"++ nvm install node+ finpm install# clean, lint, and build JS sourcenpx run-s clean:all lint buildnpm run test-- # create initial integration test data- # npm run create:testdata-- # run once to write the snapshots- # npm test -- -t ts -u --integration-- # run again to test all builds against the snapshots- # npm test -- --integrationpopd}@@ -728,6 +721,10 @@ test_wheels() {# To deactivate one test, deactivate the test and all of its dependents# To explicitly select one test, set TEST_DEFAULT=0 TEST_X=1+# Install NodeJS locally for running the JavaScript tests rather than using the+# system Node installation, which may be too old.+: ${INSTALL_NODE:=1}+if [ "${ARTIFACT}" == "source" ]; then: ${TEST_SOURCE:=1}elif [ "${ARTIFACT}" == "wheels" ]; thendiff --git a/dev/tasks/verify-rc/github.nix.yml b/dev/tasks/verify-rc/github.nix.ymlindex dc0dc2858d..8482cdc97c 100644--- a/dev/tasks/verify-rc/github.nix.yml+++ b/dev/tasks/verify-rc/github.nix.yml@@ -43,6 +43,8 @@ jobs:run: cd arrow && ci/scripts/util_checkout.sh- name: Run verificationshell: bash+ env:+ INSTALL_NODE: 0run: |set -e