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 <samuel.pitoiset@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5627>
This commit is contained in:
Samuel Pitoiset 2020-06-24 14:07:39 +02:00 committed by Marge Bot
parent b24b415013
commit 4954df417c
1 changed files with 6 additions and 1 deletions

View File

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