Skip to content
Snippets Groups Projects
Commit 65f2f881 authored by Jason Plum's avatar Jason Plum
Browse files

Merge branch '2024-schema-checks' into 'master'

Update schema checks to be aware of all migrations

Update the schema checks of the `wait-for-deps` pattern to be aware
of all migrations, by directly comparing the entries in the appropriate
directories in the application to the table within the database.

This replaces the previous implementation that looked at the latest dated
migration in the codebase versus the database. That check was naive, and
fast, but problematic for several reasons.

This should address multiple factors:
- support concerns of migrations being milestone ordered
- migrations dated in the past
- failed intermediate migrations, from previous upgrades

Changelog: fixed

Closes #2024

See merge request https://gitlab.com/gitlab-org/build/CNG/-/merge_requests/1859



Merged-by: default avatarJason Plum <jplum@gitlab.com>
Approved-by: default avatarKrasimir Angelov <kangelov@gitlab.com>
Approved-by: default avatarJoão Alexandre Cunha <j.a.cunha@gmail.com>
Approved-by: default avatarJason Plum <jplum@gitlab.com>
Reviewed-by: default avatarJason Plum <jplum@gitlab.com>
Reviewed-by: default avatarJoão Alexandre Cunha <j.a.cunha@gmail.com>
Reviewed-by: default avatarKrasimir Angelov <kangelov@gitlab.com>
Co-authored-by: default avatarJon Jenkins <jjenkins@gitlab.com>
parents b493827c b7d41bd9
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment