Cache silently fails in `cache_dir` is not configured correctly
Zendesk: https://gitlab.zendesk.com/agent/tickets/49272
The customer was having trouble getting caching to work. Builds showed the expected output that indicates cache was corrected saved or extracted:
Checking cache for foo...
Successfully extracted cache
....
Creating cache foo...
dir1/: found 133175 matching files
dir2/: found 2792 matching files
dir3/: found 3154 matching files
We believe the fix is to add a cached_dir
and also add the cache dir to volumes
to fix the problem. I'm waiting to hear if this fixed it. However, is there a way we can make the cache portion of the build output when it's unable to create or extract the cache due to missing configuration?