Skip to content

Commit 5b27f6d

Browse files
authored
HDDS-11941. Include fork timeout in integration check summary (apache#7582)
1 parent 16322fd commit 5b27f6d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

hadoop-ozone/dev-support/checks/_mvn_unit_report.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ grep -A1 'Crashed tests' "${REPORT_DIR}/output.log" \
6363
cat "${crashes}" >> "${tempfile}"
6464

6565
# Check for tests that started but were not finished
66+
timeouts=${REPORT_DIR}/timeouts.txt
6667
if grep -q 'There was a timeout.*in the fork' "${REPORT_DIR}/output.log"; then
6768
diff -uw \
6869
<(grep -e 'Running org' "${REPORT_DIR}/output.log" \
@@ -75,7 +76,8 @@ if grep -q 'There was a timeout.*in the fork' "${REPORT_DIR}/output.log"; then
7576
| sort -u -k2) \
7677
| grep '^- ' \
7778
| awk '{ print $3 }' \
78-
>> "${tempfile}"
79+
> "${timeouts}"
80+
cat "${timeouts}" >> "${tempfile}"
7981
fi
8082

8183
sort -u "${tempfile}" | tee "${REPORT_DIR}/summary.txt"
@@ -118,5 +120,11 @@ if [[ -s "${crashes}" ]]; then
118120
fi
119121
rm -f "${crashes}"
120122

123+
if [[ -s "${timeouts}" ]]; then
124+
printf "# Fork Timeout\n\n" >> "$SUMMARY_FILE"
125+
cat "${timeouts}" | sed 's/^/ * /' >> "$SUMMARY_FILE"
126+
fi
127+
rm -f "${timeouts}"
128+
121129
## generate counter
122130
wc -l "$REPORT_DIR/summary.txt" | awk '{print $1}'> "$REPORT_DIR/failures"

0 commit comments

Comments
 (0)