From f8596409970f2ae78f1289a62851a1aa23184489 Mon Sep 17 00:00:00 2001 From: Satoru Takeuchi Date: Wed, 7 Sep 2022 10:16:21 +0000 Subject: [PATCH] ci: improve the log on intermittent build failure The build process sometimes fails with intermittent problems. Some of them are known problems and then we retry build process. However, there still are unknown problems. In this case, it's hard to find the reason because the build process exits immediately. ref. https://github.com/rook/rook/runs/8225144002?check_suite_focus=true#step:3:926 ``` + case "$o" in + exit 1 Error: Process completed with exit code 1. ``` To make debugging easier, let's print the output of `make`. This log won't be too long since `make` prints most messages to stderr. Signed-off-by: Satoru Takeuchi (cherry picked from commit 47f7aefa20a5bdf056c0ad3c3ba55ac6be2b8182) --- tests/scripts/github-action-helper.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/scripts/github-action-helper.sh b/tests/scripts/github-action-helper.sh index f9bddacf0..66a7b10cf 100755 --- a/tests/scripts/github-action-helper.sh +++ b/tests/scripts/github-action-helper.sh @@ -143,6 +143,8 @@ function build_rook() { ;; *) # valid failure + echo "failed with the following log:" + echo "$o" exit 1 ;; esac