ci: Run with rerunfailures rather than flaky
This commit is contained in:
17
.github/workflows/ci.yaml
vendored
17
.github/workflows/ci.yaml
vendored
@@ -16,6 +16,7 @@ env:
|
||||
RUST_PROFILE: release
|
||||
SLOW_MACHINE: 1
|
||||
CI_SERVER_URL: "http://35.239.136.52:3170"
|
||||
GLOBAL_PYTEST_OPTS: "--reruns=10 -vvv"
|
||||
|
||||
jobs:
|
||||
prebuild:
|
||||
@@ -167,7 +168,7 @@ jobs:
|
||||
# on the integration tests), so run them with `valgrind`
|
||||
name: Run unit tests
|
||||
runs-on: ubuntu-22.04
|
||||
timeout-minutes: 30
|
||||
timeout-minutes: 60
|
||||
env:
|
||||
BOLTDIR: bolts
|
||||
needs:
|
||||
@@ -313,7 +314,7 @@ jobs:
|
||||
run: |
|
||||
env
|
||||
cat config.vars
|
||||
uv run eatmydata pytest tests/test_downgrade.py -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
|
||||
uv run eatmydata pytest tests/test_downgrade.py ${GLOBAL_PYTEST_OPTS} -n ${PYTEST_PAR} ${PYTEST_OPTS}
|
||||
|
||||
integration:
|
||||
name: Test CLN ${{ matrix.name }}
|
||||
@@ -421,7 +422,7 @@ jobs:
|
||||
run: |
|
||||
env
|
||||
cat config.vars
|
||||
VALGRIND=0 uv run eatmydata pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
|
||||
VALGRIND=0 uv run eatmydata pytest tests/ -vvv ${GLOBAL_PYTEST_OPTS} -n ${PYTEST_PAR} ${PYTEST_OPTS}
|
||||
|
||||
integration-valgrind:
|
||||
name: Valgrind Test CLN ${{ matrix.name }}
|
||||
@@ -430,7 +431,7 @@ jobs:
|
||||
env:
|
||||
RUST_PROFILE: release # Has to match the one in the compile step
|
||||
CFG: compile-gcc
|
||||
PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 --durations=10
|
||||
PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 --durations=10 --reruns=10
|
||||
needs:
|
||||
- compile
|
||||
strategy:
|
||||
@@ -491,7 +492,7 @@ jobs:
|
||||
SLOW_MACHINE: 1
|
||||
TEST_DEBUG: 1
|
||||
run: |
|
||||
VALGRIND=1 uv run eatmydata pytest tests/ -vvv -n 3 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
|
||||
VALGRIND=1 uv run eatmydata pytest tests/ ${GLOBAL_PYTEST_OPTS} -n 3 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
|
||||
|
||||
integration-sanitizers:
|
||||
name: Sanitizers Test CLN
|
||||
@@ -501,7 +502,7 @@ jobs:
|
||||
RUST_PROFILE: release
|
||||
SLOW_MACHINE: 1
|
||||
TEST_DEBUG: 1
|
||||
PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 --durations=10
|
||||
PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 --durations=10 --reruns=10
|
||||
needs:
|
||||
- compile
|
||||
strategy:
|
||||
@@ -557,7 +558,7 @@ jobs:
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
uv run eatmydata pytest tests/ -vvv -n 2 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
|
||||
uv run eatmydata pytest tests/ ${GLOBAL_PYTEST_OPTS} -n 2 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
|
||||
|
||||
update-docs-examples:
|
||||
name: Update examples in doc schemas (disabled temporarily!)
|
||||
@@ -674,7 +675,7 @@ jobs:
|
||||
run: |
|
||||
env
|
||||
cat config.vars
|
||||
VALGRIND=0 uv run eatmydata pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
|
||||
VALGRIND=0 uv run eatmydata pytest tests/ ${GLOBAL_PYTEST_OPTS} -n ${PYTEST_PAR} ${PYTEST_OPTS}
|
||||
|
||||
check-flake:
|
||||
name: Check Nix Flake
|
||||
|
||||
@@ -17,6 +17,7 @@ dependencies = [
|
||||
"pyln-grpc-proto",
|
||||
"pytest-trackflaky",
|
||||
"pyln-testing",
|
||||
"pytest-rerunfailures>=16.0.1",
|
||||
]
|
||||
package-mode = false
|
||||
[dependency-groups]
|
||||
|
||||
Reference in New Issue
Block a user