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 bebd4c0afd HDDS-11004. Keep logs only for failed iterations in 
`flaky-test-check` (#6807)
bebd4c0afd is described below

commit bebd4c0afd7c554d0e69bdc0ce890519497052da
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Wed Jun 12 18:40:42 2024 +0200

    HDDS-11004. Keep logs only for failed iterations in `flaky-test-check` 
(#6807)
---
 .github/workflows/intermittent-test-check.yml | 4 ++--
 hadoop-ozone/dev-support/checks/junit.sh      | 4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/intermittent-test-check.yml 
b/.github/workflows/intermittent-test-check.yml
index 4c5da2bf86..f4020db950 100644
--- a/.github/workflows/intermittent-test-check.yml
+++ b/.github/workflows/intermittent-test-check.yml
@@ -209,12 +209,12 @@ jobs:
         if: ${{ !cancelled() }}
       - name: Archive build results
         uses: actions/upload-artifact@v4
-        if: always()
+        if: ${{ failure() }}
         with:
           name: result-${{ github.run_number }}-${{ github.run_id }}-split-${{ 
matrix.split }}
           path: target/unit
   count-failures:
-    if: ${{ always() }}
+    if: ${{ failure() }}
     needs: run-test
     runs-on: ubuntu-20.04
     steps:
diff --git a/hadoop-ozone/dev-support/checks/junit.sh 
b/hadoop-ozone/dev-support/checks/junit.sh
index 45ec12f00b..d4936834b2 100755
--- a/hadoop-ozone/dev-support/checks/junit.sh
+++ b/hadoop-ozone/dev-support/checks/junit.sh
@@ -83,6 +83,10 @@ for i in $(seq 1 ${ITERATIONS}); do
       FAIL_FAST=true
     fi
 
+    if [[ ${irc} == 0 ]]; then
+      rm -fr "${REPORT_DIR}"
+    fi
+
     REPORT_DIR="${original_report_dir}"
     echo "Iteration ${i} exit code: ${irc}" | tee -a "${REPORT_FILE}"
   fi


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

Reply via email to