test_lt_perf.py python
28 lines 1.1 KB
Raw
sha256:c07f2f34a0db9f43fe866f157d1935322008545ff8940c06c7c921eb219c55ab NXP-b DONE: independent BV-r2 pass + ISR (SD-17) Human minor ⚠ breaking 3 days ago
1 """Performance tests for LT loop tightening (§LT.10)."""
2
3 from __future__ import annotations
4
5 import time
6 from pathlib import Path
7
8 from tests.support import KIT_ROOT, load_fixture_config
9 from tools.footprint_coverage import check_footprint_coverage
10 from tools.handover_compact import compact_handover_change_log
11
12
13 def test_coverage_and_compact_finish_quickly(tmp_path: Path) -> None:
14 config = load_fixture_config(tmp_path, "config-git-only.yaml")
15 handover = tmp_path / "docs" / "OVERSEER-HANDOVER.md"
16 handover.parent.mkdir(parents=True, exist_ok=True)
17 bullets = "\n\n".join(f"- **2026-01-01** — entry {i}" for i in range(120))
18 handover.write_text(
19 f"# Handover\n\n<!-- overseer:anchor:change-log -->\n{bullets}\n"
20 "<!-- /overseer:anchor:change-log -->\n",
21 encoding="utf-8",
22 )
23 start = time.monotonic()
24 for _ in range(20):
25 check_footprint_coverage(tmp_path, config, kit=KIT_ROOT)
26 compact_handover_change_log(config, tmp_path, keep=15, write=False)
27 elapsed = time.monotonic() - start
28 assert elapsed < 5.0
File History 1 commit
sha256:c07f2f34a0db9f43fe866f157d1935322008545ff8940c06c7c921eb219c55ab NXP-b DONE: independent BV-r2 pass + ISR (SD-17) Human minor 3 days ago