test_lt_perf.py python
28 lines 1.1 KB
Raw
sha256:0e9549ec7b463911bc08b7d586dc320b1ac9b1f5c943ee7e3865dcc6cb0f6f83 chore(governance): sync handover+roadmap to 84db8c8 (drift:… Human 1 day 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:6abcf1fa82a7a621ccbc945f19acdba5bc0db54569599404a1452fb4a096a199 fix(ISR): default require_independent_second_reviewer to require Human minor 1 day ago