Skip to content

Apache DataFusion SQL Query Engine

ARROW-9052: [CI][MinGW] Enable Gandiva

Sutou Kouheif419ca901b55
diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml
index 0664cbbbf1..1eceb1202e 100644
--- a/.github/workflows/cpp.yml
+++ b/.github/workflows/cpp.yml
@@ -218,10 +218,11 @@ jobs:
env:
ARROW_BUILD_SHARED: ON
ARROW_BUILD_STATIC: OFF
- ARROW_BUILD_TYPE: release
ARROW_BUILD_TESTS: ON
+ ARROW_BUILD_TYPE: release
ARROW_DATASET: ON
ARROW_FLIGHT: ON
+ ARROW_GANDIVA: ON
ARROW_HDFS: OFF
ARROW_HOME: /mingw${{ matrix.mingw-n-bits }}
ARROW_JEMALLOC: OFF
@@ -243,7 +244,6 @@ jobs:
-DBoost_NO_BOOST_CMAKE=ON
CMAKE_GENERATOR: MSYS Makefiles
CMAKE_UNITY_BUILD: ON
- NPROC: 2
steps:
- name: Disable Crash Dialogs
run: |
diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml
index 6c95dff65b..2481f96db7 100644
--- a/.github/workflows/ruby.yml
+++ b/.github/workflows/ruby.yml
@@ -164,10 +164,11 @@ jobs:
env:
ARROW_BUILD_SHARED: ON
ARROW_BUILD_STATIC: OFF
- ARROW_BUILD_TYPE: release
ARROW_BUILD_TESTS: OFF
+ ARROW_BUILD_TYPE: release
ARROW_DATASET: ON
ARROW_FLIGHT: ON
+ ARROW_GANDIVA: ON
ARROW_HDFS: OFF
ARROW_HOME: /mingw${{ matrix.mingw-n-bits }}
ARROW_JEMALLOC: OFF
diff --git a/ci/scripts/cpp_test.sh b/ci/scripts/cpp_test.sh
index 533c2cd5dc..d7e239b7c0 100755
--- a/ci/scripts/cpp_test.sh
+++ b/ci/scripts/cpp_test.sh
@@ -32,6 +32,7 @@ export LD_LIBRARY_PATH=${ARROW_HOME}/${CMAKE_INSTALL_LIBDIR:-lib}:${LD_LIBRARY_P
# to retrieve metadata. Disable this so that S3FileSystem tests run faster.
export AWS_EC2_METADATA_DISABLED=TRUE
+ctest_options=()
case "$(uname)" in
Linux)
n_jobs=$(nproc)
@@ -39,6 +40,30 @@ case "$(uname)" in
Darwin)
n_jobs=$(sysctl -n hw.ncpu)
;;
+ MINGW*)
+ n_jobs=${NUMBER_OF_PROCESSORS:-1}
+ # TODO: Enable these crashed tests.
+ # https://issues.apache.org/jira/browse/ARROW-9072
+ exclude_tests="gandiva-internals-test"
+ exclude_tests="${exclude_tests}|gandiva-projector-test"
+ exclude_tests="${exclude_tests}|gandiva-utf8-test"
+ if [ "${MSYSTEM}" = "MINGW32" ]; then
+ exclude_tests="${exclude_tests}|gandiva-projector-test"
+ exclude_tests="${exclude_tests}|gandiva-binary-test"
+ exclude_tests="${exclude_tests}|gandiva-boolean-expr-test"
+ exclude_tests="${exclude_tests}|gandiva-date-time-test"
+ exclude_tests="${exclude_tests}|gandiva-decimal-single-test"
+ exclude_tests="${exclude_tests}|gandiva-decimal-test"
+ exclude_tests="${exclude_tests}|gandiva-filter-project-test"
+ exclude_tests="${exclude_tests}|gandiva-filter-test"
+ exclude_tests="${exclude_tests}|gandiva-hash-test"
+ exclude_tests="${exclude_tests}|gandiva-if-expr-test"
+ exclude_tests="${exclude_tests}|gandiva-in-expr-test"
+ exclude_tests="${exclude_tests}|gandiva-literal-test"
+ exclude_tests="${exclude_tests}|gandiva-null-validity-test"
+ fi
+ ctest_options+=(--exclude-regex "${exclude_tests}")
+ ;;
*)
n_jobs=${NPROC:-1}
;;
@@ -53,7 +78,8 @@ ctest \
--label-regex unittest \
--output-on-failure \
--parallel ${n_jobs} \
- --timeout 300
+ --timeout 300 \
+ "${ctest_options[@]}"
if [ "${ARROW_FUZZING}" == "ON" ]; then
# Fuzzing regression tests
diff --git a/ci/scripts/msys2_setup.sh b/ci/scripts/msys2_setup.sh
index e77b0f8038..9cd999b00e 100755
--- a/ci/scripts/msys2_setup.sh
+++ b/ci/scripts/msys2_setup.sh
@@ -27,12 +27,15 @@ case "${target}" in
packages+=(${MINGW_PACKAGE_PREFIX}-ccache)
packages+=(${MINGW_PACKAGE_PREFIX}-boost)
packages+=(${MINGW_PACKAGE_PREFIX}-brotli)
+ packages+=(${MINGW_PACKAGE_PREFIX}-clang)
packages+=(${MINGW_PACKAGE_PREFIX}-cmake)
packages+=(${MINGW_PACKAGE_PREFIX}-gcc)
packages+=(${MINGW_PACKAGE_PREFIX}-gflags)
packages+=(${MINGW_PACKAGE_PREFIX}-grpc)
packages+=(${MINGW_PACKAGE_PREFIX}-gtest)
+ packages+=(${MINGW_PACKAGE_PREFIX}-llvm)
packages+=(${MINGW_PACKAGE_PREFIX}-lz4)
+ packages+=(${MINGW_PACKAGE_PREFIX}-polly)
packages+=(${MINGW_PACKAGE_PREFIX}-protobuf)
packages+=(${MINGW_PACKAGE_PREFIX}-python3-numpy)
packages+=(${MINGW_PACKAGE_PREFIX}-rapidjson)