Let prune delete old .partial uploads and remote info count them (closes #466) #474

Open
clawbot wants to merge 6 commits from issue-466-prune-partial-uploads into next
pull from: issue-466-prune-partial-uploads
6 Commits
Author SHA1 Message Date
sneak 59664f219e Test that a failed .partial delete fails prune
check / check (push) Waiting to run
Nothing tested that prune exits non-zero and counts
partial_uploads_failed when a .partial object cannot be deleted, so
dropping that branch from pruneDeleteFailures passed the suite. The new
test fails every delete through faultstore and checks both.

Model: opus-5-5
2026-11-19 07:53:03 +00:00
sneak 92296daf52 Mention .partial objects in the help and config init text
prune --help, remote info --help, the snapshot create --prune flag, the
config init template's prune_grace_period comment and the
runPostBackupPrune comment each listed what prune deletes or remote info
counts, and none named the .partial objects this change adds. They do
now; the --prune flag refers to prune instead of repeating its list.

Model: opus-5-5
2026-11-19 07:47:00 +00:00
sneak 332c2d30a2 Shorten the README's opening sentence for --prune
Adding .partial objects made the first sentence of the --prune bullet
about 70 words long, chaining three cleanup steps with "and ..., and".
It now says the flag deletes from the destination store what prune
deletes there; the prune section lists what that is.

Model: opus-5-5
2026-11-19 07:46:03 +00:00
sneak 18961fa52f Name prune in the docs sentence on .partial age
In docs/REPOSTRUCTURE.md the sentence on the age of a .partial object
began with "It" right after a sentence about the new snapshot, so it
read as the snapshot deleting the object. It now says "Prune".

Model: opus-5-5
2026-11-19 07:45:42 +00:00
sneak 3d0222d644 Reword the .partial sentences that stack clauses
The sentences added for .partial objects in README.md,
docs/REPOSTRUCTURE.md, the example config and the PruneGracePeriod
comment read "a .partial object an upload cut off part-way left" and
"how old a .partial object a killed upload left must be": the verb
arrives late and "cut off" reads as the verb. They now say "left by a
killed upload".

Model: opus-5-5
2026-11-19 07:45:34 +00:00
sneak 52fada5236 Let prune delete old .partial uploads and remote info count them (closes #466)
check / check (push) Waiting to run
A killed upload leaves a `.partial` object that only remote nuke
removed, and that remote info never showed.

The storage interface's DeletePartialUploads becomes ListPartialUploads,
which returns each such object's key, size and time; Delete removes it.
prune deletes those under metadata/ and blobs/ once older than
prune_grace_period, and reports kept, deleted and failed counts. remote
info counts them on their own line and in --json. remote nuke lists and
deletes them like any other object, and now names any it could not
delete.

Model: opus-5-5
2026-11-19 07:31:08 +00:00