Skip to content

Commit bc5514b

Browse files
authored
Merge pull request #79 from okurz/fix/sporadic_segfault
CI: Workaround sporadic segfaults with retries
2 parents 5a2fec3 + 5fad8a3 commit bc5514b

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/ci-tests.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,22 @@ jobs:
3131
- name: Set up perl
3232
run: |
3333
cpanm --with-feature=ci --installdeps --notest .
34-
perl Build.PL
35-
./Build build
3634
- name: Run tests
37-
if: matrix.perl != 'latest'
35+
if: matrix.perl != 'latest' || matrix.os == 'macos-latest'
3836
run: |
3937
TEST_SHARED=1 TEST_SUBREAPER=1 prove -l t
40-
- name: Run tests with coverage
41-
if: matrix.perl == 'latest'
38+
- name: Run tests with coverage and retry
39+
if: matrix.perl == 'latest' && matrix.os != 'macos-latest'
4240
run: |
43-
TEST_SHARED=1 TEST_SUBREAPER=1 PERL5OPT="-MDevel::Cover=-coverage,statement" prove -l t
41+
# t/01_run.t can segfault, retrying multiple times
42+
# See https://progress.opensuse.org/issues/180026
43+
curl -O https://raw.githubusercontent.com/okurz/retry/refs/heads/main/retry
44+
chmod +x retry
45+
./retry -r 7 env TEST_SHARED=1 TEST_SUBREAPER=1 PERL5OPT="-MDevel::Cover=-coverage,statement" prove -l t
4446
cover -report codecovbash
4547
- name: Upload coverage to ☂️ Codecov
4648
uses: codecov/codecov-action@v5
47-
if: matrix.perl == 'latest'
49+
if: matrix.perl == 'latest' && matrix.os != 'macos-latest'
4850
with:
4951
token: ${{ secrets.CODECOV_TOKEN }}
5052
file: cover_db/codecov.json

0 commit comments

Comments
 (0)