Tests: Rerun tests that only barely clear the slowness threshold (#5484)

This commit is contained in:
Ole Schütt 2026-06-29 17:15:06 +02:00 committed by GitHub
parent cbb202218e
commit 9aade48c25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]] = []