fix: make automation completion evidence durable
CI / verify (push) Canceled after 0s

Persist successful watched-file uploads in a dedicated fsync-backed ledger before exposing completion to the renderer. Match entries by normalized full path, hoster, size, and modification time so restart reconciliation skips unchanged completed files while changed files and explicit manual retries remain available.

Remove restored queue ghosts from the ledger even when history and user upload logging are unavailable. Preserve per-hoster partial completion, capture missing file metadata asynchronously, fail closed on corrupted or unwritable evidence, and keep local persistence failures outside automatic upload retries.

Stream managed upload logs with bounded lines, bytes, files, directories, and result counts. Include numbered rotations, reject unconfirmed rows, share concurrent scans through a generation-safe cache, invalidate after successful appends, avoid synchronous configuration and directory reads, and close streams on every path.
This commit is contained in:
Sucukdeluxe
2026-08-27 15:14:43 +02:00
parent 7b514a0c1e
commit d9c66fe20f
21 changed files with 1226 additions and 136 deletions
+1
View File
@@ -489,6 +489,7 @@ class UploadManager extends EventEmitter {
finalStatus = status;
const result = {
jobId,
hoster: task.hoster,
status,
error: payload.error || null,