Skip to content

Commit 8353738

Browse files
committed
GitHub workflows: set coredump pattern
Set the coredump pattern to a relative file name, so that we can collect possible cores in test-outputs.tar. Signed-off-by: Martin Wilck <mwilck@suse.com>
1 parent 180f095 commit 8353738

5 files changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/foreign.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ jobs:
8181
uses: docker/setup-qemu-action@v2
8282
with:
8383
image: tonistiigi/binfmt:latest
84+
- name: Set coredump pattern
85+
run: |
86+
echo 'core.%e.%p' | sudo tee /proc/sys/kernel/core_pattern
8487
- name: run tests
8588
id: test
8689
run: |
@@ -140,6 +143,9 @@ jobs:
140143
uses: docker/setup-qemu-action@v2
141144
with:
142145
image: tonistiigi/binfmt:latest
146+
- name: Set coredump pattern
147+
run: |
148+
echo 'core.%e.%p' | sudo tee /proc/sys/kernel/core_pattern
143149
- name: run tests
144150
id: root-test
145151
run: |

.github/workflows/multiarch-stable.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ jobs:
5656
run: |
5757
__arch="${{ matrix.arch }}"
5858
echo "ARCH_NAME=${__arch//\//-}" >>"$GITHUB_ENV"
59+
- name: Set coredump pattern
60+
run: |
61+
echo 'core.%e.%p' | sudo tee /proc/sys/kernel/core_pattern
5962
- name: compile and run unit tests
6063
id: test
6164
run: |

.github/workflows/multiarch.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ jobs:
5959
run: |
6060
__arch="${{ matrix.arch }}"
6161
echo "ARCH_NAME=${__arch//\//-}" >>"$GITHUB_ENV"
62+
- name: Set coredump pattern
63+
run: |
64+
echo 'core.%e.%p' | sudo tee /proc/sys/kernel/core_pattern
6265
- name: compile and run unit tests
6366
id: test
6467
run: |

.github/workflows/native.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ jobs:
5353
run: echo READLINE=libreadline >> $GITHUB_ENV
5454
if: matrix.os == 'debian-jessie'
5555

56+
- name: Set coredump pattern
57+
run: |
58+
echo 'core.%e.%p' | sudo tee /proc/sys/kernel/core_pattern
59+
5660
- name: build and test
5761
id: test
5862
run: |
@@ -121,6 +125,10 @@ jobs:
121125
run: echo READLINE=libreadline >> $GITHUB_ENV
122126
if: matrix.os == 'debian-jessie'
123127

128+
- name: Set coredump pattern
129+
run: |
130+
echo 'core.%e.%p' | sudo tee /proc/sys/kernel/core_pattern
131+
124132
- name: build and test with clang
125133
id: test
126134
run: |
@@ -183,6 +191,10 @@ jobs:
183191
- name: unpack binary archive
184192
run: tar xfmv test-progs.tar
185193

194+
- name: Set coredump pattern
195+
run: |
196+
echo 'core.%e.%p' | sudo tee /proc/sys/kernel/core_pattern
197+
186198
- name: run root tests
187199
id: test
188200
run: |

.github/workflows/rolling.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ jobs:
6060
steps:
6161
- name: checkout
6262
uses: actions/checkout@v4
63+
- name: Set coredump pattern
64+
run: |
65+
echo 'core.%e.%p' | sudo tee /proc/sys/kernel/core_pattern
6366
- name: build and test
6467
id: test
6568
run: make CC=${{ matrix.compiler }} READLINE=libreadline -j$(nproc) -Orecurse test

0 commit comments

Comments
 (0)