The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test: CI diagnostics for geometric repack (temporary)
teknium1b5cd95565c13
diff --git a/tests/hermes_cli/test_worktree_selfheal.py b/tests/hermes_cli/test_worktree_selfheal.pyindex a7b7e0e8f56..ab63d019945 100644--- a/tests/hermes_cli/test_worktree_selfheal.py+++ b/tests/hermes_cli/test_worktree_selfheal.py@@ -126,7 +126,15 @@ class TestMaintainPackHealth:cli._maintain_pack_health(str(repo))after = self._pack_count(repo)- assert after <= 2, f"expected consolidation, still {after} packs"+ diag = ""+ if after > 2:+ probe = subprocess.run(["git", "repack", "-d", "--geometric=2", "--write-midx"], cwd=str(repo),+ capture_output=True, text=True)+ diag = (f"\npacks={sorted(p.name for p in (repo / '.git/objects/pack').iterdir())}"+ f"\nrerun rc={probe.returncode} out={probe.stdout!r} err={probe.stderr!r}"+ f"\nafter rerun={self._pack_count(repo)}"+ f"\ncount={_git(repo, 'count-objects', '-v').stdout}")+ assert after <= 2, f"expected consolidation, still {after} packs{diag}"assert after < made, "pack count must strictly decrease"def test_noop_below_threshold(self, repo, monkeypatch):