Skip to content

Commit e33f114

Browse files
committed
Add cleanup step to prevent post-job cleanup failures
1 parent d52cfcd commit e33f114

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

.github/workflows/CI.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ jobs:
8888
tests/post-install.sh
8989
tests/check-headers.sh
9090
91+
- name: Cleanup test artifacts
92+
if: always()
93+
run: |
94+
pkill -9 xrootd || true
95+
pkill -9 xrdfs || true
96+
rm -rf /tmp/xrootd* || true
97+
rm -rf /tmp/err.txt || true
98+
9199
alma8:
92100
name: Alma 8
93101
runs-on: ubuntu-latest
@@ -125,6 +133,14 @@ jobs:
125133
tests/post-install.sh
126134
tests/check-headers.sh
127135
136+
- name: Cleanup test artifacts
137+
if: always()
138+
run: |
139+
pkill -9 xrootd || true
140+
pkill -9 xrdfs || true
141+
rm -rf /tmp/xrootd* || true
142+
rm -rf /tmp/err.txt || true
143+
128144
alma9:
129145
name: Alma 9
130146
runs-on: ubuntu-latest
@@ -161,6 +177,14 @@ jobs:
161177
tests/post-install.sh
162178
tests/check-headers.sh
163179
180+
- name: Cleanup test artifacts
181+
if: always()
182+
run: |
183+
pkill -9 xrootd || true
184+
pkill -9 xrdfs || true
185+
rm -rf /tmp/xrootd* || true
186+
rm -rf /tmp/err.txt || true
187+
164188
alma10:
165189
name: Alma 10
166190
runs-on: ubuntu-latest
@@ -197,6 +221,14 @@ jobs:
197221
tests/post-install.sh
198222
tests/check-headers.sh
199223
224+
- name: Cleanup test artifacts
225+
if: always()
226+
run: |
227+
pkill -9 xrootd || true
228+
pkill -9 xrdfs || true
229+
rm -rf /tmp/xrootd* || true
230+
rm -rf /tmp/err.txt || true
231+
200232
fedora:
201233
name: Fedora
202234
runs-on: ubuntu-latest
@@ -240,6 +272,14 @@ jobs:
240272
tests/post-install.sh
241273
tests/check-headers.sh
242274
275+
- name: Cleanup test artifacts
276+
if: always()
277+
run: |
278+
pkill -9 xrootd || true
279+
pkill -9 xrdfs || true
280+
rm -rf /tmp/xrootd* || true
281+
rm -rf /tmp/err.txt || true
282+
243283
ubuntu:
244284
name: Ubuntu
245285

@@ -289,6 +329,14 @@ jobs:
289329
tests/post-install.sh
290330
tests/check-headers.sh
291331
332+
- name: Cleanup test artifacts
333+
if: always()
334+
run: |
335+
pkill -9 xrootd || true
336+
pkill -9 xrdfs || true
337+
rm -rf /tmp/xrootd* || true
338+
rm -rf /tmp/err.txt || true
339+
292340
macos:
293341
name: macOS
294342
runs-on: macos-26
@@ -322,3 +370,11 @@ jobs:
322370
export PYVERSION=$(python3 --version | grep -o 3...)
323371
export PYTHONPATH=/usr/local/lib/python${PYVERSION}/site-packages
324372
tests/post-install.sh
373+
374+
- name: Cleanup test artifacts
375+
if: always()
376+
run: |
377+
pkill -9 xrootd || true
378+
pkill -9 xrdfs || true
379+
rm -rf /tmp/xrootd* || true
380+
rm -rf /tmp/err.txt || true

0 commit comments

Comments
 (0)