Skip to content

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.sh
index 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
+ fi
npm install
# clean, lint, and build JS source
npx run-s clean:all lint build
npm 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 -- --integration
popd
}
@@ -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" ]; then
diff --git a/dev/tasks/verify-rc/github.nix.yml b/dev/tasks/verify-rc/github.nix.yml
index 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 verification
shell: bash
+ env:
+ INSTALL_NODE: 0
run: |
set -e