Skip to content

Commit cdd31b4

Browse files
authored
don't fail when there are no zombies (huggingface#10308)
1 parent a2e3797 commit cdd31b4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/self-push.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- run: nvidia-smi
3232

3333
- name: Kill any run-away pytest processes
34-
run: pkill -f tests; pkill -f examples
34+
run: (pkill -f tests; pkill -f examples) || echo "no zombies"
3535

3636
- name: Loading cache.
3737
uses: actions/cache@v2
@@ -106,7 +106,7 @@ jobs:
106106
- run: nvidia-smi
107107

108108
- name: Kill any run-away pytest processes
109-
run: pkill -f tests; pkill -f examples
109+
run: (pkill -f tests; pkill -f examples) || echo "no zombies"
110110

111111
- name: Loading cache.
112112
uses: actions/cache@v2
@@ -179,7 +179,7 @@ jobs:
179179
- run: nvidia-smi
180180

181181
- name: Kill any run-away pytest processes
182-
run: pkill -f tests; pkill -f examples
182+
run: (pkill -f tests; pkill -f examples) || echo "no zombies"
183183

184184
- name: Loading cache.
185185
uses: actions/cache@v2
@@ -243,7 +243,7 @@ jobs:
243243
- run: nvidia-smi
244244

245245
- name: Kill any run-away pytest processes
246-
run: pkill -f tests; pkill -f examples
246+
run: (pkill -f tests; pkill -f examples) || echo "no zombies"
247247

248248
- name: Loading cache.
249249
uses: actions/cache@v2

.github/workflows/self-scheduled.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- run: nvidia-smi
3636

3737
- name: Kill any run-away pytest processes
38-
run: pkill -f tests; pkill -f examples
38+
run: (pkill -f tests; pkill -f examples) || echo "no zombies"
3939

4040
- name: Create new python env (on self-hosted runners we have to handle isolation ourselves)
4141
if: steps.cache.outputs.cache-hit != 'true'
@@ -133,7 +133,7 @@ jobs:
133133
- run: nvidia-smi
134134

135135
- name: Kill any run-away pytest processes
136-
run: pkill -f tests; pkill -f examples
136+
run: (pkill -f tests; pkill -f examples) || echo "no zombies"
137137

138138

139139
- name: Create new python env (on self-hosted runners we have to handle isolation ourselves)
@@ -217,7 +217,7 @@ jobs:
217217
- run: nvidia-smi
218218

219219
- name: Kill any run-away pytest processes
220-
run: pkill -f tests; pkill -f examples
220+
run: (pkill -f tests; pkill -f examples) || echo "no zombies"
221221

222222
- name: Create new python env (on self-hosted runners we have to handle isolation ourselves)
223223
if: steps.cache.outputs.cache-hit != 'true'
@@ -316,7 +316,7 @@ jobs:
316316
- run: nvidia-smi
317317

318318
- name: Kill any run-away pytest processes
319-
run: pkill -f tests; pkill -f examples
319+
run: (pkill -f tests; pkill -f examples) || echo "no zombies"
320320

321321
- name: Create new python env (on self-hosted runners we have to handle isolation ourselves)
322322
if: steps.cache.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)