Skip to content

Commit 8a04e74

Browse files
authored
chore: Fix performance tests (#1676)
1 parent 3a55663 commit 8a04e74

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/performance/generate_reports.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,9 @@ def linter_report(report_name: str, **kwargs) -> int: # noqa: ARG001
121121
"""Measure how long it takes to lint all linter test files."""
122122
main_dir = Path(__file__).parent.parent.parent
123123
linter_dir = main_dir / "tests" / "linter"
124+
invalid_rules = ["too-long-variable-name"] # rules that may not work for older versions
124125
with working_directory(linter_dir):
125-
check_files(return_result=True, select=["ALL"], **kwargs)
126+
check_files(return_result=True, select=["ALL"], ignore=invalid_rules, **kwargs)
126127
return len(list(linter_dir.glob("**/*.robot")))
127128

128129

tests/performance/merge_reports.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
import json
1414
from pathlib import Path
1515

16-
from packaging.version import Version
17-
1816
ROOT = Path(__file__).parent.parent.parent
1917
REPORTS_DIR = Path(__file__).parent / "reports"
2018
REPORT_TEST = {
@@ -36,7 +34,7 @@ def load_reports(directory: Path) -> dict[str, dict]:
3634
reports[version_str] = json.loads(report_path.read_text())
3735

3836
# Sort reports by version
39-
return dict(sorted(reports.items(), key=lambda item: Version(item[0])))
37+
return dict(sorted(reports.items(), key=lambda item: item[0]))
4038

4139

4240
def calculate_total_time(data: dict, report_key: str) -> float | None:

0 commit comments

Comments
 (0)