From 9aade48c2594dbd2c2f587aae942cd3903ec1d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Sch=C3=BCtt?= Date: Mon, 29 Jun 2026 17:15:06 +0200 Subject: [PATCH] Tests: Rerun tests that only barely clear the slowness threshold (#5484) --- tests/do_regtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/do_regtest.py b/tests/do_regtest.py index e2c91528c9..045ce266f7 100755 --- a/tests/do_regtest.py +++ b/tests/do_regtest.py @@ -219,7 +219,7 @@ async def main() -> None: if cfg.flag_slow: print("\n" + "-" * 15 + "--------------- Slow Tests ---------------" + "-" * 15) threshold = 2 * percentile(timings, 0.95) - outliers = [r for r in all_results if r.duration > threshold] + outliers = [r for r in all_results if r.duration > 0.95 * threshold] maybe_slow = [r for r in outliers if r.fullname not in cfg.slow_suppressions] num_suppressed = len(outliers) - len(maybe_slow) rerun_tasks: List[Task[BatchResult]] = []