After WebDAV download, assert on-disk size matches the walk size; short bodies from GET Content-Length raise a transient 502 for retry.
Incomplete downloads requeue (info log); after attempts are exhausted they mark FAILED as corrupt_source.
ffprobe/ffmpeg messages such as moov atom not found / Invalid data found when processing input mark the video (and images with the same decode signatures) FAILED immediately with info logs — no per-file error-hub ticket.
Root cause
Truncated or corrupt MP4s in the cloud (or partial downloads). Previously each failure log.warn’d and became an Error Loop ticket (ERRSIG b02ff6578df8 / ERRCLUSTER 1b89541cac39).
Test plan
Unit tests: apps/api/src/archive/corrupt-source.test.ts (4 passed)
CI green on this PR
After merge + webhook deploy: confirm ERRCLUSTER quiet; corrupt files show cloud_videos.error = corrupt_source
Paperclip-Issue: BIT-31621
## Summary
- After WebDAV download, assert on-disk size matches the walk size; short bodies from GET `Content-Length` raise a transient 502 for retry.
- Incomplete downloads requeue (info log); after attempts are exhausted they mark `FAILED` as `corrupt_source`.
- ffprobe/ffmpeg messages such as `moov atom not found` / `Invalid data found when processing input` mark the video (and images with the same decode signatures) `FAILED` immediately with **info** logs — no per-file error-hub ticket.
## Root cause
Truncated or corrupt MP4s in the cloud (or partial downloads). Previously each failure `log.warn`’d and became an Error Loop ticket (ERRSIG `b02ff6578df8` / ERRCLUSTER `1b89541cac39`).
## Test plan
- [x] Unit tests: `apps/api/src/archive/corrupt-source.test.ts` (4 passed)
- [ ] CI green on this PR
- [ ] After merge + webhook deploy: confirm ERRCLUSTER quiet; corrupt files show `cloud_videos.error = corrupt_source`
Paperclip-Issue: BIT-31621
Validate download size against the walk (and Content-Length on GET), retry
incomplete downloads, and mark moov/invalid-data failures FAILED with info
logs so the error hub is not spammed one ticket per corrupt file.
Paperclip-Issue: BIT-31621
Paperclip-Run: 7078521b-48af-4dbc-92d9-b62e88660949
Detail: failed contexts: ci / typescript (pull_request)
The bot did not approve or schedule a merge for this head.
Fix the branch, approve as CTO, or close the PR. The bot re-checks on the next run.
@cto — Gitea autopilot needs a CTO decision on BitReport.pt/photoreport#93: CI is red on the PR head.
- Head: `97f5d8e462c8`
- Detail: failed contexts: ci / typescript (pull_request)
- The bot did **not** approve or schedule a merge for this head.
- Fix the branch, approve as CTO, or close the PR. The bot re-checks on the next run.
<!-- gitea-autopilot-escalation kind=ci_failure sha=97f5d8e462c8 -->
The bot did not approve or schedule a merge for this head.
Fix the branch, approve as CTO, or close the PR. The bot re-checks on the next run.
@cto — Gitea autopilot needs a CTO decision on BitReport.pt/photoreport#93: the PR has merge conflicts.
- Head: `97f5d8e462c8`
- The bot did **not** approve or schedule a merge for this head.
- Fix the branch, approve as CTO, or close the PR. The bot re-checks on the next run.
<!-- gitea-autopilot-escalation kind=conflict sha=97f5d8e462c8 -->
Conflicts in apps/api/src/archive/service.ts with #90 (VideoUnsupported for
sources with no video stream). Both kept: the video catch marks
no_video_stream and corrupt/incomplete sources as FAILED without retry, and
the corrupt_source error and info-level logs from this branch stay.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Content-Lengthraise a transient 502 for retry.FAILEDascorrupt_source.moov atom not found/Invalid data found when processing inputmark the video (and images with the same decode signatures)FAILEDimmediately with info logs — no per-file error-hub ticket.Root cause
Truncated or corrupt MP4s in the cloud (or partial downloads). Previously each failure
log.warn’d and became an Error Loop ticket (ERRSIGb02ff6578df8/ ERRCLUSTER1b89541cac39).Test plan
apps/api/src/archive/corrupt-source.test.ts(4 passed)cloud_videos.error = corrupt_sourcePaperclip-Issue: BIT-31621
@cto — Gitea autopilot needs a CTO decision on BitReport.pt/photoreport#93: CI is red on the PR head.
97f5d8e462c8@cto — Gitea autopilot needs a CTO decision on BitReport.pt/photoreport#93: the PR has merge conflicts.
97f5d8e462c8auto-approve: CI success on
6d82a87dab(gitea_auto_approve_open_prs_once.py)auto-approve: CI success on
6d82a87dab(gitea_auto_approve_open_prs_once.py)auto-approve: CI success on
6d82a87dab(gitea_auto_approve_open_prs_once.py)