[Feature flag] Enable merge_request_refs_cleanup feature flag (#336070) · Issues · GitLab.org / GitLab · GitLab (original) (raw)

Skip to content

[Feature flag] Enable merge_request_refs_cleanup feature flag

Summary

The merge_request_refs_cleanup was added to disable MergeRequestCleanupRefsWorker because it's causing issues on production.

In #296874 (closed), we implemented a more efficient way to schedule them. We need to roll it out slowly and see how it behaves on production before enabling it by default.

Owners

The Rollout Plan

Rollout on GitLab.com for a day since the feature flag doesn't have a target as it's instance wide.

Expectations

What are we expecting to happen?

MergeRequestCleanupRefsWorker gets scheduled and no slowdown will occur on production.

What might happen if this goes wrong?

Apdex of worker will be lower. We should disable the flag again.

What can we monitor to detect problems with this?

Rollout Steps

Rollout on non-production environments

Preparation before production rollout

Global rollout on production

(Optional) Release the feature with the feature flag

If you're still unsure whether the feature is deemed stablebut want to release it in the current milestone, you can change the default state of the feature flag to be enabled. To do so, follow these steps:

WARNING: This approach has the downside that it makes it difficult for us toclean up the flag. For example, on-premise users could disable the feature on their GitLab instance. But when you remove the flag at some point, they suddenly see the feature as enabled and they can't roll it back to the previous behavior. To avoid this potential breaking change, use this approach only for urgent matters.

Release the feature

After the feature has been deemed stable, the clean upshould be done as soon as possible to permanently enable the feature and reduce complexity in the codebase.

Rollback Steps

/chatops run feature set merge_request_refs_cleanup false

Edited Aug 23, 2023 by Kerri Miller