mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 22:31:48 +01:00
gci: Switch to the flaky plugin
rerunfailures keeps not working.
This commit is contained in:
parent
62cb1c3fbc
commit
14b64ecc7e
1 changed files with 3 additions and 4 deletions
7
.github/workflows/ci.yaml
vendored
7
.github/workflows/ci.yaml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue