Adjust rollback check logic
What does this MR do and why?
Describe in detail what your merge request does and why.
Now that post deploy migrations are executed independently of the
deploy pipeline, the rollback check logic needs to be adjusted to
consider a rollback unsafe if the target version is older than the
post-deploy version (the version that was in gprd
when the post-deploy
pipeline was executed).
This change is behind a feature flag called rollback_check_post_deploy_pipeline
. We can enable it once we start using the post-deploy migration pipeline. The FF has been created and is disabled: https://ops.gitlab.net/gitlab-org/release/tools/-/feature_flags/224/edit
gitlab-com/gl-infra/delivery#2365 (closed)
Author Check-list
-
Has documentation been updated?
Edited by Reuben Pereira