Skip to content

Commit

Permalink
loose hard threshold to 100%, as it appear macos runner is prone to f…
Browse files Browse the repository at this point in the history
…luctuation
  • Loading branch information
DanielYang59 committed Oct 26, 2024
1 parent de4dc3b commit 8ca9cc7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/performance/test_import_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.25, hard_percent: float = 1.0) -> None:
"""Test the import time of core modules to avoid performance regression.
Args:
Expand Down

0 comments on commit 8ca9cc7

Please sign in to comment.