You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2018/12/07 05:45:21 UTC
[arrow] branch master updated: ARROW-3948: [GLib][CI] Set timeout
to Homebrew
This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new 072df89 ARROW-3948: [GLib][CI] Set timeout to Homebrew
072df89 is described below
commit 072df8993ba06b56412a357194a73cc7c7d2ef11
Author: Kouhei Sutou <ko...@clear-code.com>
AuthorDate: Fri Dec 7 14:45:10 2018 +0900
ARROW-3948: [GLib][CI] Set timeout to Homebrew
We can't get Homebrew log when Travis detects hanged Homebrew process and kill the CI job.
We need to detect hanged Homebrew process and kill the Homebrew process to get Homebrew log.
Author: Kouhei Sutou <ko...@clear-code.com>
Closes #3115 from kou/glib-ci-timeout-homebrew and squashes the following commits:
fe23b049 <Kouhei Sutou> Set timeout to Homebrew
---
.travis.yml | 4 ----
ci/travis_install_osx.sh | 7 ++++++-
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/.travis.yml b/.travis.yml
index 25a148f..b877e20 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -332,10 +332,6 @@ after_failure:
fi
ls -la ~/Library/Logs/DiagnosticReports/
cat ~/Library/Logs/DiagnosticReports/*.crash
- if [[ -f brew.log ]]; then
- echo "Homebrew log"
- cat brew.log
- fi
else
COREFILE=$(find . -maxdepth 2 -name "core*" | head -n 1)
if [[ -f "$COREFILE" ]]; then
diff --git a/ci/travis_install_osx.sh b/ci/travis_install_osx.sh
index 859d854..47d6a63 100755
--- a/ci/travis_install_osx.sh
+++ b/ci/travis_install_osx.sh
@@ -17,13 +17,18 @@
# specific language governing permissions and limitations
# under the License.
+set -x
set -e
if [ "$ARROW_CI_RUBY_AFFECTED" = "1" ]; then
brew_log_path=brew.log
function run_brew() {
echo brew "$@" >> ${brew_log_path}
- brew "$@" >> ${brew_log_path} 2>&1
+ if ! gtimeout --signal=KILL 5m brew "$@" >> ${brew_log_path} 2>&1; then
+ cat ${brew_log_path}
+ rm ${brew_log_path}
+ false
+ fi
}
run_brew update
run_brew upgrade python