Skip to content

Allow metadata files with a single MediaInfo track#771

Open
liam-lloyd wants to merge 1 commit into
mainfrom
per-10638_all_single_mediainfo_track_in_metadata
Open

Allow metadata files with a single MediaInfo track#771
liam-lloyd wants to merge 1 commit into
mainfrom
per-10638_all_single_mediainfo_track_in_metadata

Conversation

@liam-lloyd

Copy link
Copy Markdown
Member

Currently, our metadata attacher lambda expects a MediaInfo object in the metadata file to contain multiple tracks. This isn't always the case, so this commit updates the lambda to accept metadata files with only one track.

Currently, our metadata attacher lambda expects a MediaInfo object in
the metadata file to contain multiple tracks. This isn't always the
case, so this commit updates the lambda to accept metadata files with
only one track.
@codecov

codecov Bot commented Jun 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.55%. Comparing base (b5afd2c) to head (0ea49e1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #771   +/-   ##
=======================================
  Coverage   98.55%   98.55%           
=======================================
  Files         109      109           
  Lines        2777     2777           
  Branches      465      466    +1     
=======================================
  Hits         2737     2737           
  Misses         36       36           
  Partials        4        4           
Flag Coverage Δ
api 98.55% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@cecilia-donnelly cecilia-donnelly left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, this makes perfect sense! Thanks!

I do worry that the overall extraction is a bit fragile, given that it looks like there are several different specific metadata errors (though they seem to be the same general type-mismatch problem) in Sentry. What's your sense of how resilient the process is at the moment? Do individual types of metadata fail individually, or if one fails does the whole process stop?

@cecilia-donnelly

Copy link
Copy Markdown
Member

I didn't run this, since the code change struck me as extremely straightforward and I didn't immediately find an obvious way to create a test file (video/audio, not just the metadata as in the fixture) with just one of these tracks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants