This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 5b27f6d938 HDDS-11941. Include fork timeout in integration check 
summary (#7582)
5b27f6d938 is described below

commit 5b27f6d938c67028f105767f104f65efb9f5637d
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Mon Dec 23 09:34:45 2024 +0100

    HDDS-11941. Include fork timeout in integration check summary (#7582)
---
 hadoop-ozone/dev-support/checks/_mvn_unit_report.sh | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/hadoop-ozone/dev-support/checks/_mvn_unit_report.sh 
b/hadoop-ozone/dev-support/checks/_mvn_unit_report.sh
index 0249c7a498..8b7ed939b2 100755
--- a/hadoop-ozone/dev-support/checks/_mvn_unit_report.sh
+++ b/hadoop-ozone/dev-support/checks/_mvn_unit_report.sh
@@ -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" \
@@ -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"
@@ -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"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to