-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Travis cache settings seem wrong #408
Comments
TL;DR: we should simply cache the I have experimented a bit with the cache setup in collective.denyroles. Have a look at the buildout time in Travis. The first build, with only one job in the matrix, took 6 minutes, and the next one less than 2 minutes, so the cache was working at that point. .travis.yml was:
Slightly different than current bobtemplates.plone, but working. Later I added more jobs to the matrix, so the builds obviously started taking longer, but I also switched to what bobtemplates.plone currently has, or variants thereof. See this commit. That build took 12 minutes, probably with the previous cache still somewhat working, and later builds 17 to 18 minutes. .travis.yml:
That is a bit of a mess, now that I look at it, because this first sets the download cache to Anyway, a later .travis.yml resulted in good caching, see build 12 taking 18 minutes and the following build 13 (triggered without changes) taking only 6 minutes:
That works, so we could switch to that.
I now realise that the downloads directory will be empty, or actually not even created. It is only used when you set
Latest build number 15 takes less than 5 minutes for 5 jobs, with the longest job taking 1 minute and 9 seconds. That seems pretty good. Does that last setup look good for general usage? I can make a PR then. |
Good catch @mauritsvanrees. If we are only interested in eggs, it makes no sense to cache the downloads folder. If you do a PR, might be you able to fix collective/buildout.plonetest#51 too. |
Downloads do not need to be cached. And for the eggs we were caching the wrong directory. Fixes issue #408.
This has been fixed in #409 |
Currently .travis.yml.bob has:
So shouldn't the
cache: directories
setting containbuildout-cache
instead ofeggs
anddownloads
?It is a bit hard to say for sure, because you don't see what ends up in the Travis cache. I thought I had seen a link where you could download or inspect a cache file, but I do not see it now.
The text was updated successfully, but these errors were encountered: