Skip to content

Create a smaller cache for coverage jobs

David Dieulivol requested to merge ddieulivol-add_ruby_coverage_cache into master

From Draft to Ready

  • All discussions are resolved

Context

Closes #421190 (closed)

What does this MR do and why?

Configure a smaller cache for coverage jobs

For now, this cache will only be used by the rspec:coverage job, but it probably will be expanded to the other jobs extending .coverage-base.

This is done for performance purposes: downloading the cache takes 12 seconds, and we declare 4 gems out of the 70+ that are installed.

Does it work?

Thanks to this test commit, I pushed a cache from this MR:

Performance

We are saving between 14s and 17s 🚀

  • 2s to download the new cache (instead of ~12-15s)
  • 2s for the bundle install (instead of ~6s)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by David Dieulivol

Merge request reports