report: show its phases as N of M, with progress, elapsed time and ETA (closes #114) #122

Merged
clawbot merged 1 commits from issue-114-report-progress into next 2026-10-16 21:44:55 +02:00
1 Commits
Author SHA1 Message Date
clawbot 3864071c3f report: show its phases as N of M, with progress, elapsed time and ETA (closes #114)
check / check (push) Waiting to run
report now runs in two phases, open and read, under the progress
display scan and trees use, until the summary line. open covers a wait
on a busy database. read counts the records, then reads them in the
same read-only transaction in signature order, the files_signature
index read backwards, so SQLite sorts nothing and the read ends at
exactly its count. The duplicate groups are formed in Go from runs of
equal signatures; only those of the size being read are held, and they
are written, ordered by first path, before the next size. The rows go
through the display's stdout writer. stdout and the summary line are
unchanged.

Judgement call: writing is part of read, not a phase of its own, since each size's rows are written while the read goes on.

Model: opus-5-5
2026-10-16 19:13:20 +00:00