Skip to content

Commit c3ecfcc

Browse files
authored
[API-403] Enable core dumps for GA linux builds (#870)
* Enable core dump for linux builds * Install gdb
1 parent c1f96b8 commit c3ecfcc

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/nightly-ubuntu-i386.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ jobs:
2929
name: 'SSL'
3030

3131
runs-on: ubuntu-latest
32-
container: i386/ubuntu
32+
container:
33+
image: i386/ubuntu
34+
options: --privileged
3335

3436
name: >-
3537
Ubuntu-i386
@@ -39,7 +41,7 @@ jobs:
3941
- name: Install Necessary Packages
4042
run: |
4143
apt-get update
42-
apt-get install -y build-essential cmake curl git libssl-dev maven net-tools openjdk-11-jre-headless
44+
apt-get install -y build-essential cmake curl git libssl-dev maven net-tools openjdk-11-jre-headless gdb
4345
4446
- name: Make sure the target architecture is 32 bit
4547
run: |
@@ -80,6 +82,10 @@ jobs:
8082
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
8183
HZ_TEST_AWS_INSTANCE_PRIVATE_IP: ${{ secrets.HZ_TEST_AWS_INSTANCE_PRIVATE_IP }}
8284
run: |
85+
ulimit -c unlimited
86+
echo 'core' > /proc/sys/kernel/core_pattern
87+
echo '1' > /proc/sys/kernel/core_uses_pid
88+
8389
./scripts/test-unix.sh
8490
8591
- name: Verify Installation

.github/workflows/nightly-ubuntu-x86_64.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Install Necessary Packages
3939
run: |
4040
sudo apt-get update
41-
sudo apt-get install -y net-tools libssl-dev
41+
sudo apt-get install -y net-tools libssl-dev gdb
4242
4343
- uses: actions/checkout@v2
4444

@@ -72,6 +72,10 @@ jobs:
7272
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
7373
HZ_TEST_AWS_INSTANCE_PRIVATE_IP: ${{ secrets.HZ_TEST_AWS_INSTANCE_PRIVATE_IP }}
7474
run: |
75+
ulimit -c unlimited
76+
sudo sh -c "echo 'core' > /proc/sys/kernel/core_pattern"
77+
sudo sh -c "echo '1' > /proc/sys/kernel/core_uses_pid"
78+
7579
./scripts/test-unix.sh
7680
7781
- name: Verify Installation

0 commit comments

Comments
 (0)