random travis fails
Travis fails apparently randomly at the moment. Restarting a build of the same commit can yield a different result.
The problem I encountered momentarily on #1380 was a timeout. Maybe is that just when the Travis server is overloaded or something...
Examples (do not click rerun!):
- https://travis-ci.org/RIOT-OS/RIOT/builds/29400645 (test_struct_tm_utility, failed: avsextrem)
- https://travis-ci.org/RIOT-OS/RIOT/builds/29060141 (/home/travis/build.sh: line 267: 14590 Killed)
- https://travis-ci.org/RIOT-OS/RIOT/builds/28971556 (test_shell, failed: avsextrem)
- https://travis-ci.org/RIOT-OS/RIOT/builds/28480854 (timeout(?) in make -C ./tests/unittests test BOARD=qemu-i386)
Note that your last link (https://travis-ci.org/RIOT-OS/RIOT/builds/28480854) is exactly what I had in #1380.
I'll write a fix for the last error. boards/qemu-i386/dist/term.py expects qemu to start in less than 5 seconds, which is plenty on my machine, but maybe not on a free-of-charge CI server.
Another one: https://travis-ci.org/RIOT-OS/RIOT/builds/29608259 (unittests don't build for udoo and arduino-due)
Another one: https://travis-ci.org/RIOT-OS/RIOT/builds/30001485 (download.riot-os.org is unreachable [could not reproduce at home])
@Kijewski can you please supply information on how to get error messages from Travis? I think you mentioned it in one issue before, but I don't know which one.
In .travis.yml on the top of section script add make -C ./examples/my-app BOARD=my-board, so the output won't be stripped by the buildtest.
Did anyone except me notice that most Travis fails during build are exactly at this point:
success: arduino-due, arduino-mega2560, avsextrem, chronos, iot-lab_M3, mbed_lpc1768, msb-430, msb-430h, msba2, msbiot, native, pca10000, pca10005, pttu, qemu-i386, redbee-econotag, stm32f0discovery, stm32f3discovery, stm32f4discovery, telosb, udoo, wsn430-v1_3b, wsn430-v1_4, z1
Building application: libfixmath (12/49) .............../home/travis/build.sh: line 41: 15428 Killed ./dist/tools/compile_test/compile_test.py
What may cause the libfixmath test to be killed? I noticed that I could cause Travis to fail when the Arduino Mega2560 was build for libfixmath_unittests (consistently some kind of timeout like the compiler gets stuck in an infinite loop). I blacklisted the test for that board. Could it be that libfixmath is causing errors for at least some compiler versions (and since these errors already occured before the merge of my PR, it likely be at least one other compiler with similar problems)?
I think @authmillenon noticed this as well.
Yes.
In that case maybe we should blacklist all boards (or even better just whitelist known good ones, possibly step on a board by board base with some time to test if Travis breaks again) until we known which board/compiler is exactly causing this issue.
It is possible to activate output as well...
I think I did that in the Mega2560 and IIRC it just hung... But maybe it would be worth a try...
I just had errors when running ./dist/tools/compile_test/compile_test.py locally on an otherwise idle system without resource problems. The failing applications built fine when running make -C tests/failed_dir manually.
The application: libfixmath_unittests failed several times from within compile_test.py while not showing problems on manual builds. The error was always: failed .. retrying: airfy-beacon.
Correction: Manual builds also fail sometimes.
I could reproduce the reason for the build error:
while make -C tests/libfixmath_unittests BOARD=airfy-beacon clean all; do ; done
terminated with
...
"make" -C /home/lo/RIOT/boards/airfy-beacon
"make" -C /home/lo/RIOT/core
"make" -C /home/lo/RIOT/cpu/nrf51822
"make" -C /home/lo/RIOT/cpu/cortex-m0_common
"make" -C /home/lo/RIOT/cpu/nrf51822/periph
/home/lo/RIOT/cpu/nrf51822/periph/random.c:55:1: fatal error: opening dependency file /home/lo/RIOT/tests/libfixmath_unittests/bin/airfy-beacon/periph/random.d: No such file or directory
}
^
compilation terminated.
/home/lo/RIOT/Makefile.base:60: recipe for target '/home/lo/RIOT/tests/libfixmath_unittests/bin/airfy-beacon/periph/random.o' failed
make[3]: *** [/home/lo/RIOT/tests/libfixmath_unittests/bin/airfy-beacon/periph/random.o] Error 1
/home/lo/RIOT/Makefile.base:20: recipe for target 'ALL--/home/lo/RIOT/cpu/nrf51822/periph' failed
make[2]: *** [ALL--/home/lo/RIOT/cpu/nrf51822/periph] Error 2
/home/lo/RIOT/Makefile.base:20: recipe for target 'ALL--/home/lo/RIOT/cpu/nrf51822' failed
make[1]: *** [ALL--/home/lo/RIOT/cpu/nrf51822] Error 2
/home/lo/RIOT/tests/libfixmath_unittests/../../Makefile.include:156: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/home/lo/RIOT/tests/libfixmath_unittests'
Edit: Probably that was an error from a parallel buildtest.
It's annoying - that's all I have to say for now. ;)
While make buildtest-ing this just happened:
Building for avsextrem .. failed
/home/lo/RIOT/examples/hello-world/bin/avsextrem/arm7_common.a(bootloader.o): In function `bootloader':
/home/lo/RIOT/cpu/arm7_common/bootloader.c:171: undefined reference to `bl_init_clks'
collect2: error: ld returned 1 exit status
When running make buildtest again this did not occur.
Well, Travis is still a bitch, but behave rather deterministically recently.