Skip to content

Commit

Permalink
Corefile hunting.
Browse files Browse the repository at this point in the history
  • Loading branch information
metasim committed Nov 9, 2021
1 parent bb5a6f6 commit 3a08510
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 21 deletions.
10 changes: 9 additions & 1 deletion .github/docker-compose.yml
Expand Up @@ -33,7 +33,15 @@ 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
find . -name '*core*' -type f
find /var/crash -name '*core*' -type f
find /var/lib/systemd/coredump -name '*core*' -type f
environment:
- CI
- SCALA_VERSION
Expand Down
43 changes: 23 additions & 20 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 @@ -36,22 +38,23 @@ jobs:
- name: run tests
run: |
ulimit -c unlimited
sudo docker compose -f .github/docker-compose.yml up test --abort-on-container-exit --exit-code-from test
- name: Setup upterm session
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
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

0 comments on commit 3a08510

Please sign in to comment.