From a6f45daec5eaa7d2c9be275550824e4d7c77e1cb Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 24 Oct 2025 12:13:19 +1030 Subject: [PATCH] GitHub: add --durations=10 to pytest runs. This allows us to show what tests are slowest, by showing the duration for anything which took 10 seconds or longer. Signed-off-by: Rusty Russell --- .github/workflows/ci.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index de198b3cc678..dde0030b5a08 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -89,7 +89,7 @@ jobs: - name: Check source env: VALGRIND: 0 - PYTEST_OPTS: --timeout=1200 + PYTEST_OPTS: --timeout=1200 --durations=10 run: | uv run make check-source BASE_REF="origin/${{ github.base_ref }}" - name: Check Generated Files have been updated @@ -242,7 +242,7 @@ jobs: timeout-minutes: 120 env: RUST_PROFILE: release # Has to match the one in the compile step - PYTEST_OPTS: --timeout=1200 + PYTEST_OPTS: --timeout=1200 --durations=10 needs: - compile strategy: @@ -351,7 +351,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 + PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 --durations=10 needs: - compile strategy: @@ -422,7 +422,7 @@ jobs: RUST_PROFILE: release SLOW_MACHINE: 1 TEST_DEBUG: 1 - PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 + PYTEST_OPTS: --test-group-random-seed=42 --timeout=1800 --durations=10 needs: - compile strategy: @@ -490,7 +490,7 @@ jobs: env: VALGRIND: 0 GENERATE_EXAMPLES: 1 - PYTEST_OPTS: --timeout=1200 + PYTEST_OPTS: --timeout=1200 --durations=10 TEST_NETWORK: regtest needs: - compile @@ -529,7 +529,7 @@ jobs: timeout-minutes: 120 env: RUST_PROFILE: release # Has to match the one in the compile step - PYTEST_OPTS: --timeout=1200 + PYTEST_OPTS: --timeout=1200 --durations=10 needs: - compile strategy: