[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 11/21] travis: cache git submodules
From: |
Alex Bennée |
Subject: |
Re: [Qemu-devel] [PATCH v2 11/21] travis: cache git submodules |
Date: |
Thu, 22 Jun 2017 14:51:31 +0100 |
User-agent: |
mu4e 0.9.19; emacs 25.2.50.3 |
Alex Bennée <address@hidden> writes:
> Philippe Mathieu-Daudé <address@hidden> writes:
>
>> Travis caching uses the branch name to store packed cache, so each new branch
>> will trigger a cache miss and will clone all submodules. Subsequent builds
>> will
>> benefit from the cache.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
>
> \o/
>
> Reviewed-by: Alex Bennée <address@hidden>
Hmmm looking deeper it doesn't look as though we are benefiting from the
caching here. The submodule checkout is around 60-70s with some jobs
coming down to 30-40s. The old system seems to be ~20s for the
wget/checkout step (assuming the wget is cached).
>
>
>> ---
>> .travis.yml | 7 ++-----
>> 1 file changed, 2 insertions(+), 5 deletions(-)
>>
>> diff --git a/.travis.yml b/.travis.yml
>> index 62b9dfd2ae..777914f759 100644
>> --- a/.travis.yml
>> +++ b/.travis.yml
>> @@ -7,6 +7,8 @@ compiler:
>> cache:
>> ccache: true
>> timeout: 1200 #
>> https://docs.travis-ci.com/user/caching#setting-the-timeout
>> + directories:
>> + - $HOME/qemu/.git/modules
>> addons:
>> apt:
>> packages:
>> @@ -74,7 +76,6 @@ git:
>> before_install:
>> - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update ; fi
>> - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install libffi gettext
>> glib pixman ; fi
>> - - wget -O -
>> http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar
>> -xvJ
>> - git submodule update --init --recursive
>> before_script:
>> - ./configure ${CONFIG}
>> @@ -113,7 +114,6 @@ matrix:
>> before_install:
>> - sudo apt-get update -qq
>> - sudo apt-get build-dep -qq qemu
>> - - wget -O -
>> http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar
>> -xvJ
>> - git submodule update --init --recursive
>> # Plain Trusty Linux User Build
>> - env: CONFIG="--disable-system"
>> @@ -124,7 +124,6 @@ matrix:
>> before_install:
>> - sudo apt-get update -qq
>> - sudo apt-get build-dep -qq qemu
>> - - wget -O -
>> http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar
>> -xvJ
>> - git submodule update --init --recursive
>> # Trusty System build with latest stable clang
>> - sudo: required
>> @@ -142,7 +141,6 @@ matrix:
>> - travis_retry sudo apt-get update -qq
>> - travis_retry sudo apt-get install -qq -y clang-3.9
>> - sudo apt-get build-dep -qq qemu
>> - - wget -O -
>> http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar
>> -xvJ
>> - git submodule update --init --recursive
>> before_script:
>> - ./configure ${CONFIG} || cat config.log
>> @@ -162,7 +160,6 @@ matrix:
>> - travis_retry sudo apt-get update -qq
>> - travis_retry sudo apt-get install -qq -y clang-3.9
>> - sudo apt-get build-dep -qq qemu
>> - - wget -O -
>> http://people.linaro.org/~alex.bennee/qemu-submodule-git-seed.tar.xz | tar
>> -xvJ
>> - git submodule update --init --recursive
>> before_script:
>> - ./configure ${CONFIG} || cat config.log
--
Alex Bennée
- [Qemu-devel] [PATCH v2 10/21] travis: increase S3 cache timeout, (continued)
- [Qemu-devel] [PATCH v2 10/21] travis: increase S3 cache timeout, Philippe Mathieu-Daudé, 2017/06/21
- [Qemu-devel] [PATCH v2 12/21] travis: build using all available cores, Philippe Mathieu-Daudé, 2017/06/21
- [Qemu-devel] [PATCH v2 13/21] travis: improve ccache use, Philippe Mathieu-Daudé, 2017/06/21
- [Qemu-devel] [PATCH v2 11/21] travis: cache git submodules, Philippe Mathieu-Daudé, 2017/06/21
- [Qemu-devel] [PATCH v2 14/21] travis: dump config.log if ./configure script fails, Philippe Mathieu-Daudé, 2017/06/21
- [Qemu-devel] [PATCH v2 15/21] travis: retry when git submodules initialization fails, Philippe Mathieu-Daudé, 2017/06/21
- [Qemu-devel] [PATCH v2 16/21] travis: split the gprof/gcov job, Philippe Mathieu-Daudé, 2017/06/21
- [Qemu-devel] [PATCH v2 17/21] travis/osx: don't update Homebrew cache, Philippe Mathieu-Daudé, 2017/06/21
- [Qemu-devel] [PATCH v2 18/21] travis/osx: silent texinfo warnings, Philippe Mathieu-Daudé, 2017/06/21
- [Qemu-devel] [PATCH v2 19/21] travis/osx: build using more Xcode versions, Philippe Mathieu-Daudé, 2017/06/21