Skip to content

Commit cfba75b

Browse files
committed
Add cleanup step to prevent post-job cleanup failures
1 parent 83e4ad7 commit cfba75b

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
@@ -86,6 +86,14 @@ jobs:
8686
tests/post-install.sh
8787
tests/check-headers.sh
8888
89+
- name: Cleanup test artifacts
90+
if: always()
91+
run: |
92+
pkill -9 xrootd || true
93+
pkill -9 xrdfs || true
94+
rm -rf /tmp/xrootd* || true
95+
rm -rf /tmp/err.txt || true
96+
8997
alma8:
9098
name: Alma 8
9199
runs-on: ubuntu-latest
@@ -123,6 +131,14 @@ jobs:
123131
tests/post-install.sh
124132
tests/check-headers.sh
125133
134+
- name: Cleanup test artifacts
135+
if: always()
136+
run: |
137+
pkill -9 xrootd || true
138+
pkill -9 xrdfs || true
139+
rm -rf /tmp/xrootd* || true
140+
rm -rf /tmp/err.txt || true
141+
126142
alma9:
127143
name: Alma 9
128144
runs-on: ubuntu-latest
@@ -159,6 +175,14 @@ jobs:
159175
tests/post-install.sh
160176
tests/check-headers.sh
161177
178+
- name: Cleanup test artifacts
179+
if: always()
180+
run: |
181+
pkill -9 xrootd || true
182+
pkill -9 xrdfs || true
183+
rm -rf /tmp/xrootd* || true
184+
rm -rf /tmp/err.txt || true
185+
162186
alma10:
163187
name: Alma 10
164188
runs-on: ubuntu-latest
@@ -195,6 +219,14 @@ jobs:
195219
tests/post-install.sh
196220
tests/check-headers.sh
197221
222+
- name: Cleanup test artifacts
223+
if: always()
224+
run: |
225+
pkill -9 xrootd || true
226+
pkill -9 xrdfs || true
227+
rm -rf /tmp/xrootd* || true
228+
rm -rf /tmp/err.txt || true
229+
198230
fedora:
199231
name: Fedora
200232
runs-on: ubuntu-latest
@@ -238,6 +270,14 @@ jobs:
238270
tests/post-install.sh
239271
tests/check-headers.sh
240272
273+
- name: Cleanup test artifacts
274+
if: always()
275+
run: |
276+
pkill -9 xrootd || true
277+
pkill -9 xrdfs || true
278+
rm -rf /tmp/xrootd* || true
279+
rm -rf /tmp/err.txt || true
280+
241281
ubuntu:
242282
name: Ubuntu
243283

@@ -287,6 +327,14 @@ jobs:
287327
tests/post-install.sh
288328
tests/check-headers.sh
289329
330+
- name: Cleanup test artifacts
331+
if: always()
332+
run: |
333+
pkill -9 xrootd || true
334+
pkill -9 xrdfs || true
335+
rm -rf /tmp/xrootd* || true
336+
rm -rf /tmp/err.txt || true
337+
290338
macos:
291339
name: macOS
292340
runs-on: macos-26
@@ -320,3 +368,11 @@ jobs:
320368
export PYVERSION=$(python3 --version | grep -o 3...)
321369
export PYTHONPATH=/usr/local/lib/python${PYVERSION}/site-packages
322370
tests/post-install.sh
371+
372+
- name: Cleanup test artifacts
373+
if: always()
374+
run: |
375+
pkill -9 xrootd || true
376+
pkill -9 xrdfs || true
377+
rm -rf /tmp/xrootd* || true
378+
rm -rf /tmp/err.txt || true

0 commit comments

Comments
 (0)