Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Commit f3ebe03

Browse files
authored
Do not retry failed tests in CI (#62)
Tests that do not consistently pass are broken tests and should be fixed. Failed tests should not be retried to avoid accidentally adding new broken tests.
1 parent e88c7f6 commit f3ebe03

2 files changed

Lines changed: 7 additions & 23 deletions

File tree

.github/workflows/testing.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Pytest fs_filepicker
22

3-
on:
3+
on:
44
workflow_call:
55
inputs:
66
xdist:
@@ -82,11 +82,7 @@ jobs:
8282
&& source /opt/conda/etc/profile.d/conda.sh \
8383
&& source /opt/conda/etc/profile.d/mamba.sh \
8484
&& mamba activate fsfp-${{ inputs.branch_name }}-env \
85-
&& pytest -v --durations=20 --reverse --cov=fslib tests \
86-
|| (for i in {1..5} \
87-
; do pytest tests -v --durations=0 --reverse --last-failed --lfnf=none \
88-
&& break \
89-
; done)
85+
&& pytest -v --durations=20 --reverse --cov=fslib tests
9086
9187
- name: Run tests in parallel
9288
if: ${{ success() && inputs.xdist == 'yes' }}
@@ -96,15 +92,11 @@ jobs:
9692
&& source /opt/conda/etc/profile.d/conda.sh \
9793
&& source /opt/conda/etc/profile.d/mamba.sh \
9894
&& mamba activate fsfp-${{ inputs.branch_name }}-env \
99-
&& pytest -vv -n 6 --dist loadfile --max-worker-restart 0 tests \
100-
|| (for i in {1..5} \
101-
; do pytest -vv -n 6 --dist loadfile --max-worker-restart 0 tests --last-failed --lfnf=none \
102-
&& break \
103-
; done)
95+
&& pytest -vv -n 6 --dist loadfile --max-worker-restart 0 tests
10496
10597
- name: Collect coverage
10698
if: ${{ success() && inputs.event_name == 'push' && inputs.branch_name == 'develop' && inputs.xdist == 'no'}}
107-
env:
99+
env:
108100
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
109101
run: |
110102
cd $GITHUB_WORKSPACE \

.github/workflows/testing_gsoc.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,7 @@ jobs:
7070
&& source /opt/conda/etc/profile.d/conda.sh \
7171
&& source /opt/conda/etc/profile.d/mamba.sh \
7272
&& mamba activate fsfp-develop-env \
73-
&& pytest -v --durations=20 --reverse --cov=mslib tests \
74-
|| (for i in {1..5} \
75-
; do pytest tests -v --durations=0 --reverse --last-failed --lfnf=none \
76-
&& break \
77-
; done)
73+
&& pytest -v --durations=20 --reverse --cov=mslib tests
7874
7975
8076
- name: Run tests in parallel
@@ -85,15 +81,11 @@ jobs:
8581
&& source /opt/conda/etc/profile.d/conda.sh \
8682
&& source /opt/conda/etc/profile.d/mamba.sh \
8783
&& mamba activate fsfp-develop-env \
88-
&& pytest -vv -n 6 --dist loadfile --max-worker-restart 0 tests \
89-
|| (for i in {1..5} \
90-
; do pytest -vv -n 6 --dist loadfile --max-worker-restart 0 tests --last-failed --lfnf=none \
91-
&& break \
92-
; done)
84+
&& pytest -vv -n 6 --dist loadfile --max-worker-restart 0 tests
9385
9486
- name: Collect coverage
9587
if: ${{ success() && inputs.event_name == 'push' && inputs.branch_name == 'develop' && inputs.xdist == 'no'}}
96-
env:
88+
env:
9789
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9890
run: |
9991
cd $GITHUB_WORKSPACE \

0 commit comments

Comments
 (0)