Rename loop-claude to build-release, with no alias

This commit is contained in:
2026-12-03 15:22:11 +01:00
parent 38102d5aa5
commit 969190064e
139 changed files with 717 additions and 671 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
"""Gzip each file of loop-claude's archive and the review folders that no tool changes any more, keeping all of them.
"""Gzip each file of build-release's archive and the review folders that no tool changes any more, keeping all of them.
usage: compress-archives
It gzips each file that last changed over 30 days ago: in loop-claude's archive,
$LOOP_CLAUDE_TRANSCRIPTS (default ~/.claude/loop-claude-transcripts), each transcript, *.jsonl;
It gzips each file that last changed over 30 days ago: in build-release's archive,
$BUILD_RELEASE_TRANSCRIPTS (default ~/.claude/loop-claude-transcripts), each transcript, *.jsonl;
in the review folders, ~/.local/state/larv-review, every file but a lock, *.lock. A file's last change is the later
of its mtime and ctime, so a copied or unpacked file counts from when it landed.
@@ -24,7 +24,7 @@ from failure import Failure
from review_rules.review_folder import REPORTS
from text_files.compressed import SUFFIX
# Why 30 days: docs/decisions.md → `archives: gzip each transcript in loop-claude's archive and each file in the review folders 30 days after it last changed, keeping all of them`.
# Why 30 days: docs/decisions.md → `archives: gzip each transcript in build-release's archive and each file in the review folders 30 days after it last changed, keeping all of them`.
AGE_DAYS = 30
@@ -101,10 +101,10 @@ class Main(unittest.TestCase):
root = mock.Mock(**{"rglob.return_value": [packed, link, gone, kept]})
self.assertEqual(main.old_files(root, "*.jsonl", NOW), [kept])
def test_reads_the_archive_where_loop_claude_transcripts_puts_it(self):
def test_reads_the_archive_where_build_release_transcripts_puts_it(self):
moved = self.home / "elsewhere"
(self.home / ".claude" / "loop-claude-transcripts").rename(moved)
code, _, err = self.run_main(env={"LOOP_CLAUDE_TRANSCRIPTS": str(moved)})
code, _, err = self.run_main(env={"BUILD_RELEASE_TRANSCRIPTS": str(moved)})
self.assertEqual((code, err), (0, ""))
self.assertTrue((moved / "proj" / "c1" / "a.jsonl.gz").is_file())