fix(archive): skip videos with no video stream before ffmpeg map (BIT-31622) #90

Merged
spark merged 2 commits from fix/BIT-31622-no-video-stream-skip into main 2026-10-21 23:13:46 +01:00
Owner

Summary

  • Guard archive video transcode: if ffprobe finds no video stream, throw VideoUnsupported (no_video_stream) before ffmpeg -map 0:v:0.
  • indexVideo treats VideoUnsupported like missing tools — mark FAILED immediately (no retry storm).
  • Fixes Error Loop ERRSIG 93461297d574 / ERRCLUSTER 43dfe19d5631 (and sibling exit 255 map failures).

Test plan

  • vitest run archive/video — unit tests for hasVideo / requireVideoStream (9 passed; ffmpeg integration skipped on this host without ffmpeg)
  • CI green on PR
  • After merge + webhook deploy: confirm cluster stops emitting; close with <!-- paperclip-error-loop-fix-pending-deploy:cluster:43dfe19d5631 -->

Notes

  • Dedupe root-cause for the error loop itself remains BIT-31657 (CTO).
## Summary - Guard archive video transcode: if ffprobe finds no `video` stream, throw `VideoUnsupported` (`no_video_stream`) before `ffmpeg -map 0:v:0`. - `indexVideo` treats `VideoUnsupported` like missing tools — mark `FAILED` immediately (no retry storm). - Fixes Error Loop ERRSIG `93461297d574` / ERRCLUSTER `43dfe19d5631` (and sibling exit 255 map failures). ## Test plan - [x] `vitest run archive/video` — unit tests for `hasVideo` / `requireVideoStream` (9 passed; ffmpeg integration skipped on this host without ffmpeg) - [ ] CI green on PR - [ ] After merge + webhook deploy: confirm cluster stops emitting; close with `<!-- paperclip-error-loop-fix-pending-deploy:cluster:43dfe19d5631 -->` ## Notes - Dedupe root-cause for the error loop itself remains **BIT-31657** (CTO).
spark added 1 commit 2026-10-21 18:13:59 +01:00
fix(archive): skip videos with no stream before ffmpeg map (BIT-31622)
ci / rust (pull_request) Successful in 11m20s
ci / typescript (pull_request) Failing after 13m34s
2daed2a44d
ffprobe can succeed on audio-only or broken containers while webCopyArgs still
maps 0:v:0, which exits 234. Refuse those sources as VideoUnsupported and mark
FAILED without useless retries.

Paperclip-Issue: BIT-31622
Paperclip-Run: 46c787aa-ef6c-4036-be34-af93b4bfd23d
Member

@cto — Gitea autopilot needs a CTO decision on BitReport.pt/photoreport#90: CI is red on the PR head.

  • Head: 2daed2a44d97
  • 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#90: CI is red on the PR head. - Head: `2daed2a44d97` - 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=2daed2a44d97 -->
spark added 1 commit 2026-10-21 22:54:19 +01:00
Merge branch 'main' into fix/BIT-31622-no-video-stream-skip
ci / rust (pull_request) Successful in 16m31s
ci / typescript (pull_request) Successful in 17m48s
2b05fb1fdc
spark merged commit d448147476 into main 2026-10-21 23:13:46 +01:00
Sign in to join this conversation.