Skip to content

Commit

Permalink
Corefile hunting.
Browse files Browse the repository at this point in the history
Attempt to capture core file on "pure virtual method called".
  • Loading branch information
metasim committed Nov 10, 2021
1 parent 40976ef commit 01a6b7c
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 7 deletions.
9 changes: 8 additions & 1 deletion .github/docker-compose.yml
Expand Up @@ -33,7 +33,14 @@ services:
test:
image: quay.io/azavea/openjdk-gdal:3.1-jdk8-slim
working_dir: /usr/local/src
command: ./sbt ++$SCALA_VERSION test
command:
- /bin/bash
- -c
- |
ulimit -c unlimited
./sbt ++$SCALA_VERSION test || true
ls -la
find / -name '*core*' -type f
environment:
- CI
- SCALA_VERSION
Expand Down
27 changes: 25 additions & 2 deletions .github/workflows/ci.yml
Expand Up @@ -14,7 +14,9 @@ jobs:
name: Build and Test
strategy:
matrix:
scala: ["2.12.15", "2.13.6"]
scala:
- "2.12.15"
#- "2.13.6"
runs-on: ubuntu-latest

env:
Expand All @@ -34,4 +36,25 @@ jobs:
run: cd raster/data; unzip geotiff-test-files.zip

- name: run tests
run: docker compose -f .github/docker-compose.yml up test --abort-on-container-exit --exit-code-from test
run: |
ulimit -c unlimited
docker compose -f .github/docker-compose.yml up test # --abort-on-container-exit --exit-code-from test
# - name: Upterm session on failure
# uses: lhotari/action-upterm@v1
# if: ${{ failure() }}
#
# - name: haz core?
# if: ${{ failure() }}
# run: |
# sudo mkdir /cores || true
# sudo find . -name '*core*' -type f
# # sudo find . -name '*core*' -type f -print0 | sudo xargs -0 -J % cp -v % /cores
# sudo chmod -R +rwx /cores
# ls -Rla /cores/*

# - uses: actions/upload-artifact@master
# with:
# name: cores
# path: /cores
2 changes: 1 addition & 1 deletion build.sbt
Expand Up @@ -15,7 +15,7 @@ lazy val root = Project("geotrellis", file("."))
`doc-examples`,
gdal,
`gdal-spark`,
// geotools,
geotools,
// geowave,
hbase,
`hbase-spark`,
Expand Down
6 changes: 3 additions & 3 deletions proj4/src/test/scala/geotrellis/proj4/MetaCRSTest.scala
Expand Up @@ -34,15 +34,15 @@ class MetaCRSTest extends AnyFunSuite with Matchers {
val crsFactory = new CRSFactory

test("MetaCRSExample") {
val file = new File("src/test/resources/TestData.csv")
val file = new File("proj4/src/test/resources/TestData.csv")
val tests = MetaCRSTestFileReader.readTests(file)
for (test <- tests) {
test should be(passing)
}
}

test("PROJ4_SPCS") {
val file = new File("src/test/resources/PROJ4_SPCS_EPSG_nad83.csv")
val file = new File("proj4/src/test/resources/PROJ4_SPCS_EPSG_nad83.csv")
val tests = MetaCRSTestFileReader.readTests(file)
for (test <- tests) {
test should be(passing)
Expand All @@ -51,7 +51,7 @@ class MetaCRSTest extends AnyFunSuite with Matchers {

// TODO: update this test, started failing with switch from EPSG Database 8.6 to 9.2
ignore("PROJ4_Empirical") {
val file = new File("src/test/resources/proj4-epsg.csv")
val file = new File("proj4/est/resources/proj4-epsg.csv")
val tests = MetaCRSTestFileReader.readTests(file)
for (test <- tests) {
test.testMethod match {
Expand Down

0 comments on commit 01a6b7c

Please sign in to comment.