You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@auron.apache.org by "ShreyeshArangath (via GitHub)" <gi...@apache.org> on 2025/11/03 18:53:23 UTC

Re: [PR] [AURON #1442] Fix `BuildinfoInSparkUISuite.scala` failure due to missing `/tmp/spark-events/` directory [auron]

ShreyeshArangath commented on code in PR #1444:
URL: https://github.com/apache/auron/pull/1444#discussion_r2487529368


##########
spark-extension-shims-spark/src/test/scala/org/apache/spark/sql/auron/BuildinfoInSparkUISuite.scala:
##########
@@ -17,12 +17,18 @@
 package org.apache.spark.sql.auron
 
 import org.apache.spark.sql.execution.ui.AuronSQLAppStatusListener
+import org.apache.spark.util.Utils
 
 class BuildinfoInSparkUISuite
     extends org.apache.spark.sql.QueryTest
     with BuildInfoAuronSQLSuite
     with AuronSQLTestHelper {
 
+  override protected def beforeAll(): Unit = {
+    super.beforeAll()
+    val eventLogDir = Utils.createTempDir("/tmp/spark-events")

Review Comment:
   Taking a look again, I think the order here needs to be flipped. The directory is required for the spark context creation, otherwise the tests will fail. 
   ```suggestion
       val eventLogDir = Utils.createTempDir("/tmp/spark-events")
       super.beforeAll()
   ```



-- 
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: commits-unsubscribe@auron.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org