peterxcli commented on code in PR #8553:
URL: https://github.com/apache/ozone/pull/8553#discussion_r2123449869


##########
hadoop-ozone/dev-support/checks/junit.sh:
##########
@@ -68,8 +68,13 @@ for i in $(seq 1 ${ITERATIONS}); do
     mkdir -p "${REPORT_DIR}"
   fi
 
-  mvn ${MAVEN_OPTIONS} 
-Dmaven-surefire-plugin.argLineAccessArgs="${OZONE_MODULE_ACCESS_ARGS}" "$@" 
verify \
-    | tee "${REPORT_DIR}/output.log"
+  if [[ $i -eq 1 ]]; then
+    mvn ${MAVEN_OPTIONS} 
-Dmaven-surefire-plugin.argLineAccessArgs="${OZONE_MODULE_ACCESS_ARGS}" "$@" 
verify \
+      | tee "${REPORT_DIR}/output.log"
+  else
+    mvn ${MAVEN_OPTIONS} 
-Dmaven-surefire-plugin.argLineAccessArgs="${OZONE_MODULE_ACCESS_ARGS}" "$@" 
clean verify \
+      | tee "${REPORT_DIR}/output.log"
+  fi

Review Comment:
   I think we need to replace target with a different name. If the module isn't 
specified, the target directory will get deleted.
   
   I noticed this issue in the following workflow run:
   
https://github.com/peterxcli/ozone/actions/runs/15413751760/job/43371703642#step:6:20



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to