Skip to content

Commit 8f9e746

Browse files
committed
Set spark master with spark.task.maxFailures in test
This should reduce spurious failures on CI builds Signed-off-by: Jason T. Brown <[email protected]>
1 parent 19191ba commit 8f9e746

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)