Skip to content

Commit 606a977

Browse files
committed
CI + JDK 11 regressions.
1 parent 6a161fa commit 606a977

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

.sbtopts

Lines changed: 0 additions & 1 deletion
This file was deleted.

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ package org.locationtech.rasterframes
2626
import java.net.URI
2727
import java.sql.Timestamp
2828
import java.time.ZonedDateTime
29-
3029
import geotrellis.layer.{withMergableMethods => _, _}
3130
import geotrellis.proj4.{CRS, LatLng}
3231
import geotrellis.raster._
@@ -37,6 +36,7 @@ import org.apache.spark.sql.{SQLContext, SparkSession}
3736
import org.locationtech.rasterframes.ref.RFRasterSource
3837
import org.locationtech.rasterframes.tiles.ProjectedRasterTile
3938
import org.locationtech.rasterframes.util._
39+
import org.scalatest.BeforeAndAfterEach
4040

4141
import scala.util.control.NonFatal
4242

@@ -46,10 +46,16 @@ import scala.util.control.NonFatal
4646
* @since 7/10/17
4747
*/
4848
class RasterLayerSpec extends TestEnvironment with MetadataKeys
49-
with TestData {
49+
with BeforeAndAfterEach with TestData {
5050
import TestData.randomTile
5151
import spark.implicits._
5252

53+
override def beforeEach(): Unit = {
54+
// Try to GC to avoid OOM on low memory instances.
55+
// TODO: remove once we have a larger CI
56+
System.gc()
57+
}
58+
5359
describe("Runtime environment") {
5460
it("should provide build info") {
5561
//assert(RFBuildInfo.toMap.nonEmpty)

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ class StandardEncodersSpec extends TestEnvironment with TestData with Inspectors
4141
import spark.implicits._
4242
val data = Dimensions[Int](256, 256)
4343
val df = List(data).toDF()
44-
df.show()
45-
df.printSchema()
4644
val fs = df.as[Dimensions[Int]]
4745
val out = fs.first()
4846
out shouldBe data
@@ -53,8 +51,6 @@ class StandardEncodersSpec extends TestEnvironment with TestData with Inspectors
5351
import spark.implicits._
5452
val data = TileDataContext(IntCellType, Dimensions[Int](256, 256))
5553
val df = List(data).toDF()
56-
df.show()
57-
df.printSchema()
5854
val fs = df.as[TileDataContext]
5955
val out = fs.first()
6056
out shouldBe data
@@ -65,8 +61,6 @@ class StandardEncodersSpec extends TestEnvironment with TestData with Inspectors
6561
import spark.implicits._
6662
val data = ProjectedExtent(Extent(0, 0, 1, 1), LatLng)
6763
val df = List(data).toDF()
68-
df.show()
69-
df.printSchema()
7064
df.select($"crs".cast(StringType)).show()
7165
val fs = df.as[ProjectedExtent]
7266
val out = fs.first()
@@ -84,8 +78,6 @@ class StandardEncodersSpec extends TestEnvironment with TestData with Inspectors
8478
KeyBounds(SpatialKey(0,0), SpatialKey(9,9))
8579
)
8680
val df = List(data).toDF()
87-
df.show()
88-
df.printSchema()
8981
val fs = df.as[TileLayerMetadata[SpatialKey]]
9082
val out = fs.first()
9183
out shouldBe data

0 commit comments

Comments
 (0)