From 4954df417c7bedd399a75dc4d80431ea9bba417d Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 24 Jun 2020 14:07:39 +0200 Subject: [PATCH] gitlab-ci: append Fossilize stdout/stderr to a file to reduce spam Fossilize is really verbose and it's easy to reach the buffer limit in GitLab CI. Signed-off-by: Samuel Pitoiset Reviewed-by: Eric Anholt Part-of: --- .gitlab-ci/fossils/fossils.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci/fossils/fossils.sh b/.gitlab-ci/fossils/fossils.sh index d951a7e6431..60394f7b2dc 100755 --- a/.gitlab-ci/fossils/fossils.sh +++ b/.gitlab-ci/fossils/fossils.sh @@ -64,7 +64,12 @@ create_clean_git for fossil in $(query_fossils_yaml fossils) do fetch_fossil "$fossil" || exit $? - fossilize-replay --num-threads 4 $fossil || exit $? + fossilize-replay --num-threads 4 $fossil 1>&2 2> fossil_replay.txt + if [ $? != 0 ]; then + echo "Replay of $fossil failed" + grep "pipeline crashed or hung" fossil_replay.txt + exit 1 + fi rm $fossil done -- 2.30.2