Skip to content

Apache DataFusion SQL Query Engine

ARROW-5930: [Python] Make Flight server init phase explicit

Antoine Pitrou7e39bd1315be
diff --git a/.travis.yml b/.travis.yml
index 49f9ea8635..88ba1efb08 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -120,7 +120,7 @@ matrix:
# Only run Plasma tests with valgrind in one of the Python builds because
# they are slow
- export PLASMA_VALGRIND=1
- - $TRAVIS_BUILD_DIR/ci/travis_script_python.sh 3.6 || travis_terminate 1
+ - $TRAVIS_BUILD_DIR/ci/travis_script_python.sh 3.6
- $TRAVIS_BUILD_DIR/ci/travis_upload_cpp_coverage.sh
- name: "[OS X] C++ w/ XCode 9.3"
compiler: clang
diff --git a/ci/travis/after-failure.sh b/ci/travis/after-failure.sh
index 35b798fb03..9e77ec3eee 100755
--- a/ci/travis/after-failure.sh
+++ b/ci/travis/after-failure.sh
@@ -26,9 +26,10 @@ if [[ "${TRAVIS_OS_NAME}" = "osx" ]]; then
ls -la ~/Library/Logs/DiagnosticReports/
cat ~/Library/Logs/DiagnosticReports/*.crash
else
- COREFILE=$(find . -maxdepth 2 -name "core*" | head -n 1)
+ ls -fd1 /tmp/core.*
+ COREFILE=$(ls -fd1 /tmp/core.* | head -n 1)
if [[ -f "$COREFILE" ]]; then
- gdb -c "$COREFILE" example -ex "thread apply all bt" -ex "set pagination 0" -batch
+ gdb -c "$COREFILE" $TRAVIS_BUILD_DIR/current-exe -ex "thread apply all bt" -ex "set pagination 0" -batch
fi
fi
diff --git a/ci/travis/before-install.sh b/ci/travis/before-install.sh
index 02dc971041..fd97b46934 100755
--- a/ci/travis/before-install.sh
+++ b/ci/travis/before-install.sh
@@ -20,10 +20,13 @@ set -ex
eval "${MATRIX_EVAL}"
-# Enables core files
+# Enable core files
ulimit -c unlimited -S
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
+ # Remove apport's core_pattern
+ sudo bash -c "echo '/tmp/core.%p.%E' > /proc/sys/kernel/core_pattern"
+
echo -e 'Acquire::Retries 10; Acquire::http::Timeout \"20\";' | \
sudo tee /etc/apt/apt.conf.d/99-travis-retry
sudo apt-get update -qq
diff --git a/ci/travis_script_python.sh b/ci/travis_script_python.sh
index 8f507298fd..202c24f0a5 100755
--- a/ci/travis_script_python.sh
+++ b/ci/travis_script_python.sh
@@ -192,11 +192,14 @@ if [ $TRAVIS_OS_NAME == "linux" ]; then
sudo bash -c "echo 2048 > /proc/sys/vm/nr_hugepages"
fi
+# For core dump analysis
+ln -sf `which python` $TRAVIS_BUILD_DIR/current-exe
+
# Need to run tests from the source tree for Cython coverage and conftest.py
if [ "$ARROW_TRAVIS_COVERAGE" == "1" ]; then
# Output Python coverage data in a persistent place
export COVERAGE_FILE=$ARROW_PYTHON_COVERAGE_FILE
- coverage run --append -m pytest $PYARROW_PYTEST_FLAGS pyarrow/tests
+ python -m coverage run --append -m pytest $PYARROW_PYTEST_FLAGS pyarrow/tests
else
python -m pytest $PYARROW_PYTEST_FLAGS pyarrow/tests
fi