Apache DataFusion SQL Query Engine
ARROW-8335: [Release] Add crossbow jobs to run release verification
Neal Richardson6f5f6d58aa17
diff --git a/dev/release/verify-release-candidate-wheels.bat b/dev/release/verify-release-candidate-wheels.batindex 9bb1a54afa..dc7d69a6a5 100644--- a/dev/release/verify-release-candidate-wheels.bat+++ b/dev/release/verify-release-candidate-wheels.bat@@ -49,7 +49,9 @@ EXIT /B %ERRORLEVEL%:errorcall deactivate-goto done+cd %_CURRENT_DIR%++EXIT /B 1@rem a batch function to verify a single wheel:verify_wheeldiff --git a/dev/release/verify-release-candidate.bat b/dev/release/verify-release-candidate.batindex bcef9f51f6..1f99539d88 100644--- a/dev/release/verify-release-candidate.bat+++ b/dev/release/verify-release-candidate.bat@@ -33,7 +33,7 @@ set ARROW_SOURCE=%_VERIFICATION_DIR%\apache-arrow-%1set INSTALL_DIR=%_VERIFICATION_DIR%\install@rem Requires GNU Wget for Windows-wget --no-check-certificate -O %_TARBALL% %_DIST_URL%/apache-arrow-%1-rc%2/%_TARBALL% || exit /B+wget --no-check-certificate -O %_TARBALL% %_DIST_URL%/apache-arrow-%1-rc%2/%_TARBALL% || exit /B 1tar xf %_TARBALL% -C %_VERIFICATION_DIR_UNIX%@@ -43,9 +43,9 @@ set PYTHON=3.6@rem script executioncall conda create -p %_VERIFICATION_CONDA_ENV% ^--no-shortcuts -f -q -y python=%PYTHON% ^- || exit /B+ || exit /B 1-call activate %_VERIFICATION_CONDA_ENV% || exit /B+call activate %_VERIFICATION_CONDA_ENV% || exit /B 1call conda install -y ^--no-shortcuts ^@@ -53,9 +53,9 @@ call conda install -y ^git ^--file=ci\conda_env_cpp.yml ^--file=ci\conda_env_python.yml ^- -c conda-forge || exit /B+ -c conda-forge || exit /B 1-set GENERATOR=Visual Studio 14 2015 Win64+set GENERATOR=Visual Studio 15 2017 Win64set CONFIGURATION=releasepushd %ARROW_SOURCE%@@ -99,8 +99,8 @@ cmake --build . --target INSTALL --config Release@rem NOTE(wesm): Building googletest is flaky for me with ninja. Building it@rem first fixes the problem-@rem ninja googletest_ep || exit /B-@rem ninja install || exit /B+@rem ninja googletest_ep || exit /B 1+@rem ninja install || exit /B 1@rem Get testing datasets for Parquet unit testsgit clone https://github.com/apache/parquet-testing.git %_VERIFICATION_DIR%\parquet-testing@@ -112,7 +112,7 @@ set ARROW_TEST_DATA=%_VERIFICATION_DIR%\arrow-testing\data@rem Needed so python-test.exe worksset PYTHONPATH=%CONDA_PREFIX%\Lib;%CONDA_PREFIX%\Lib\site-packages;%CONDA_PREFIX%\python35.zip;%CONDA_PREFIX%\DLLs;%CONDA_PREFIX%;%PYTHONPATH%-ctest -VV || exit /B+ctest -VV || exit /B 1popd@rem Build and import pyarrow@@ -122,8 +122,8 @@ set PYARROW_CMAKE_GENERATOR=%GENERATOR%set PYARROW_WITH_FLIGHT=1set PYARROW_WITH_PARQUET=1set PYARROW_WITH_DATASET=1-python setup.py build_ext --inplace --bundle-arrow-cpp bdist_wheel || exit /B-py.test pyarrow -v -s --parquet || exit /B+python setup.py build_ext --inplace --bundle-arrow-cpp bdist_wheel || exit /B 1+py.test pyarrow -v -s --parquet || exit /B 1popddiff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.shindex f796a19dd9..731994751c 100755--- a/dev/release/verify-release-candidate.sh+++ b/dev/release/verify-release-candidate.sh@@ -277,6 +277,7 @@ ${ARROW_CMAKE_OPTIONS:-}-DARROW_PARQUET=ON-DARROW_DATASET=ON-DPARQUET_REQUIRE_ENCRYPTION=ON+-DARROW_VERBOSE_THIRDPARTY_BUILD=ON-DARROW_WITH_BZ2=ON-DARROW_WITH_ZLIB=ON-DARROW_WITH_ZSTD=ON@@ -414,12 +415,12 @@ 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+ # 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 nodenpm install# clean, lint, and build JS source@@ -648,10 +649,8 @@ test_linux_wheels() {pip install python-rc/${VERSION}-rc${RC_NUMBER}/pyarrow-${VERSION}-cp${py_arch//[mu.]/}-cp${py_arch//./}-manylinux${ml_spec}_x86_64.whlcheck_python_imports py_arch- # install test requirements+ # install test requirements and execute the testspip install -r ${ARROW_DIR}/python/requirements-test.txt-- # execute the python unit testspytest --pyargs pyarrowdone@@ -681,10 +680,8 @@ test_macos_wheels() {pip install python-rc/${VERSION}-rc${RC_NUMBER}/pyarrow-${VERSION}-cp${py_arch//[m.]/}-cp${py_arch//./}-${macos_suffix}.whlcheck_python_imports py_arch- # install test requirements+ # install test requirements and execute the testspip install -r ${ARROW_DIR}/python/requirements-test.txt-- # execute the python unit testspytest --pyargs pyarrowconda deactivatediff --git a/dev/tasks/tasks.yml b/dev/tasks/tasks.ymlindex b9db51b87a..d3373a0d3f 100644--- a/dev/tasks/tasks.yml+++ b/dev/tasks/tasks.yml@@ -73,6 +73,21 @@ groups:- test-*spark*- test-*turbodbc*+ verify-rc:+ - verify-rc-*++ verify-rc-wheels:+ - verify-rc-wheels-*++ verify-rc-source:+ - verify-rc-source-*++ verify-rc-source-macos:+ - verify-rc-source-macos-*++ verify-rc-source-linux:+ - verify-rc-source-linux-*+######################## Tasks to run regularly #############################nightly:@@ -1401,6 +1416,189 @@ tasks:artifacts:- arrow-gandiva-{no_rc_version}-SNAPSHOT.jar+ ########################### Release verification ############################++ verify-rc-binaries:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "ubuntu"+ artifact: "binaries"+ flag: ""++ verify-rc-wheels-linux:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "ubuntu"+ artifact: "wheels"+ flag: ""++ verify-rc-wheels-macos:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "macOS"+ artifact: "wheels"+ flag: ""++ verify-rc-source-macos-java:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "macOS"+ artifact: "source"+ flag: "TEST_JAVA=1"++ verify-rc-source-macos-csharp:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "macOS"+ artifact: "source"+ flag: "TEST_CSHARP=1"++ verify-rc-source-macos-ruby:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "macOS"+ artifact: "source"+ flag: "TEST_RUBY=1"++ verify-rc-source-macos-python:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "macOS"+ artifact: "source"+ flag: "TEST_PYTHON=1"++ verify-rc-source-macos-js:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "macOS"+ artifact: "source"+ flag: "TEST_JS=1"++ verify-rc-source-macos-go:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "macOS"+ artifact: "source"+ flag: "TEST_GO=1"++ verify-rc-source-macos-rust:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "macOS"+ artifact: "source"+ flag: "TEST_RUST=1"++ verify-rc-source-macos-integration:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "macOS"+ artifact: "source"+ flag: "TEST_INTEGRATION=1"++ verify-rc-source-linux-java:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "ubuntu"+ artifact: "source"+ flag: "TEST_JAVA=1"++ verify-rc-source-linux-csharp:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "ubuntu"+ artifact: "source"+ flag: "TEST_CSHARP=1"++ verify-rc-source-linux-ruby:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "ubuntu"+ artifact: "source"+ flag: "TEST_RUBY=1"++ verify-rc-source-linux-python:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "ubuntu"+ artifact: "source"+ flag: "TEST_PYTHON=1"++ verify-rc-source-linux-js:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "ubuntu"+ artifact: "source"+ flag: "TEST_JS=1"++ verify-rc-source-linux-go:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "ubuntu"+ artifact: "source"+ flag: "TEST_GO=1"++ verify-rc-source-linux-rust:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "ubuntu"+ artifact: "source"+ flag: "TEST_RUST=1"++ verify-rc-source-linux-integration:+ ci: github+ platform: linux+ template: verify-rc/github.nix.yml+ params:+ os: "ubuntu"+ artifact: "source"+ flag: "TEST_INTEGRATION=1"++ verify-rc-source-windows:+ ci: github+ platform: linux+ template: verify-rc/github.windows.source.yml++ verify-rc-wheels-windows:+ ci: github+ platform: linux+ template: verify-rc/github.windows.wheels.yml+############################## Docker tests #################################test-conda-cpp:diff --git a/dev/tasks/verify-rc/github.nix.yml b/dev/tasks/verify-rc/github.nix.ymlnew file mode 100644index 0000000000..df26a7f62b--- /dev/null+++ b/dev/tasks/verify-rc/github.nix.yml@@ -0,0 +1,71 @@+# Licensed to the Apache Software Foundation (ASF) under one+# or more contributor license agreements. See the NOTICE file+# distributed with this work for additional information+# regarding copyright ownership. The ASF licenses this file+# to you 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.++# NOTE: must set "Crossbow" as name to have the badge links working in the+# github comment reports!+name: Crossbow++on:+ push:+ branches:+ - "*-github-*"++jobs:+ verify:+ name: "Verify release candidate {{ os }} {{ artifact }} {{ flag }}"+ runs-on: {{ os }}-latest+ steps:+ - name: Checkout Arrow+ run: |+ git clone --no-checkout {{ arrow.remote }} arrow+ git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }}+ git -C arrow checkout FETCH_HEAD+ git -C arrow submodule update --init --recursive+ - name: Fetch Submodules and Tags+ shell: bash+ run: cd arrow && ci/scripts/util_checkout.sh+ - name: Run verification+ shell: bash+ run: |+ set -e++ {{ flag }}+ if [ $(uname) = "Darwin" ]; then+ brew install llvm@7 thrift glib+ else+ # TODO: don't require removing newer llvms+ sudo apt-get --purge remove -y llvm-8 llvm-9 clang-8 clang-9+ sudo apt-get install -y \+ llvm-7 clang-7 \+ wget curl libboost-all-dev jq \+ autoconf-archive gtk-doc-tools libgirepository1.0-dev flex bison+ if [ "$TEST_JAVA" = "1" ]; then+ # Maven+ MAVEN_VERSION=3.6.3+ wget https://downloads.apache.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.zip+ unzip apache-maven-$MAVEN_VERSION-bin.zip+ mkdir -p $HOME/java+ mv apache-maven-$MAVEN_VERSION $HOME/java+ export PATH=$HOME/java/apache-maven-$MAVEN_VERSION/bin:$PATH+ fi+ if [ "$TEST_RUBY" = "1" ]; then+ ruby --version+ fi+ fi+ # TODO: put 0.16.0 2 in some separate file?+ # If you edit the versions, be sure to edit the other workflow files in this directory too+ TEST_DEFAULT=0 {{ flag }} arrow/dev/release/verify-release-candidate.sh {{ artifact }} 0.16.0 2diff --git a/dev/tasks/verify-rc/github.windows.source.yml b/dev/tasks/verify-rc/github.windows.source.ymlnew file mode 100644index 0000000000..ac343ade5d--- /dev/null+++ b/dev/tasks/verify-rc/github.windows.source.yml@@ -0,0 +1,49 @@+# Licensed to the Apache Software Foundation (ASF) under one+# or more contributor license agreements. See the NOTICE file+# distributed with this work for additional information+# regarding copyright ownership. The ASF licenses this file+# to you 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.++# NOTE: must set "Crossbow" as name to have the badge links working in the+# github comment reports!+name: Crossbow++on:+ push:+ branches:+ - "*-github-*"++jobs:+ verify:+ name: "Verify release candidate Windows source"+ runs-on: windows-latest+ steps:+ - name: Checkout Arrow+ run: |+ git clone --no-checkout {{ arrow.remote }} arrow+ git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }}+ git -C arrow checkout FETCH_HEAD+ git -C arrow submodule update --init --recursive+ - name: Fetch Submodules and Tags+ shell: bash+ run: cd arrow && ci/scripts/util_checkout.sh+ - uses: s-weigand/setup-conda@v1+ - name: Run verification+ shell: cmd+ run: |+ choco install boost-msvc-14.1+ choco install wget+ cd arrow+ # If you edit the versions, be sure to edit the other workflow files in this directory too+ dev/release/verify-release-candidate.bat 0.16.0 2diff --git a/dev/tasks/verify-rc/github.windows.wheels.yml b/dev/tasks/verify-rc/github.windows.wheels.ymlnew file mode 100644index 0000000000..5ae83f220a--- /dev/null+++ b/dev/tasks/verify-rc/github.windows.wheels.yml@@ -0,0 +1,48 @@+# Licensed to the Apache Software Foundation (ASF) under one+# or more contributor license agreements. See the NOTICE file+# distributed with this work for additional information+# regarding copyright ownership. The ASF licenses this file+# to you 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.++# NOTE: must set "Crossbow" as name to have the badge links working in the+# github comment reports!+name: Crossbow++on:+ push:+ branches:+ - "*-github-*"++jobs:+ verify:+ name: "Verify release candidate Windows wheels"+ runs-on: windows-latest+ steps:+ - name: Checkout Arrow+ run: |+ git clone --no-checkout {{ arrow.remote }} arrow+ git -C arrow fetch -t {{ arrow.remote }} {{ arrow.branch }}+ git -C arrow checkout FETCH_HEAD+ git -C arrow submodule update --init --recursive+ - name: Fetch Submodules and Tags+ shell: bash+ run: cd arrow && ci/scripts/util_checkout.sh+ - uses: s-weigand/setup-conda@v1+ - name: Run verification+ shell: cmd+ run: |+ choco install wget+ cd arrow+ # If you edit the versions, be sure to edit the other workflow files in this directory too+ dev/release/verify-release-candidate-wheels.bat 0.16.0 2