Skip to content

WIP | Make cache smarter

Marin Jankovski requested to merge reorder_dependencies into master

@gitlab-build-team I haven't had any chance to work on this this week so I am pushing a MR to get some feedback for the next week.

The idea here is the following:

  • Make every branch use its own cache. This makes sure that branches cannot dirty the cache of others
  • If the branch doesn't have cache, fetch cache from master. This builds new cache for the branch
  • If we pushed a tag, parse the tag and try to fetch the branch cache of the closest tag. This will try to make tag builds faster
  • Use ccache to speed up compiling. The overal cache size is going to grow but not too much. The speed increase is noticable

This MR is far from done. It needs code refactor and also specs. But this is the smallest thing we can do without redoing our whole build infrastructure. Please let me know what you think and if you have better ideas :)

Merge request reports