On 01/30/17 01:03, Bill Fischofer wrote: > On Fri, Jan 27, 2017 at 1:21 PM, Maxim Uvarov <maxim.uva...@linaro.org> wrote: >> some time curl fails to download cunit from sf.net or it's >> mirrors. Try 10 times with 1 second delay. >> >> Signed-off-by: Maxim Uvarov <maxim.uva...@linaro.org> >> --- >> .travis.yml | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/.travis.yml b/.travis.yml >> index 03e61b18..363c1b3f 100644 >> --- a/.travis.yml >> +++ b/.travis.yml >> @@ -25,7 +25,7 @@ before_install: >> >> # Install cunit for the validation tests because distro version is >> too old and fails C99 compile >> - export CUNIT_VERSION=2.1-3 >> - - curl -sSOL >> http://sourceforge.net/projects/cunit/files/CUnit/${CUNIT_VERSION}/CUnit-${CUNIT_VERSION}.tar.bz2 >> + - for _ in {1..10}; do >> http://souirceforge.net/projects/cunit/files/CUnit/${CUNIT_VERSION}/CUnit-${CUNIT_VERSION}.tar.bz2 >> && break; sleep 1; done > > If we're going to make this more robust, what happens if the 10 > attempts all fail? Do we just run off the rails as before or make an > attempt to quit with some sort of useful debug msg? >
In that case CI will fail. It is clear from the log that it failed due to missing CUnit. Actually that is strange why it happens. I see the OE also downloads it from sourceforge: http://cgit.openembedded.org/meta-openembedded/tree/meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb?h=master and as back up there is mirror, which is also source forge: http://git.yoctoproject.org/cgit.cgi/poky/plain/meta/conf/bitbake.conf?h=blinky But there is no any reason to have mirror because curl has option to follow redirections on the mirrors. I think that something in mirror switching algorithm might be wrong. If I'm understand right main site redirects to mirror which on access is down. Curl just fails with empty response. On next try mirror list has to be already updated and alive mirror will be selected. Log message should be like this: https://s3.amazonaws.com/archive.travis-ci.org/jobs/196256512/log.txt If that later will not help we can put CUnit sources to our github. Maxim. >> - tar -jxf *.bz2 >> - cd CUnit* >> - ./bootstrap >> -- >> 2.11.0.295.gd7dffce >>