Skip to content

Commit c27bec5

Browse files
authored
Relaxed flaky tests mechanism (#415)
1 parent 30766c5 commit c27bec5

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.github/workflows/examples.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
working-directory: examples/myworker
9797
timeout-minutes: 10
9898
run: |
99-
pytest -xsv tests --reruns 3 --reruns-delay 10 --rerun-except AssertionError
99+
pytest -xsv tests --reruns 3 --reruns-delay 10
100100
101101
range:
102102
runs-on: ${{ matrix.os }}
@@ -130,7 +130,7 @@ jobs:
130130
working-directory: examples/range
131131
timeout-minutes: 30
132132
run: |
133-
pytest -xsv tests --reruns 3 --reruns-delay 10 --rerun-except AssertionError
133+
pytest -xsv tests --reruns 3 --reruns-delay 10
134134
135135
rabbitmq_management:
136136
runs-on: ${{ matrix.os }}
@@ -164,7 +164,7 @@ jobs:
164164
working-directory: examples/rabbitmq_management
165165
timeout-minutes: 10
166166
run: |
167-
pytest -xsv tests --reruns 3 --reruns-delay 10 --rerun-except AssertionError
167+
pytest -xsv tests --reruns 3 --reruns-delay 10
168168
169169
django:
170170
runs-on: ${{ matrix.os }}
@@ -204,7 +204,7 @@ jobs:
204204
timeout-minutes: 10
205205
run: |
206206
export DJANGO_SETTINGS_MODULE=proj.settings
207-
pytest -xsv tests --reruns 3 --reruns-delay 10 --rerun-except AssertionError
207+
pytest -xsv tests --reruns 3 --reruns-delay 10
208208
209209
myutils:
210210
runs-on: ${{ matrix.os }}
@@ -238,7 +238,7 @@ jobs:
238238
working-directory: examples/myutils
239239
timeout-minutes: 10
240240
run: |
241-
pytest -xsv tests --reruns 3 --reruns-delay 10 --rerun-except AssertionError
241+
pytest -xsv tests --reruns 3 --reruns-delay 10
242242
243243
worker_pool:
244244
runs-on: ${{ matrix.os }}
@@ -272,7 +272,7 @@ jobs:
272272
working-directory: examples/worker_pool
273273
timeout-minutes: 10
274274
run: |
275-
pytest -xsv tests --reruns 3 --reruns-delay 10 --rerun-except AssertionError
275+
pytest -xsv tests --reruns 3 --reruns-delay 10
276276
277277
hybrid_setup:
278278
runs-on: ${{ matrix.os }}
@@ -306,7 +306,7 @@ jobs:
306306
working-directory: examples/hybrid_setup
307307
timeout-minutes: 10
308308
run: |
309-
pytest -xsv tests --reruns 5 --reruns-delay 10 --rerun-except AssertionError
309+
pytest -xsv tests --reruns 5 --reruns-delay 10
310310
311311
vhost:
312312
runs-on: ${{ matrix.os }}
@@ -340,4 +340,4 @@ jobs:
340340
working-directory: examples/vhost
341341
timeout-minutes: 10
342342
run: |
343-
pytest -xsv tests --reruns 3 --reruns-delay 10 --rerun-except AssertionError
343+
pytest -xsv tests --reruns 3 --reruns-delay 10

.github/workflows/python-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
- name: Run tox for "${{ matrix.python-version }}-integration"
123123
timeout-minutes: 20
124124
run: |
125-
tox --verbose --verbose -e "${{ matrix.python-version }}-integration" -- -n auto --reruns 5 --rerun-except AssertionError
125+
tox --verbose --verbose -e "${{ matrix.python-version }}-integration" -- -n auto --reruns 5
126126
127127
Smoke:
128128
needs:
@@ -167,4 +167,4 @@ jobs:
167167
- name: Run tox for "${{ matrix.python-version }}-smoke"
168168
timeout-minutes: 30
169169
run: |
170-
tox --verbose --verbose -e "${{ matrix.python-version }}-smoke" -- -n auto --reruns 5 --rerun-except AssertionError
170+
tox --verbose --verbose -e "${{ matrix.python-version }}-smoke" -- -n auto --reruns 5

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ commands_pre =
5555
commands =
5656
poetry run pytest tests --exitfirst \
5757
-n auto --dist=loadscope \
58-
--reruns 3 --reruns-delay 5 --rerun-except AssertionError \
58+
--reruns 3 --reruns-delay 5 \
5959
{posargs}
6060

6161
[testenv:parallel]
@@ -68,7 +68,7 @@ commands_pre =
6868
commands =
6969
tox -e py312-unit,py312-integration,py312-smoke -p auto -o -- --exitfirst \
7070
-n auto --dist=loadscope \
71-
--reruns 3 --reruns-delay 10 --rerun-except AssertionError \
71+
--reruns 3 --reruns-delay 10 \
7272
{posargs}
7373

7474
[testenv:mypy]

0 commit comments

Comments
 (0)