test_lt_perf.py python
28 lines 1.1 KB
Raw
sha256:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1 docs: MuseHub-first before ISR #74 — staging solidify NEXT Human 9 hours 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:a78e7e5a8740e03315f325d19edeb3aa1b306b3337d04abbaa9a9e0f3bbeb7a1 docs: MuseHub-first before ISR #74 — staging solidify NEXT Human 9 hours ago