Gzip loop-claude's archive and the review folders 30 days after each file was last written, and read gzipped files by their plain name
CI / tests (pull_request) Failing after 2m59s
CI / tests (pull_request) Failing after 2m59s
This commit is contained in:
@@ -16,6 +16,7 @@ from transcript_archive.write import archive
|
||||
from claude_code.entries import AssistantTurn
|
||||
from project_config.templates import BRANCH
|
||||
from reading_cost.measure import Checkout, Reading
|
||||
from text_files import compressed
|
||||
from failure import Failure
|
||||
from reading_cost import figures, main, measure
|
||||
from transcript_archive.read import finished_chunks, FinishedChunk
|
||||
@@ -173,6 +174,14 @@ class ReadingCostTool(unittest.TestCase):
|
||||
self.assertEqual((ran.returncode, ran.stdout), (1, ""))
|
||||
self.assertIn("no config names the checkout", ran.stderr)
|
||||
|
||||
def test_measures_a_chunk_whose_archived_transcripts_are_compressed(self):
|
||||
self.archive_chunk(1790000000)
|
||||
for copy in self.archive.rglob("*.jsonl"):
|
||||
self.assertIsNone(compressed.compress(copy))
|
||||
ran = self.run_tool(self.checkout)
|
||||
self.assertEqual(ran.returncode, 0, ran.stderr)
|
||||
self.assertIn("33 new input tokens before the first commit.", (self.checkout / "docs" / "reading-cost.md").read_text())
|
||||
|
||||
def test_appends_each_finished_chunk_once_in_the_order_they_finished_from_a_worktree(self):
|
||||
self.archive_chunk(1790000200)
|
||||
self.archive_chunk(1790000100)
|
||||
|
||||
Reference in New Issue
Block a user