Skip to content

Commit 02372f4

Browse files
ci(gha): coredump before cleanup
List all coredumps since start of testing. Ensure unlimited coredump. Run coredump check before cleaning the workspace. This is helpful in case there was a coredump from our own binaries. Also disable the man-pages auto-update. Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com>
1 parent 0b5cb5d commit 02372f4

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/unit-int.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
- name: Setup Test Pre-Requisites
3232
run: |
3333
sudo sysctl -w vm.nr_hugepages=3584
34+
sudo debconf-communicate <<< "set man-db/auto-update false" || true
35+
sudo dpkg-reconfigure man-db || true
36+
ulimit -c unlimited
3437
sudo apt-get update
3538
sudo apt-get install linux-modules-extra-$(uname -r)
3639
for module in nvme_tcp nbd nvme_rdma; do
@@ -41,11 +44,11 @@ jobs:
4144
run: |
4245
echo "TEST_START_DATE=$(date +"%Y-%m-%d %H:%M:%S")" >> $GITHUB_ENV
4346
nix-shell --run "./scripts/cargo-test.sh"
47+
- name: Check Coredumps
48+
run: sudo ./scripts/check-coredumps.sh --since "${TEST_START_DATE}"
4449
- name: Cleanup
4550
if: always()
4651
run: nix-shell --run "./scripts/clean-cargo-tests.sh"
47-
- name: Check Coredumps
48-
run: sudo ./scripts/check-coredumps.sh --since "${TEST_START_DATE}"
4952
- name: Run JS Grpc Tests
5053
run: |
5154
echo "TEST_START_DATE=$(date +"%Y-%m-%d %H:%M:%S")" >> $GITHUB_ENV
@@ -72,11 +75,11 @@ jobs:
7275
with:
7376
name: ci-report-int
7477
path: ./ci-report/ci-report.tar.gz
78+
- name: Check Coredumps
79+
run: sudo ./scripts/check-coredumps.sh --since "${TEST_START_DATE}"
7580
- name: Cleanup
7681
if: always()
7782
run: nix-shell --run "./scripts/clean-cargo-tests.sh"
78-
- name: Check Coredumps
79-
run: sudo ./scripts/check-coredumps.sh --since "${TEST_START_DATE}"
8083
# debugging
8184
# - name: Setup tmate session
8285
# if: ${{ failure() }}

scripts/check-coredumps.sh

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ fi
5252

5353
# Iterate over new coredumps and print a summary and stack for each
5454
echo "Looking for new coredumps ..."
55+
PAGER= coredumpctl list --since="$since"
5556
echo
5657
coredump_pids=$(coredumpctl list --json=short --since="$since" | jq '.[] | select(.exe | endswith("sshd") or endswith("udisksd") | not) | .pid')
5758
coredump_count=0

0 commit comments

Comments
 (0)