Remove ci_rate_limit_child_pipelines_per_user feature flag

What does this MR do and why?

Removes the ci_rate_limit_child_pipelines_per_user feature flag now that it is fully rolled out on GitLab.com.

Child pipelines now always count toward the per-user pipeline creation rate limit (pipelines_created_per_user). They still skip the per-project, commit, and user limit (pipelines_create), because child pipelines share their parent's commit.

  • Removes the flag definition and the excluded_child_pipeline? check from Gitlab::Ci::Pipeline::Chain::Limit::RateLimit.
  • Removes the flag-off specs. The child pipeline specs for the enabled behavior stay.
  • Documents how child pipelines count toward each limit in the pipeline creation rate limits docs, with a history entry.

References

Screenshots or screen recordings

Not applicable, no UI changes.

How to set up and validate locally

  1. In the Rails console, set a low per-user limit:

    ApplicationSetting.current.update!(pipeline_limit_per_user: 1)
  2. In a project whose .gitlab-ci.yml triggers a child pipeline, run a pipeline twice within one minute.

  3. The second child pipeline creation is blocked with Too many pipelines created in the last minute. Try again later.

  4. Reset the limit with ApplicationSetting.current.update!(pipeline_limit_per_user: 0).

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Max Fan

Merge request reports

Loading
Loading