bowenliang123 commented on code in PR #41546:
URL: https://github.com/apache/spark/pull/41546#discussion_r1226096593


##########
.github/workflows/build_and_test.yml:
##########
@@ -724,8 +725,9 @@ jobs:
         export MAVEN_OPTS="-Xss64m -Xmx2g -XX:ReservedCodeCacheSize=1g 
-Dorg.slf4j.simpleLogger.defaultLogLevel=WARN"
         export MAVEN_CLI_OPTS="--no-transfer-progress"
         export JAVA_VERSION=${{ matrix.java }}
+        export SKIP_ENFORCER=$( [ "$JAVA_VERSION" = "8" ] && echo true || echo 
false )
         # It uses Maven's 'install' intentionally, see 
https://github.com/apache/spark/pull/26414.
-        ./build/mvn $MAVEN_CLI_OPTS -DskipTests -Pyarn -Pmesos -Pkubernetes 
-Pvolcano -Phive -Phive-thriftserver -Phadoop-cloud 
-Djava.version=${JAVA_VERSION/-ea} install
+        ./build/mvn $MAVEN_CLI_OPTS -DskipTests -Pyarn -Pmesos -Pkubernetes 
-Pvolcano -Phive -Phive-thriftserver -Phadoop-cloud 
-Djava.version=${JAVA_VERSION/-ea} -Denforcer.skip=${SKIP_ENFORCER} install

Review Comment:
   I thought you asked for a build on Java 8 to see what happens. Skipping 
enforcer rule for Java 8 to check whether it causes runtime exceptions when 
loading threeten jar claseses.



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