cache not working

arturo castro's Avatar

arturo castro

10 Jan, 2018 03:37 PM

I'm trying to use ccache with msys2 builds but appveyor seems to not be uploading or downloading the cache, probably something wrong on my config but i can't figure out what.

At the end of a build, i run ccache -s to see the ccache stats and i can see

cache directory                     C:\projects\openframeworks\.ccache
primary config                      C:\projects\openframeworks\.ccache/ccache.conf
secondary config      (readonly)    /usr/etc/ccache.conf
cache hit (direct)                     0
cache hit (preprocessed)               0
cache miss                           141
cache hit rate                      0.00 %
called for link                       11
cleanups performed                     0
files in cache                       460
cache size                         453.1 MB
max cache size                       5.0 GB

but in the next build the stats (by running ccache -s before building) i see:

cache directory                     C:\projects\openframeworks\.ccache
primary config                      C:\projects\openframeworks\.ccache/ccache.conf
secondary config      (readonly)    /usr/etc/ccache.conf
cache hit (direct)                     0
cache hit (preprocessed)               0
cache miss                             0
cache hit rate                      0.00 %
cleanups performed                     0
files in cache                         0
cache size                           0.0 kB
max cache size                       5.0 GB

as if nothing had been stored the cache config in .appveyor looks like:

cache:
    - .ccache

and i'm setting the ccache dir to "%APPVEYOR_BUILD_FOLDER%\\.ccache"

here's the full config just in case:
https://github.com/arturoc/openFrameworks/blob/388a7315cfcd9a0bdc75...

and here the full output
https://ci.appveyor.com/project/arturoc/openframeworks/build/1.0.39...

also this is running on a PR in case it makes any difference

  1. Support Staff 1 Posted by Ilya Finkelshte... on 10 Jan, 2018 05:36 PM

    Ilya Finkelshteyn's Avatar

    Hi Arturo,

    I see that most of your builds are PR builds. Please check Save build cache in Pull Requests in UI, in General settings. Also note that we have presence in 2 data centers each with separate local cache server, so it should take 2-3 builds to populate cache in both of them.

    Ilya.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac