From 8c3766526200b595a3da706d234ff4e0d230bcdc Mon Sep 17 00:00:00 2001 From: Janice Collins Date: Wed, 15 Apr 2020 10:12:17 -0700 Subject: [PATCH 1/3] Remove the core dump support --- .travis.yml | 3 --- tool/after_failure_travis.sh | 29 ----------------------------- tool/install_travis.sh | 2 -- 3 files changed, 34 deletions(-) delete mode 100755 tool/after_failure_travis.sh diff --git a/.travis.yml b/.travis.yml index 5cad7574d6..6449b3cb63 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,9 +27,6 @@ before_script: - ulimit -c unlimited -S - pub get -after_failure: -- ./tool/after_failure_travis.sh - before_install: # Disable non-blocking I/O for stdout, stderr https://github.com/travis-ci/travis-ci/issues/4704#issuecomment-348435959 - python -c 'import os,sys,fcntl; flags = fcntl.fcntl(sys.stdout, fcntl.F_GETFL); fcntl.fcntl(sys.stdout, fcntl.F_SETFL, flags&~os.O_NONBLOCK);' diff --git a/tool/after_failure_travis.sh b/tool/after_failure_travis.sh deleted file mode 100755 index 67f6681360..0000000000 --- a/tool/after_failure_travis.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -# Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file -# for details. All rights reserved. Use of this source code is governed by a -# BSD-style license that can be found in the LICENSE file. - -# Echo commands as they execute. -set -x - -# Display backtrace for a single core. -function do_core() { - local corefile="$1" - - echo "Processing core file: $corefile" - gdb -c "$corefile" -ex "thread apply all bt" -ex "set pagination 0" -batch -} - -# Find core files in likely locations for dartdoc. -if uname | grep -q Linux ; then - COREFILES=$(find . -type f -name "core*" 2>/dev/null | egrep -v '(.yaml|.dart|.expect|.gni)$') # find core files - COREFILES_TMP="$(cd /tmp ; find . -type f -name "core*" 2>/dev/null | egrep -v '(.yaml|.dart|.expect|.gni)$')" - for f in ${COREFILES} ; do { - do_core "$f" - } ; done - for f in ${COREFILES_TMP} ; do { - do_core "/tmp/$f" - } ; done -fi - diff --git a/tool/install_travis.sh b/tool/install_travis.sh index 91ff42c2e7..c2aa2462d0 100755 --- a/tool/install_travis.sh +++ b/tool/install_travis.sh @@ -8,8 +8,6 @@ set -x if uname | grep -q Linux ; then - sudo apt-get update - sudo apt-get install -y gdb sudo gem install coveralls-lcov coveralls-lcov --help fi From ab6350dfe405c651e97add722b8ce79cb6e82b6f Mon Sep 17 00:00:00 2001 From: Janice Collins Date: Wed, 15 Apr 2020 10:14:45 -0700 Subject: [PATCH 2/3] remove core settings --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 6449b3cb63..7e4339b597 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,7 +24,6 @@ install: - ./tool/install_travis.sh before_script: -- ulimit -c unlimited -S - pub get before_install: From 64640aa2ee754ca1327ceed413100527fc611e8c Mon Sep 17 00:00:00 2001 From: Janice Collins Date: Thu, 16 Apr 2020 10:58:49 -0700 Subject: [PATCH 3/3] Extend timeout for the categories test --- test/model_special_cases_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/model_special_cases_test.dart b/test/model_special_cases_test.dart index 3e01d1408e..39aa012b5d 100644 --- a/test/model_special_cases_test.dart +++ b/test/model_special_cases_test.dart @@ -290,7 +290,7 @@ void main() { List packageCategories = packageGraphSmall.localPackages.first.categories; expect(packageCategories.length, equals(0)); - }); + }, timeout: Timeout.factor(2)); }); group('Package', () {