Apache DataFusion SQL Query Engine
ARROW-5930: [Python] Make Flight server init phase explicit
Antoine Pitrou7e39bd1315be
diff --git a/.travis.yml b/.travis.ymlindex 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: clangdiff --git a/ci/travis/after-failure.sh b/ci/travis/after-failure.shindex 35b798fb03..9e77ec3eee 100755--- a/ci/travis/after-failure.sh+++ b/ci/travis/after-failure.sh@@ -26,9 +26,10 @@ if [[ "${TRAVIS_OS_NAME}" = "osx" ]]; thenls -la ~/Library/Logs/DiagnosticReports/cat ~/Library/Logs/DiagnosticReports/*.crashelse- 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" -batchfifidiff --git a/ci/travis/before-install.sh b/ci/travis/before-install.shindex 02dc971041..fd97b46934 100755--- a/ci/travis/before-install.sh+++ b/ci/travis/before-install.sh@@ -20,10 +20,13 @@ set -exeval "${MATRIX_EVAL}"-# Enables core files+# Enable core filesulimit -c unlimited -Sif [[ "${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-retrysudo apt-get update -qqdiff --git a/ci/travis_script_python.sh b/ci/travis_script_python.shindex 8f507298fd..202c24f0a5 100755--- a/ci/travis_script_python.sh+++ b/ci/travis_script_python.sh@@ -192,11 +192,14 @@ if [ $TRAVIS_OS_NAME == "linux" ]; thensudo 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.pyif [ "$ARROW_TRAVIS_COVERAGE" == "1" ]; then# Output Python coverage data in a persistent placeexport 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/testselsepython -m pytest $PYARROW_PYTEST_FLAGS pyarrow/testsfi