-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
ffmpeg/imagemagick features need feature checks #33092
Comments
comment:1
I don't think we need to tighten These tags are added by runtime |
comment:2
(this code is from #32174) |
This comment has been minimized.
This comment has been minimized.
comment:4
If these doctests are the only ways that we "need" these features, perhaps it would be enough to just mark them as "not tested"? |
comment:5
There are like 79 optional imagemagick doctests and 19 optional ffmpeg doctests:
We can mark two of them as "not tested" if they do not work with all versions of ffmpeg/imagemagick. But I still think it is a good thing to test that the remaining My opinion is that either we expect doctests to work and we test them or we expect doctests not to work and we do not test them. |
comment:6
Replying to @seblabbe:
I agree, I meant these 2 failing ones only. |
comment:7
Those two were only examples. If I turn off all the features that Gentoo lets me turn off on my desktop (some are required by other packages),
|
comment:8
I see. Can you provide the log of the failing doctests here or somewhere? |
Attachment: ffmpeg-imagemagick.log |
comment:9
Replying to @seblabbe:
Sure, I just attached it. |
comment:10
Thank you for the log. I see the error message Also I see:
which does not say much about the error. I think the |
comment:11
It looks like most of the disabled formats are absent from the list, but SVG and SVGZ (also disabled) appear with mode
|
comment:12
The content of the second column is not the same in my case:
Most of the doctests are doing a conversion (bunch of pngs) -> gif. Do you think something based on
could be a good test to detect that For info, for me it gives this:
|
comment:13
Replying to @seblabbe:
I suppose, but you would need to somehow test for read support of PNGs and write support of GIFs. Personally I would just try to convert a 1x1 pixel from png to gif and see if it works. |
comment:14
Good idea, I will post a branch soon. |
Commit: |
Branch: u/slabbe/33092 |
Author: Sébastien Labbé |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:17
Needs review! Also, I would be curious to see the following outputs with the current branch for your machine:
Also this allows to run tests on the 5 failings files and list the skipped doctects:
For comparison, for me, it gives this:
|
comment:19
Most of the errors in the attached log were coming from imagemagick. I wait to get new inputs before touching ffmpeg features. |
comment:20
I get "not functional",
but it looks like the
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:77
Replying to @orlitzky:
Thanks for suggesting an alternative. I did just that in a commit. I hope I fixed the good lines. |
comment:78
All passing now, thank you! I have one last nit: I think + # Alternate way of raising the error (less verbose)
+ #result.check_returncode() |
comment:80
Thanks for catching these. I did 2 commits. |
comment:81
Thanks again. |
Changed reviewer from Julian Rüth to Julian Rüth, Michael Orlitzky |
comment:82
I think this ticket should go to 9.5, but it seems for the 9.5 cycle, there was no period within the early rc candidates which was devoted to merging a bunch of tickets fixing just "defects". I think the 9.5 version would be better if more tickets of type "defect" with positive review were merged. |
comment:83
Yes, otherwise the 9.5 test suite is going to fail all over the place. Same for the lrslib ticket. |
comment:84
(and it's a regression, since ffmpeg tests weren't enabled in 9.4 when ffmpeg was disabled) |
Changed branch from u/slabbe/33092 to |
comment:86
Probably an improvement but still broken on the buildbot: followup at #33219 |
Changed commit from |
comment:88
Another follow-up to fix an issue observed by Justin on MacOSX needs review at #33231 |
We have optional tests that make use of these packages, for example:
These tests are run whenever the corresponding "feature" is available, but the feature checks look only for the
convert
andffmpeg
programs. Both imagemagick and ffmpeg can be built without support for (say) webm files, making the tests above fail. To avoid spurious failures, the features should test for the necessary file format support, likely in theis_functional()
method.CC: @seblabbe
Component: packages: optional
Author: Sébastien Labbé
Branch:
1678c7f
Reviewer: Julian Rüth, Michael Orlitzky
Issue created by migration from https://trac.sagemath.org/ticket/33092
The text was updated successfully, but these errors were encountered: