Skip to content

Enable cache to run against Redis Cluster on CI

What does this MR do and why?

This MR merges into !120251 (merged). It adds cache into the config/redis.yml.example to run the application against specs in CI with cache pointing to the Redis Cluster.

This MR updates all components affected, mainly the repository cache and 1 missed component (markdown cache). It updates specs to work with both Redis and Redis Cluster.

TODO chores after MR is ok-ed

  • fix feature_category complaints not sure who should own these
  • clean up redis._client.is_a?(Redis::Cluster) pattern
  • clean up very ugly bulk+batched unlink/del pattern

Note that pipeline jobs marked single-redis do not have Redis Cluster involved in the rspec run.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

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 Sylvester Chin

Merge request reports