]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
test/travis_before_linux.sh: add a simple bash retry to svn export
authorLuca Toscano <elukey@apache.org>
Sun, 22 Dec 2019 10:30:59 +0000 (10:30 +0000)
committerLuca Toscano <elukey@apache.org>
Sun, 22 Dec 2019 10:30:59 +0000 (10:30 +0000)
Sometimes a build is killed by Travis due to svn export taking
a long time to complete (> 10m). This change should be a test to see
if a simple workaround reduces the noise to the dev@ mailing list.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1871907 13f79535-47bb-0310-9956-ffa450edef68

test/travis_before_linux.sh

index 94287947c13e8f43d5f42e5521729393f88bb798..c31d207f7a6292c25e4466b84b65a9f081d191d9 100755 (executable)
@@ -1,6 +1,13 @@
 #!/bin/bash -ex
 if ! test -v SKIP_TESTING; then
-   svn export -q https://svn.apache.org/repos/asf/httpd/test/framework/trunk test/perl-framework
+   # Use a rudimental retry workflow as workaround to svn export hanging for minutes.
+   # Travis automatically kills a build if one step takes more than 10 minutes without
+   # reporting any progress.
+   for i in {1..5} 
+   do
+       timeout 60 svn export -q https://svn.apache.org/repos/asf/httpd/test/framework/trunk test/perl-framework
+       if [ $? -eq 0 ]; then break; else sleep 120; fi
+   done
 fi
 
 function install_apx() {