Skip to content

Tests: fix tests if running with self-built ffmpeg #812

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eromomon
Copy link

@eromomon eromomon commented Aug 8, 2025

If self-building ffmpeg from the tag for development reasons, it's version is set as n6.1.2 (with n-prefix). This causes failures in the torchcodec tests. This patch handles such a case accounting for the n6.1.2 ffmpeg version format.

CC: @scotts, @NicolasHug, @dvrogozh

If self-building ffmpeg from the tag for development reasons, it's
version is set as `n6.1.2` (with n-prefix). This causes failures in
the torchcodec tests. This patch handles such a case accounting
for the `n6.1.2` ffmpeg version format.

Co-authored-by: Dmitry Rogozhkin <[email protected]>
Signed-off-by: Edgar Romo Montiel <[email protected]>
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 8, 2025
@dvrogozh
Copy link
Contributor

@eromomon, linter is likely giving the rightful issue:

test/test_metadata.py:12:1: F401 'torchcodec._core.get_ffmpeg_library_versions' imported but unused

Please, see https://github.com/pytorch/torchcodec/blob/main/CONTRIBUTING.md#code-formatting-and-type-checking on how to run linter locally.

I think MacOS issue might not be related to your change. Let's see linter issue fixed first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants