Do not cache huge junit test artifacts in Redis cache
- See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/30254
- See gitlab-com/gl-infra/production#928 (closed)
- See https://gitlab.com/gitlab-org/gitlab-ee/blob/master/app/models/merge_request.rb#L1197
As part of gitlab-com/gl-infra/production#928 (closed) we became aware that some of the artifacts that we are storing in the Redis cache are huge.
The worst offenders are keys of the form cache:gitlab:*:*:Ci::CompareTestReportsService
.
These are up to 90mb in size.
We use Redis in this context as a high-speed cache. Storing 90mb artifacts in our Redis cache instance has an adverse affect on the availability of GitLab.com (and probably customer sites too) and this needs to be fixed so that these artifacts are not stored here.
cc @dosuken123