Skip to content
GitLab
Next
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 55.2k
    • Issues 55.2k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1.6k
    • Merge requests 1.6k
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • GitLabGitLab
  • Issues
  • #320895
Closed
Open
Issue created Feb 09, 2021 by Kamil Trzciński@ayufanMaintainer

[Feature flag] Rollout of `retarget_merge_requests`

What

Remove the :retarget_merge_requests feature flag introduced with !53710 (merged).

Owners

  • Team: Memory
  • Most appropriate slack channel to reach out to: #g_memory
  • Best individual to reach out to: @ayufan

Expectations

What are we expecting to happen?

MRs that have remove source branch will trigger to retarget automatically MRs targeting the branch to be removed.

Screenshot_2021-02-12_at_12.39.21

What might happen if this goes wrong?

The retarget does not happen.

Beta groups/projects

If applicable, any groups/projects that are happy to have this feature turned on early. Some organizations may wish to test big changes they are interested in with a small subset of users ahead of time for example.

  • gitlab-org/gitlab project: /chatops run feature set --project=gitlab-org/gitlab retarget_merge_requests true
  • gitlab-org/gitlab-runner project: /chatops run feature set --project=gitlab-org/gitlab-runner retarget_merge_requests true
  • gitlab-org/charts/gitlab-runner project: /chatops run feature set --project=gitlab-org/charts/gitlab-runner retarget_merge_requests true
  • gitlab-org/ci-cd/custom-executor-drivers/autoscaler project: /chatops run feature set --project=gitlab-org/ci-cd/custom-executor-drivers/autoscaler retarget_merge_requests true
  • gitlab-org/ci-cd/shared-runners/images/macstadium/orka project: /chatops run feature set --project=gitlab-org/shared-runners/images/macstadium/orka retarget_merge_requests true
  • gitlab-org/gitlab-pages project: /chatops run feature set --project=gitlab-org/gitlab-pages retarget_merge_requests true

Roll Out Steps

  • Enable on staging (/chatops run feature set retarget_merge_requests true --staging)
  • Test on staging
  • Ensure that documentation has been updated
  • Enable on GitLab.com for individual groups/projects listed above and verify behaviour (/chatops run feature set --project=gitlab-org/gitlab retarget_merge_requests true)
  • Coordinate a time to enable the flag with the SRE oncall and release managers
    • In #production mention @sre-oncall and @release-managers. Once an SRE on call and Release Manager on call confirm, you can proceed with the rollout
  • Announce on the issue an estimated time this will be enabled on GitLab.com
  • Enable on GitLab.com by running chatops command in #production (/chatops run feature set retarget_merge_requests true)
  • Cross post chatops Slack command to #support_gitlab-com (more guidance when this is necessary in the dev docs) and in your team channel
  • Announce on the issue that the flag has been enabled
  • Remove feature flag and add changelog entry
  • After the flag removal is deployed, clean up the feature flag by running chatops command in #production channel

Rollback Steps

  • This feature can be disabled by running the following Chatops command:
/chatops run feature set --project=gitlab-org/gitlab retarget_merge_requests false
Edited Mar 03, 2021 by Kamil Trzciński
Assignee
Assign to
Time tracking