gitlab-ci: append Fossilize stdout/stderr to a file to reduce spam
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 24 Jun 2020 12:07:39 +0000 (14:07 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 26 Jun 2020 06:45:23 +0000 (06:45 +0000)
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>

.gitlab-ci/fossils/fossils.sh

index d951a7e6431c558a4c2add00d062d1ea0a8dd375..60394f7b2dcfa1f1416c4019e26f37dfed274128 100755 (executable)
@@ -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