xumanbu commented on code in PR #53845:
URL: https://github.com/apache/spark/pull/53845#discussion_r4022122925
##########
core/src/test/scala/org/apache/spark/deploy/SparkSubmitSuite.scala:
##########
@@ -605,6 +605,109 @@ class SparkSubmitSuite
}
}
+ test("SPARK-55077: Avoid archives download if scheme matches " +
+ "spark.kubernetes.archives.avoidDownloadSchemes " +
+ "in k8s client mode & driver runs inside a POD") {
+ val hadoopConf = new Configuration()
+ updateConfWithFakeS3Fs(hadoopConf)
+ withTempDir { tmpDir =>
+ val notToDownloadArchive = File.createTempFile("NotToDownloadArchive",
".zip", tmpDir)
+ val remoteArchiveFile = s"s3a://${notToDownloadArchive.getAbsolutePath}"
+ val tmpJar = File.createTempFile("TestUDTF", ".jar", tmpDir)
Review Comment:
Done.
Dropped `tmpJar` - `--files` and `--py-files` already assert that the other
resources are
still downloaded to the working directory - and extracted
`prepareArchiveSubmitEnvironment` function.
--
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]