Skip to content

Commit cba1277

Browse files
committed
WIP: GH-43057: [C++] Debug sporadic CI crash
1 parent 170c599 commit cba1277

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

ci/docker/ubuntu-20.04-cpp.dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,20 +148,20 @@ RUN /arrow/ci/scripts/install_sccache.sh unknown-linux-musl /usr/local/bin
148148
ENV absl_SOURCE=BUNDLED \
149149
ARROW_ACERO=ON \
150150
ARROW_AZURE=OFF \
151-
ARROW_BUILD_STATIC=ON \
151+
ARROW_BUILD_STATIC=OFF \
152152
ARROW_BUILD_TESTS=ON \
153153
ARROW_DEPENDENCY_SOURCE=SYSTEM \
154154
ARROW_DATASET=ON \
155155
ARROW_FLIGHT=OFF \
156-
ARROW_GANDIVA=ON \
157-
ARROW_GCS=ON \
156+
ARROW_GANDIVA=OFF \
157+
ARROW_GCS=OFF \
158158
ARROW_HDFS=ON \
159159
ARROW_HOME=/usr/local \
160160
ARROW_INSTALL_NAME_RPATH=OFF \
161-
ARROW_ORC=ON \
161+
ARROW_ORC=OFF \
162162
ARROW_PARQUET=ON \
163-
ARROW_S3=ON \
164-
ARROW_SUBSTRAIT=ON \
163+
ARROW_S3=OFF \
164+
ARROW_SUBSTRAIT=OFF \
165165
ARROW_USE_ASAN=OFF \
166166
ARROW_USE_CCACHE=ON \
167167
ARROW_USE_LLD=ON \

ci/scripts/cpp_test.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,17 @@ pushd ${build_dir}
8989
if [ -z "${PYTHON}" ] && ! which python > /dev/null 2>&1; then
9090
export PYTHON="${PYTHON:-python3}"
9191
fi
92+
93+
ulimit -c unlimited
94+
9295
ctest \
9396
--label-regex unittest \
9497
--output-on-failure \
9598
--parallel ${n_jobs} \
9699
--repeat until-pass:3 \
97100
--timeout ${ARROW_CTEST_TIMEOUT:-300} \
98101
"${ctest_options[@]}" \
99-
"$@"
102+
"$@" || sleep 3600
100103

101104
if [ "${ARROW_BUILD_EXAMPLES}" == "ON" ]; then
102105
examples=$(find ${binary_output_dir} -executable -name "*example")

dev/tasks/docker-tests/github.linux.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,12 @@ jobs:
2727
{{ macros.github_set_env(env) }}
2828
timeout-minutes: {{ timeout|default(60) }}
2929
steps:
30+
- name: Setup tmate session
31+
uses: mxschmitt/action-tmate@v3
32+
with:
33+
detached: true
34+
3035
{{ macros.github_checkout_arrow(fetch_depth=fetch_depth|default(1))|indent }}
31-
{{ macros.github_free_space()|indent }}
3236
{{ macros.github_install_archery()|indent }}
3337

3438
- name: Execute Docker Build
@@ -38,6 +42,8 @@ jobs:
3842
run: |
3943
# GH-40558: reduce ASLR to avoid TSAN crashing
4044
sudo sysctl -w vm.mmap_rnd_bits=28
45+
sudo sysctl -w kernel.core_pattern="/tmp/core.%e.%p"
46+
ulimit -c unlimited
4147
archery docker run \
4248
-e SETUPTOOLS_SCM_PRETEND_VERSION="{{ arrow.no_rc_version }}" \
4349
{{ flags|default("") }} \

0 commit comments

Comments
 (0)