Skip to content

Commit 381c491

Browse files
committed
check-build-and-verify.sh: encode robot framework report and print to the console.
It should help us to debug test flakes like #540 and #542
1 parent 87beff6 commit 381c491

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/scripts/ci/check-build-and-verify.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ if [ "$SPRING_PROFILES_ACTIVE" = 'travis' -a "${TRAVIS_PULL_REQUEST:-}" != 'fals
112112
danger || DANGER_FAIL=yes
113113
fi
114114

115+
# In order to be able debug robot framework test flakes we need to have a report.
116+
# Just encode it to a binary form and dump to console.
117+
if fgrep -qs 'status="FAIL"' target/robotframework-reports/output.xml; then
118+
echo "===== REPORT START ====="
119+
base64 target/robotframework-reports/log.html
120+
echo "===== REPORT END ====="
121+
fi
122+
115123
rm -f cs.log pmd.log codenarc.log license.log pom.log bootlint.log rflint.log jasmine.log validator.log enforcer.log test.log findbugs.log verify-raw.log verify.log
116124

117125
if [ -n "$CS_FAIL$PMD_FAIL$CODENARC_FAIL$LICENSE_FAIL$POM_FAIL$BOOTLINT_FAIL$RFLINT_FAIL$JASMINE_FAIL$HTML_FAIL$ENFORCER_FAIL$TEST_FAIL$FINDBUGS_FAIL$VERIFY_FAIL$DANGER_FAIL" ]; then

0 commit comments

Comments
 (0)