python3Packages.av: fix build#327626
Conversation
Many of the tests depend on sample files fetched over HTTP and they keep adding more. Since they support a caching mechanism, use it to pre‐fetch all the used samples instead. It might be nice to have a package for the full FATE suite, but it’s over 1 GiB in size so I just did this for now. Fixes: ca258d2
|
We might want to reconsider running these tests at all if they require such maintenance overhead or imply huge build time closures. |
|
In this current PR it’s like 16 MiB of samples and one bash script to keep them updated in case they add more; I think it’s fine. The overhead was manually disabling every test that wants a sample file, which should no longer be necessary. There’s upstream issues at PyAV-Org/PyAV#623 and PyAV-Org/PyAV#955 (hi @mweinelt). At some point it might be nice to run the full FATE test suite against our FFmpeg builds, really, at which point we’d have to start thinking about size. |
|
This breaks Home Assistant’s weird PyAV fork thing… I’ll look into it tomorrow. |
|
cc @mweinelt |
|
I just talked with @mweinelt on Matrix and we’re going to try replacing Home Assistant’s outdated PyAV fork with the real thing. Will report back on the |
|
Alright, this has no regressions vs. Hydra on |
Description of changes
Many of the tests depend on sample files fetched over HTTP and they keep adding more. Since they support a caching mechanism, use it to pre‐fetch all the used samples instead.
It might be nice to have a package for the full FATE suite, but it’s over 1 GiB in size so I just did this for now.
Fixes: ca258d2
Going to run a full
nixpkgs-reviewon amaster‐based version of this, but it’s probably fine to merge optimistically.Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.