diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2020-02-14 13:45:57 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2020-02-18 14:12:27 +0000 |
commit | ba03ff8ab02f3754c40c2eefff21bdd5b3fee1bc (patch) | |
tree | f1cd8b7b94dcfdcfc552ecc7bed38c127ea2445b /round-robin.sh | |
parent | b8d32cdee5ac1f71f84c5abf86708ad5cca8fbd3 (diff) |
Round-robin scripts: improve regression email contents
When a regression occurs after the build phase, don't include harmless
errors from the the build stage, and provide info from the test phase.
Change-Id: I75ce76e81ecbda4492bb49e7d765c25cac599f12
Diffstat (limited to 'round-robin.sh')
-rw-r--r-- | round-robin.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/round-robin.sh b/round-robin.sh index c468d6ac..f91109bf 100644 --- a/round-robin.sh +++ b/round-robin.sh @@ -480,6 +480,17 @@ no_build_regression_p () build_result_ref=$(tail -n1 $ref_artifacts/results) build_result_new=$(tail -n1 $new_artifacts/results) + # In log scan for errors below + # - sed -e 's/"[^"]*"//g' -- removes quoted "error: app diagnostics" strings + # - " error:" detects compiler errors from GCC and Clang (including GCC ICEs) + # - "^ERROR:" detects linker errors + # - ": undefined reference" detects missing symbols during linking + # - "] Error " detects GNU make errors + cat > $new_artifacts/regressions.txt <<EOF +First few build errors in logs: +$(cat $new_artifacts/console.log | sed -e 's/"[^"]*"//g' | grep " error:\|^ERROR:\|: undefined reference\|\] Error " | head) +EOF + if [ $build_result_new -lt $build_result_ref ]; then return 1 fi |