Skip to content

Apache DataFusion SQL Query Engine

ARROW-9823: [CI][C++][MinGW] Enable S3

Sutou Kouhei0522c5715ad5
diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml
index 07cd4a9191..e9bd127f3b 100644
--- a/.github/workflows/cpp.yml
+++ b/.github/workflows/cpp.yml
@@ -319,6 +319,7 @@ jobs:
ARROW_JEMALLOC: OFF
ARROW_PARQUET: ON
ARROW_PYTHON: ON
+ ARROW_S3: ON
ARROW_USE_GLOG: OFF
ARROW_VERBOSE_THIRDPARTY_BUILD: OFF
ARROW_WITH_BROTLI: ON
diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml
index 783ca91cb8..d7c81bc762 100644
--- a/.github/workflows/ruby.yml
+++ b/.github/workflows/ruby.yml
@@ -174,6 +174,7 @@ jobs:
ARROW_JEMALLOC: OFF
ARROW_PARQUET: ON
ARROW_PYTHON: OFF
+ ARROW_S3: ON
ARROW_USE_GLOG: OFF
ARROW_WITH_BROTLI: ON
ARROW_WITH_BZ2: ON
diff --git a/ci/scripts/cpp_test.sh b/ci/scripts/cpp_test.sh
index d7e239b7c0..eb556cceff 100755
--- a/ci/scripts/cpp_test.sh
+++ b/ci/scripts/cpp_test.sh
@@ -62,6 +62,18 @@ case "$(uname)" in
exclude_tests="${exclude_tests}|gandiva-literal-test"
exclude_tests="${exclude_tests}|gandiva-null-validity-test"
fi
+ # TODO: Enable this when we can use aws-sdk-cpp as a shared
+ # library. The current aws-sdk-cpp MSYS2 package provides only
+ # static library. If we use aws-sdk-cpp as a static library, we
+ # can't use aws-sdk-cpp directly in
+ # cpp/src/arrow/filesystem/s3fs_test.c. Because aws-sdk-cpp uses
+ # static variables to keep process wide objects. If we aws-sdk-cpp
+ # as a static library, we have two aws-sdk-cpp libraries (in
+ # libarrow.dll and
+ # arrow-s3fs-test.exe). arrow::fs::EnsureS3Initialized() only
+ # initializes aws-sdk-cpp in libarrow.dll. It doesn't initialize
+ # aws-sdk-cpp in arrow-s3fs-test.exe.
+ exclude_tests="${exclude_tests}|arrow-s3fs-test"
ctest_options+=(--exclude-regex "${exclude_tests}")
;;
*)
diff --git a/ci/scripts/msys2_setup.sh b/ci/scripts/msys2_setup.sh
index a2845d1473..110b03bae6 100755
--- a/ci/scripts/msys2_setup.sh
+++ b/ci/scripts/msys2_setup.sh
@@ -25,6 +25,7 @@ packages=()
case "${target}" in
cpp|c_glib|ruby)
packages+=(make)
+ packages+=(${MINGW_PACKAGE_PREFIX}-aws-sdk-cpp)
packages+=(${MINGW_PACKAGE_PREFIX}-ccache)
packages+=(${MINGW_PACKAGE_PREFIX}-boost)
packages+=(${MINGW_PACKAGE_PREFIX}-brotli)