fix(call): skip preview cleanup for non-mp4 recordings - #5595
Conversation
Signed-off-by: Mr-Neutr0n <harikp2002@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe preview-key derivation now checks that the recording filename ends with 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi @Mr-Neutr0n thanks for the contribution, however I'm going to close this as the current method takes the key as the SSOT which is given to us from livekit. This could change if we ever update our video recording pipeline or if they do so we should not make assumptions like this. |
Problem
When a call record has no stored preview key, deletion derives fallback preview paths from the recording key. The helper derived paths for every filename, even though the preview producer only handles
.mp4recordings. A non-MP4 recording could therefore trigger deletion attempts for paths that cannot exist.Fix
Return no derived preview key unless the recording filename ends in
.mp4, and cover the non-MP4 case with a regression test.Verification
cargo check -p call --no-default-features --features portscargo fmt --all -- --checkThe focused unit target is included, but this checkout cannot compile the full call test binary because existing SQLx tests require unavailable query-cache entries.