Conversation
d279284 to
3f33047
Compare
|
Is it possible to store those videos online (we can provide storage space) and download them on-the-fly so we don't need to add so much binary data to the git? |
|
Good idea. If you could upload them to a server and provide me a link to them, that would be great! |
Tests/Assets/download_videos.py
Outdated
|
|
||
| # URL and desired file names of four videos to be downloaded | ||
| VIDEOS = [ | ||
| ('https://www.sample-videos.com/video/mp4/240/big_buck_bunny_240p_1mb.mp4', 'bird.m4v'), |
There was a problem hiding this comment.
These links must be updated :D
|
if we upload it somewhere we have the same issues as in the mainrepo which is tests intermittedly failing because of slow connection or failing connection and if the tests are not reliable they're useless |
|
Then we should have a git submodule for the files. Adding 6MB of binary blobs to the git just for testing will increase download time and used disk space for everyone, so it would be nicer to optionalize this. |
|
Can we look into best practices for this usecase? We're not the only ones who deal with this problem so i'd like to know how other projects handle this case |
|
Git-LFS is an option, but a pain to synchronize between repos. The other is a local cache from distant files, like the contrib tarballs (SHA-512) and is probably the simplest. |
|
Git-LFS is for large files, we're talking 1,5 MB here and isn't absolutely common to check in files for testing into a repo ? |
|
btw don't get me wrong, this is absolutely a valid point that we might unnecessarily enlarge our repository here. I could've sworn though that checking test data into your repository is common practice so I didn't even second guess it. |
e22a8c3 to
e02937d
Compare
Tests/Assets/download_videos.py
Outdated
|
|
||
| # URL and desired file names of videos to be downloaded | ||
| VIDEOS = [ | ||
| ('https://www.sample-videos.com/video/mp4/240/big_buck_bunny_240p_1mb.mp4', 'bird.m4v'), |
There was a problem hiding this comment.
These links will be replaced by links for code.v.o once available
|
could you rebase this on master ? or does circleci failing because of something else ? |
|
The PR for TestAssets hasn’t been merged yet :( I’ll ping thresh |
555d465 to
5b08a75
Compare
1c012ef to
0fb0bf3
Compare
|
From Twitter, it seems like loading the videos from the test bundle after being downloaded is the best way to go; which is how this PR is setup. Pros are
Cons are
|
4 sample videos have been downloaded and added.
Each video is about 3-5 seconds for the total size of 1.5 MB.
All videos have been downloaded from https://vimeo.com/user32335610 and are under the Creative Commons Public Domain Dedication license.
After downloading the clips, I shortened the videos and changed the file formats to diversify the sample.