GitHub: add --durations=10 to pytest runs.
What changed, and why it matters
This commit only adds a pytest command-line option that prints how long each slow test took. It does not change any application code, security settings, or test behavior. There is no security relevance.
No action required. The change is a benign CI observability improvement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit appends --durations=10 to PYTEST_OPTS in six GitHub Actions CI workflow jobs. This pytest flag causes the test runner to list tests that took 10 seconds or longer after the run completes. It is a reporting/observability change only; it does not alter test selection, timeouts, compilation flags, network configuration, or any Core Lightning source code.
Changed components
.github/workflows/ci.yamlInspect captured patch +6 / −6
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 78fc45ad..31c1e70c 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
@@ -241,7 +241,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:
@@ -350,7 +350,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:
@@ -421,7 +421,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:
@@ -489,7 +489,7 @@ jobs:
env:
VALGRIND: 0
GENERATE_EXAMPLES: 1
- PYTEST_OPTS: --timeout=1200
+ PYTEST_OPTS: --timeout=1200 --durations=10
TEST_NETWORK: regtest
needs:
- compile
@@ -528,7 +528,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:
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.