Skip to content

Commit

Permalink
Relaxed flaky tests mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
Nusnus committed Sep 17, 2024
1 parent 30766c5 commit d99020b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ jobs:
working-directory: examples/myworker
timeout-minutes: 10
run: |
pytest -xsv tests --reruns 3 --reruns-delay 10 --rerun-except AssertionError
pytest -xsv tests --reruns 3 --reruns-delay 10
range:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
working-directory: examples/range
timeout-minutes: 30
run: |
pytest -xsv tests --reruns 3 --reruns-delay 10 --rerun-except AssertionError
pytest -xsv tests --reruns 3 --reruns-delay 10
rabbitmq_management:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
working-directory: examples/rabbitmq_management
timeout-minutes: 10
run: |
pytest -xsv tests --reruns 3 --reruns-delay 10 --rerun-except AssertionError
pytest -xsv tests --reruns 3 --reruns-delay 10
django:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
timeout-minutes: 10
run: |
export DJANGO_SETTINGS_MODULE=proj.settings
pytest -xsv tests --reruns 3 --reruns-delay 10 --rerun-except AssertionError
pytest -xsv tests --reruns 3 --reruns-delay 10
myutils:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -238,7 +238,7 @@ jobs:
working-directory: examples/myutils
timeout-minutes: 10
run: |
pytest -xsv tests --reruns 3 --reruns-delay 10 --rerun-except AssertionError
pytest -xsv tests --reruns 3 --reruns-delay 10
worker_pool:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -272,7 +272,7 @@ jobs:
working-directory: examples/worker_pool
timeout-minutes: 10
run: |
pytest -xsv tests --reruns 3 --reruns-delay 10 --rerun-except AssertionError
pytest -xsv tests --reruns 3 --reruns-delay 10
hybrid_setup:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -306,7 +306,7 @@ jobs:
working-directory: examples/hybrid_setup
timeout-minutes: 10
run: |
pytest -xsv tests --reruns 5 --reruns-delay 10 --rerun-except AssertionError
pytest -xsv tests --reruns 5 --reruns-delay 10
vhost:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -340,4 +340,4 @@ jobs:
working-directory: examples/vhost
timeout-minutes: 10
run: |
pytest -xsv tests --reruns 3 --reruns-delay 10 --rerun-except AssertionError
pytest -xsv tests --reruns 3 --reruns-delay 10
4 changes: 2 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
- name: Run tox for "${{ matrix.python-version }}-integration"
timeout-minutes: 20
run: |
tox --verbose --verbose -e "${{ matrix.python-version }}-integration" -- -n auto --reruns 5 --rerun-except AssertionError
tox --verbose --verbose -e "${{ matrix.python-version }}-integration" -- -n auto --reruns 5
Smoke:
needs:
Expand Down Expand Up @@ -167,4 +167,4 @@ jobs:
- name: Run tox for "${{ matrix.python-version }}-smoke"
timeout-minutes: 30
run: |
tox --verbose --verbose -e "${{ matrix.python-version }}-smoke" -- -n auto --reruns 5 --rerun-except AssertionError
tox --verbose --verbose -e "${{ matrix.python-version }}-smoke" -- -n auto --reruns 5
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ commands_pre =
commands =
poetry run pytest tests --exitfirst \
-n auto --dist=loadscope \
--reruns 3 --reruns-delay 5 --rerun-except AssertionError \
--reruns 3 --reruns-delay 5 \
{posargs}

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

[testenv:mypy]
Expand Down

0 comments on commit d99020b

Please sign in to comment.