TST: Enable cache directories on AppVeyor. #8179

Merged
merged 4 commits into from Mar 8, 2017

Conversation

Projects
None yet
4 participants
Member

QuLogic commented Mar 2, 2017

No description provided.

QuLogic added this to the 2.1 (next point release) milestone Mar 2, 2017

Member

QuLogic commented Mar 2, 2017

Grr, of course, in order to get the cache to help, we need to have one run actually work...

Contributor

dstansby commented Mar 2, 2017

I'll watch the Appveyor build and restart it until it passes...

Member

QuLogic commented Mar 3, 2017

If this finally works this time, I'm going to push another commit and hopefully we'll see that the cache is working.

Member

QuLogic commented Mar 3, 2017 edited

Pushed another commit to hopefully fix caching on Python 2; 50% of AppVeyor builds are on Python 2. This line shows that Python 2 is trying to put the tarball into the cache now.

+ except OSError:
+ # Don't care if it exists.
+ pass
+ try:
shutil.copy(tarball_cache_path, tarball_path)
print('Using cached tarball: {}'
.format(tarball_cache_path))
@anntzer

anntzer Mar 3, 2017

Contributor

The except just below could probably be just for OSError?

@QuLogic

QuLogic Mar 8, 2017

Member

This is fixed, BTW.

@NelleV

NelleV Mar 8, 2017

Contributor

👍

QuLogic added some commits Mar 2, 2017

@QuLogic QuLogic TST: Enable cache directories on AppVeyor. d89cd96
@QuLogic QuLogic Use secure links to FreeType tarballs. 3a1a093
@QuLogic QuLogic Try harder to cache FreeType tarball on Python 2. 699e8d4
@QuLogic QuLogic TST: Always delete extra cache files on Travis.
Note, we don't need to do this on AppVeyor because the cache directories
are different.
6253732
Member

QuLogic commented Mar 8, 2017 edited

On Travis, Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 2.7 on macOS and Python nightly are all using the cached tarball now.

AppVeyor is not, still. I don't know what's up with it. Maybe caching only works once its gone through master?

Member

QuLogic commented Mar 8, 2017

When I run this on master in my own copy, AppVeyor includes some more lines about updating the build cache. These do not appear in the builds here, so I assume this won't be enabled until it's merged into master.

Member

QuLogic commented Mar 8, 2017

The second build shows AppVeyor restoring the cache and Matplotlib using the cached tarball, so I think this needs to be merged to have any effect on AppVeyor.

Interestingly, for those builds, I commented out the test run and it turns out that installing dependencies and building Matplotlib (note, this occurs twice on AppVeyor) take up about 50% of the test wall time, except in the last full-test case.

Contributor

anntzer commented Mar 8, 2017

Something like https://github.com/mozilla/sccache / https://github.com/inorton/cclash / https://github.com/frerich/clcache (basically ccache with msvc support) could be useful?

Member

QuLogic commented Mar 8, 2017

I was thinking of something like that, but never investigated it. Probably something for another time, when the build queue is not so long...

Contributor

NelleV commented Mar 8, 2017

I think we can merge this PR. It looks good to me.

@NelleV

NelleV approved these changes Mar 8, 2017

NelleV changed the title from TST: Enable cache directories on AppVeyor. to [MRG+1] TST: Enable cache directories on AppVeyor. Mar 8, 2017

dstansby changed the title from [MRG+1] TST: Enable cache directories on AppVeyor. to TST: Enable cache directories on AppVeyor. Mar 8, 2017

@dstansby dstansby merged commit 6d4eeff into matplotlib:master Mar 8, 2017

5 checks passed

codecov/patch Coverage not affected when comparing 3bfa438...6253732
Details
codecov/project/library 57.91% remains the same compared to 3bfa438
Details
codecov/project/tests 98.56% (target 97.9%)
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Contributor

dstansby commented Mar 8, 2017

Lets see what happens once appveyor gets round to this merge...

QuLogic deleted the QuLogic:appveyor-cache branch Mar 9, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment