Skip to content

Commit 11a2e45

Browse files
ci: Reduce pytest reruns from 10 to 4 to improve CI stability and resource usage
While reruns are useful for mitigating flaky tests, a high rerun count significantly increases execution time for long-running integration tests (e.g. regtest / Docker-based setups). In the worst case, a single flaky test can run for nearly an hour, increasing the risk of GitHub Actions runner timeouts and unnecessary resource consumption. Reducing the reruns to 4 provides a better balance by: - Limiting excessive re-execution of long-running tests - Reducing overall CI runtime and runner usage - Surfacing persistent or systemic issues earlier, rather than masking them with repeated retries If a test consistently requires more than a few reruns to pass, it is likely indicative of a real issue rather than transient flakiness.
1 parent 2bba6f0 commit 11a2e45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ env:
1616
RUST_PROFILE: release
1717
SLOW_MACHINE: 1
1818
CI_SERVER_URL: "http://35.239.136.52:3170"
19-
PYTEST_OPTS_BASE: "--reruns=10 -vvv --junit-xml=report.xml --timeout=1800 --durations=10"
19+
PYTEST_OPTS_BASE: "--reruns=4 -vvv --junit-xml=report.xml --timeout=1800 --durations=10"
2020

2121
jobs:
2222
prebuild:
2323
name: Pre-build checks
2424
runs-on: ubuntu-24.04
25-
timeout-minutes: 120
25+
timeout-minutes: 60
2626
if: |
2727
github.event.action != 'edited' ||
2828
contains(github.event.pull_request.body, 'Changelog')

0 commit comments

Comments
 (0)