From 14b64ecc7ed2ae2438634a57929a6338446b2e00 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Thu, 21 Jan 2021 16:13:24 +0100 Subject: [PATCH] gci: Switch to the flaky plugin rerunfailures keeps not working. --- .github/workflows/ci.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 58f1ed3fb..241214461 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -145,7 +145,7 @@ jobs: export DEVELOPER=${DEVELOPER:-1} export EXPERIMENTAL_FEATURES=${EXPERIMENTAL_FEATURES:-0} export PATH=$CWD/dependencies/bin:"$HOME"/.local/bin:"$PATH" - export PYTEST_OPTS="--maxfail=5 --reruns=2 --suppress-no-test-exit-code ${PYTEST_OPTS}" + export PYTEST_OPTS="--maxfail=5 --suppress-no-test-exit-code ${PYTEST_OPTS}" export PYTEST_PAR=${PYTEST_PAR:-10} export PYTEST_SENTRY_ALWAYS_REPORT=1 export SLOW_MACHINE=1 @@ -167,10 +167,9 @@ jobs: # running tests easier/feasible on CI (and pytest which # keeps breaking the rerunfailures plugin). pip3 install --user -U \ - pytest==6.1.0 \ + flaky \ blinker \ pytest-sentry \ - pytest-rerunfailures==9.1.1 \ pytest-test-groups==1.0.3 \ pytest-custom-exit-code==0.3.0 @@ -185,7 +184,7 @@ jobs: cat << 'EOF' > pytest.ini [pytest] - addopts=-p no:logging --color=yes --timeout=1800 --timeout-method=thread --test-group-random-seed=42 + addopts=-p no:logging --color=yes --timeout=1800 --timeout-method=thread --test-group-random-seed=42 --force-flaky --no-success-flaky-report --max-runs=3 markers = slow_test: marks tests as slow (deselect with '-m "not slow_test"') EOF