From c22b36b255c88207a785377a76736c35cb73350c Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Tue, 22 Aug 2023 14:21:26 -0700 Subject: [PATCH 1/2] Replace `travis_wait` Seems to have issues on partner queues (aarch64 & ppc64le). --- .travis.yml | 2 +- run_long.sh | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100755 run_long.sh diff --git a/.travis.yml b/.travis.yml index 15d8de6ee4..f4273ee8d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -140,7 +140,7 @@ install: script: - cd src - - travis_wait 45 python -m cibuildwheel --output-dir ../wheelhouse + - ../run_long.sh python -m cibuildwheel --output-dir ../wheelhouse - cd .. deploy: diff --git a/run_long.sh b/run_long.sh new file mode 100755 index 0000000000..24abdbe0cc --- /dev/null +++ b/run_long.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +# +# Inspired by +# https://github.com/travis-ci/travis-ci/issues/4190#issuecomment-169987525 +# + +# start command and send to background +"$@" & + +minutes=0 # passed [min] +limit=50 # limit [min] + +while kill -0 $! >/dev/null 2>&1 +do + echo -n -e " \b" # print something and backspace it + + if [ $minutes >= $limit ]; then + break; + fi + + minutes=$((minutes+1)) + + # next time in a minute + sleep 60 +done From f170de0ce56d04e55ba377bfb2a0be4b3b73e82a Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Tue, 22 Aug 2023 14:24:40 -0700 Subject: [PATCH 2/2] Simplify --- .travis.yml | 6 +++++- run_long.sh | 25 ------------------------- 2 files changed, 5 insertions(+), 26 deletions(-) delete mode 100755 run_long.sh diff --git a/.travis.yml b/.travis.yml index f4273ee8d8..d1bad8f8ea 100644 --- a/.travis.yml +++ b/.travis.yml @@ -139,9 +139,13 @@ install: # - cd .. script: + # output something every <10 minutes + - while sleep 9m; do echo "=====[ $SECONDS seconds still running ]====="; done & - cd src - - ../run_long.sh python -m cibuildwheel --output-dir ../wheelhouse + - python -m cibuildwheel --output-dir ../wheelhouse - cd .. + # terminate background sleep & print loop + - kill %1 deploy: - provider: script diff --git a/run_long.sh b/run_long.sh deleted file mode 100755 index 24abdbe0cc..0000000000 --- a/run_long.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash -# -# Inspired by -# https://github.com/travis-ci/travis-ci/issues/4190#issuecomment-169987525 -# - -# start command and send to background -"$@" & - -minutes=0 # passed [min] -limit=50 # limit [min] - -while kill -0 $! >/dev/null 2>&1 -do - echo -n -e " \b" # print something and backspace it - - if [ $minutes >= $limit ]; then - break; - fi - - minutes=$((minutes+1)) - - # next time in a minute - sleep 60 -done