unarr/internal/usenet/postprocess
Deivid Soto a5f3f0914a fix(engine): cross-backend integrity guard with retry-then-damaged
A truncated debrid download (in-memory byte counter hit 100% while the
NFS write-back silently dropped most of the bytes) was marked completed.
The 1.1.6 fsync fix closed the debrid-specific hole; this generalizes the
guarantee so "completed" never means a corrupt file on ANY backend.

- IntegrityError + bounded retry: on a corrupt/short result the manager
  re-downloads the same source up to 3x (clean start), then surfaces the
  task as damaged ("corrupt download:" prefix) instead of completing it.
- verify (size mismatch / empty), debrid (incomplete / post-write / flush),
  torrent (BytesMissing), usenet (par2 unrepairable / repair-failed) all
  classify integrity failures so they route through the retry/damaged path.
- scanner: a file ffprobe can't read is emitted as a damaged library_item
  (reason "unreadable") instead of being silently dropped from the sync.
- tests: manager retry-then-success + retry-exhausted-then-damaged,
  verifying->resolving transition, damaged sync item.
2026-06-17 12:58:43 +02:00
..
extract.go fix(security): harden HLS session IDs, /health disclosure, archive password handling 2026-05-15 17:10:42 +02:00
extract_test.go feat(cli): upgrade command, rich status, and version cache 2026-03-31 22:05:43 +02:00
par2.go fix(engine): cross-backend integrity guard with retry-then-damaged 2026-06-17 12:58:43 +02:00
pipeline.go fix(engine): cross-backend integrity guard with retry-then-damaged 2026-06-17 12:58:43 +02:00
pipeline_test.go fix(agent): surface par2/install/NFS failures instead of degrading silently 2026-06-01 15:52:54 +02:00