Skip to content

Commit 68ebe65

Browse files
authored
Merge pull request #521 from s22s/feature/test-max-failures
Set spark master with spark.task.maxFailures in test
2 parents 19191ba + 8f9e746 commit 68ebe65

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

core/src/test/scala/org/locationtech/rasterframes/TestEnvironment.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ trait TestEnvironment extends FunSpec
5050
outputDir
5151
}
5252

53-
def sparkMaster: String = "local[*]"
53+
// allow 2 retries, should stabilize CI builds. https://spark.apache.org/docs/2.4.7/submitting-applications.html#master-urls
54+
def sparkMaster: String = "local[*, 2]"
5455

5556
def additionalConf = new SparkConf(false)
5657

pyrasterframes/src/main/python/tests/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def pdir(curr):
6161

6262
def spark_test_session():
6363
spark = create_rf_spark_session(**{
64+
'spark.master': 'local[*, 2]',
6465
'spark.ui.enabled': 'false',
6566
'spark.app.name': app_name
6667
})

0 commit comments

Comments
 (0)