From 8f5c2ac56183619ee794249a6a6d2b69225b14c1 Mon Sep 17 00:00:00 2001 From: "Haoyu (Daniel)" Date: Sat, 26 Oct 2024 17:16:30 +0800 Subject: [PATCH] loose hard threshold to 100%, as it appear macos runner is prone to fluctuation --- tests/performance/test_import_time.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/performance/test_import_time.py b/tests/performance/test_import_time.py index c33381fbf48..66b790fba08 100644 --- a/tests/performance/test_import_time.py +++ b/tests/performance/test_import_time.py @@ -3,6 +3,13 @@ NOTE: - Toggle the "GEN_REF_TIME" to generate reference import time. + +Last update: 2024-10-26 + +Runner specs: +Linux: 4 CPU +Windows: 4 CPU +macOS: 3 CPU (M1) """ from __future__ import annotations @@ -69,7 +76,7 @@ def test_get_ref_import_time() -> None: @pytest.mark.skipif(GEN_REF_TIME, reason="Generating reference import time.") -def test_import_time(grace_percent: float = 0.20, hard_percent: float = 0.50) -> None: +def test_import_time(grace_percent: float = 0.5, hard_percent: float = 1.0) -> None: """Test the import time of core modules to avoid performance regression. Args: