Skip to content

Enforce db:check-migrations job

Krasimir Angelov requested to merge ka/enforce-db-check-migrations into master

What does this MR do and why?

There's been a lot of cases lately where changes merged to db/strcuture.sql do not match the actual changes generated from migrations.

These are some of the recent cases (from the last two months):

Most, if not all, were caught by the db:check-migrations job, but as this job is allowed to fail, it was ignored.

This MR updates job to no longer be allowed to fail. For the very few valid cases when it fails with false positive, the checks can be skipped if pipeline:skip-check-migrations label is present on the MR.

MR acceptance checklist

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

Examples

Edited by Krasimir Angelov

Merge request reports