-
- Downloads
Verify correctness of ProtectedBranch cache
* Contributes to #366724 * Follow-up for: !92922 * Feature flag: #368279 **Problem** Previous MR added a new implementation of ProtectedBranch cache. We want to verify if it works correctly. **Solution** * Add `dry_run` option to ProtectedBranch cache * Add feature flag to control cache flow New cache implementation with `dry_run: true` will create new cache structures but it will still return non-cached values to the user. If we have an cache inconsistency then we will log an error message.
Showing
- app/models/protected_branch.rb 15 additions, 0 deletionsapp/models/protected_branch.rb
- app/services/protected_branches/cache_service.rb 15 additions, 2 deletionsapp/services/protected_branches/cache_service.rb
- config/feature_flags/development/hash_based_cache_for_protected_branches.yml 8 additions, 0 deletions...s/development/hash_based_cache_for_protected_branches.yml
- spec/models/protected_branch_spec.rb 68 additions, 9 deletionsspec/models/protected_branch_spec.rb
- spec/services/protected_branches/cache_service_spec.rb 32 additions, 0 deletionsspec/services/protected_branches/cache_service_spec.rb
Please register or sign in to comment