Skip to content

Fix cache poisoning causing pipeline_schedule_policy_spec.rb to fail

Stan Hu requested to merge sh-clean-protected-branch-cache into master

What does this MR do and why?

The introduction of the protected branch caching via the hash_based_cache_for_protected_branches feature flag could cause spec/policies/ci/pipeline_schedule_policy_spec.rb to fail since the protected branch cache might have the wrong values.

To fix this particular issue, clean the Redis cache in the spec.

Closes #371929 (closed)

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 Stan Hu

Merge request reports

Loading