adoroszlai commented on code in PR #11515:
URL: https://github.com/apache/ozone/pull/11515#discussion_r4269436347


##########
hadoop-ozone/dev-support/checks/junit.sh:
##########
@@ -55,10 +55,22 @@ if [[ -f 
hadoop-ozone/dist/src/shell/ozone/ozone-functions.sh ]]; then
   ozone_java_setup
 fi
 
-mvn ${MAVEN_OPTIONS} clean
+CLEAN="clean"
 
-if [[ ${ITERATIONS} -gt 1 ]] && [[ ${OZONE_REPO_CACHED} == "false" ]]; then
-  mvn ${MAVEN_OPTIONS} -DskipTests install
+if [[ ${ITERATIONS} -gt 1 ]]; then
+  CHECK=flaky
+
+  if [[ ${OZONE_REPO_CACHED} == "false" ]]; then
+    # Need to clean and build for local run.
+    # In flaky-test-check the jars come from separate workflow job.
+    mvn ${MAVEN_OPTIONS} -DskipTests "$@" clean install
+    CLEAN=""
+  fi
+fi
+
+if [[ ${CHECK} == "flaky" ]]; then
+  # repeated runs must execute the test, not load it from the build cache
+  MAVEN_OPTIONS="${MAVEN_OPTIONS} -Ddevelocity.cache.remote.enabled=false"

Review Comment:
   Good point, this is an existing problem.



-- 
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