Skip to content

Fix ffmpeg build timeout in OSX builds #139

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

Closed
native-api opened this issue Nov 1, 2018 · 1 comment · Fixed by #144
Closed

Fix ffmpeg build timeout in OSX builds #139

native-api opened this issue Nov 1, 2018 · 1 comment · Fixed by #144

Comments

@native-api
Copy link
Contributor

Actual behaviour

OSX builds error with Timeout (20 minutes) reached. Terminating "brew install -v ffmpeg --without-x264 --without-xvid --without-gpl"

Sample failure: https://travis-ci.org/native-api/opencv-python/jobs/447134752

Diagnostics

I'm playing around with diagnostics in https://github.com/native-api/opencv-python/tree/remove_ffmpeg_options

The best fix would probably be to cache everything: https://stackoverflow.com/questions/39930171/cache-brew-builds-with-travis-ci

I'm currently trying to cache everything brew possible -- retain download cache, make bottles from built packages for later use. Not sure if it's safe to cache installed packages (/usr/local/Cellar and usr/local/opt, maybe /usr/local in its entirety), will try it only if the former is not sufficient.

Unfortunately, if we must build everything from source at some point, we'll have to do builds in a few stages: make some envvar like CACHE_BOOTSTRAP and run only a part of the work, saving results into the cache; them run without the variable, using the cache to do the rest.

@native-api
Copy link
Contributor Author

According to https://api.travis-ci.org/v3/job/449597543/log.txt, there's no ffmpeg bottle for Travis environment:

+++(config.sh:59): pre_build(): brew info ffmpeg
+++(config.sh:59): pre_build(): head -n 1
++(config.sh:59): pre_build(): INFO='ffmpeg: stable 4.0.2, HEAD'
++(config.sh:60): pre_build(): echo 'ffmpeg: stable 4.0.2, HEAD'
ffmpeg: stable 4.0.2, HEAD

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 a pull request may close this issue.

1 participant