Skip to content

Commit

Permalink
chore: produce core files in regtests (#4185)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
romange authored Nov 25, 2024
1 parent 63742dd commit 2c663f3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/regression-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/dragonfly/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c663f3

Please sign in to comment.