1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-14 11:58:02 +00:00

chore: produce core files in regtests (#4185)

Should work only for self-hosted runners.
The core files will be kept in /var/crash/
We also copy automatically dragonfly binary into /var/crash to be able to debug later.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
Roman Gershman 2024-11-25 19:13:11 +02:00 committed by GitHub
parent 63742dd0cf
commit 2c663f3833
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 18 additions and 4 deletions

View file

@ -18,15 +18,19 @@ jobs:
container:
image: ghcr.io/romange/${{ matrix.container }}
options: --security-opt seccomp=unconfined --sysctl "net.ipv6.conf.all.disable_ipv6=0"
volumes:
- /var/crash:/var/crash
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Print cpu info
run: cat /proc/cpuinfo
- name: Print environment info
run: |
cat /proc/cpuinfo
ulimit -a
env
- name: Configure & Build
run: |
# -no-pie to disable address randomization so we could symbolize stacktraces
@ -56,6 +60,16 @@ jobs:
name: logs
path: /tmp/failed/*
- name: Copy binary on a self hosted runner
if: failure()
run: |
# We must use sh syntax.
if [ "$RUNNER_ENVIRONMENT" = "self-hosted" ]; then
cd ${GITHUB_WORKSPACE}/build
timestamp=$(date +%Y-%m-%d_%H:%M:%S)
mv ./dragonfly /var/crash/dragonfy_${timestamp}
fi
lint-test-chart:
runs-on: ubuntu-latest
steps:

View file

@ -15,7 +15,7 @@ pytest-repeat==0.9.3
pymemcache==4.0.0
prometheus_client==0.17.0
aiohttp==3.10.2
numpy==1.24.3
numpy
pytest-json-report==1.5.0
psutil==5.9.5
boto3==1.28.55