Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relaxed flaky tests mechanism #415

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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