Add gradual rollout feature flags for fix pipeline trigger
Summary
- Add two feature flags to control gradual rollout of the
fix_pipeline/v1flow trigger:fix_pipeline_gradual_trigger_group(scoped toroot_group): opts a group into the gradual rollout mechanismfix_pipeline_gradual_trigger_gate(scoped to:request): controls the percentage of events that trigger within opted-in groups
- Groups without the group flag enabled keep existing behavior unaffected
Test plan
- Verify that without
fix_pipeline_gradual_trigger_groupenabled, fix pipeline triggers run as normal - Enable
fix_pipeline_gradual_trigger_groupfor a test group and verifyfix_pipeline_gradual_trigger_gatepercentage controls execution - Verify non-fix-pipeline flow triggers are unaffected by both flags
- RSpec:
ee/spec/models/ee/project_spec.rb(execute_flow_triggers context)