Skip to content

Commit

Permalink
HDDS-11941. Include fork timeout in integration check summary (#7582)
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai authored Dec 23, 2024
1 parent 16322fd commit 5b27f6d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion hadoop-ozone/dev-support/checks/_mvn_unit_report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ grep -A1 'Crashed tests' "${REPORT_DIR}/output.log" \
cat "${crashes}" >> "${tempfile}"

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

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

if [[ -s "${timeouts}" ]]; then
printf "# Fork Timeout\n\n" >> "$SUMMARY_FILE"
cat "${timeouts}" | sed 's/^/ * /' >> "$SUMMARY_FILE"
fi
rm -f "${timeouts}"

## generate counter
wc -l "$REPORT_DIR/summary.txt" | awk '{print $1}'> "$REPORT_DIR/failures"

0 comments on commit 5b27f6d

Please sign in to comment.