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:
@@ -11,6 +11,7 @@ from transcript_archive.project_key import checkout_of
|
||||
from failure import Failure
|
||||
from claude_code.transcript import first_timestamped_line, read_transcript
|
||||
from rung_replay.command import projects_on
|
||||
from text_files.compressed import read_stored, stored_glob
|
||||
|
||||
# A line that opens with a 🔴 or 🟡 mark, after any list, table, heading or bold markup, as review-findings.md has reviewers report them.
|
||||
FINDING = re.compile(r"^[\s#>*+|-]*(?:\d+[.)]\s*)?[*_]*\s*(?:🔴|🟡)")
|
||||
@@ -126,8 +127,8 @@ def archived_rounds(reviewer: str, model: str, root: pathlib.Path, home: pathlib
|
||||
|
||||
|
||||
def chunk_rounds(reviewer: str, checkout: str, chunk: pathlib.Path) -> list[Round]:
|
||||
copies = sorted(chunk.glob("*.jsonl"))
|
||||
began = parse_entry(first_timestamped_line(copies[0].read_bytes())) if copies else None
|
||||
copies = stored_glob(chunk, "*.jsonl")
|
||||
began = parse_entry(first_timestamped_line(read_stored(copies[0]))) if copies else None
|
||||
if not began or not began.timestamp:
|
||||
return []
|
||||
found = []
|
||||
|
||||
Reference in New Issue
Block a user