Skip to content

Fix ffmpeg build timeout in OSX builds #139

Closed
@native-api

Description

@native-api

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions