RIOT icon indicating copy to clipboard operation
RIOT copied to clipboard

random travis fails

Open LudwigKnuepfer opened this issue 12 years ago • 19 comments

Travis fails apparently randomly at the moment. Restarting a build of the same commit can yield a different result.

LudwigKnuepfer avatar Jul 07 '14 15:07 LudwigKnuepfer

The problem I encountered momentarily on #1380 was a timeout. Maybe is that just when the Travis server is overloaded or something...

rousselk avatar Jul 08 '14 10:07 rousselk

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)

Kijewski avatar Jul 08 '14 10:07 Kijewski

Note that your last link (https://travis-ci.org/RIOT-OS/RIOT/builds/28480854) is exactly what I had in #1380.

rousselk avatar Jul 08 '14 10:07 rousselk

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.

Kijewski avatar Jul 08 '14 10:07 Kijewski

Another one: https://travis-ci.org/RIOT-OS/RIOT/builds/29608259 (unittests don't build for udoo and arduino-due)

Kijewski avatar Jul 10 '14 15:07 Kijewski

Another one: https://travis-ci.org/RIOT-OS/RIOT/builds/30001485 (download.riot-os.org is unreachable [could not reproduce at home])

Kijewski avatar Jul 15 '14 23:07 Kijewski

@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.

LudwigKnuepfer avatar Aug 07 '14 14:08 LudwigKnuepfer

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.

Kijewski avatar Aug 07 '14 15:08 Kijewski

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)?

N8Fear avatar Sep 09 '14 13:09 N8Fear

I think @authmillenon noticed this as well.

LudwigKnuepfer avatar Sep 09 '14 13:09 LudwigKnuepfer

Yes.

miri64 avatar Sep 09 '14 14:09 miri64

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.

N8Fear avatar Sep 09 '14 14:09 N8Fear

It is possible to activate output as well...

LudwigKnuepfer avatar Sep 09 '14 15:09 LudwigKnuepfer

I think I did that in the Mega2560 and IIRC it just hung... But maybe it would be worth a try...

N8Fear avatar Sep 09 '14 15:09 N8Fear

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.

LudwigKnuepfer avatar Dec 24 '14 10:12 LudwigKnuepfer

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.

LudwigKnuepfer avatar Dec 24 '14 11:12 LudwigKnuepfer

It's annoying - that's all I have to say for now. ;)

OlegHahm avatar Jan 14 '15 10:01 OlegHahm

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.

LudwigKnuepfer avatar Mar 12 '15 20:03 LudwigKnuepfer

Well, Travis is still a bitch, but behave rather deterministically recently.

OlegHahm avatar Mar 08 '16 20:03 OlegHahm