Analyse test coverage for migration types
-
Explore differences between various migration types: post-deploy, background, pre -
Analyse migration unit tests and identify if there are gaps -
Create follow up issues to improve coverage if gaps identified
Migration related notes
> post-migrations shouldn't contain schema changes critical for the application to work. These are limited to data migrations, background migrations, or DDL operations that are not strictly required for the application to operate (e.g. adding/removing indexes)To perform a zero-downtime upgrade it's expected for self-managed to run post-deploy migrations when updating to a newer version. However, it's not uncommon for self-managed to skip these from time to time, when this happens they are referred to the zero-downtime upgrade doc or to version-specific upgrading instructions.
https://gitlab.com/gitlab-com/gl-infra/production/-/issues/5494#note_1276985355
Edited by Nailia Iskhakova