Skip to content
代码片段 群组 项目
未验证 提交 a93da703 编辑于 作者: Omar Qunsul's avatar Omar Qunsul 提交者: Stan Hu
浏览文件

Ensure schemas are up-to-date after migration tests complete

If a CI migration leaves the database behind the current database
schema, we need to ensure that the schema is brought up-to-date after
the migrations run to prevent other tests from starting from an
inconsistent state.

This commit consolidates the database cleanup for multiple databases
by ensuring:

1. After a migration context is complete, either recreate the
databases (if the number of columns approaches the max) or migrate all
the schemas back to the latest and drop all data from both databases.

2. After a migration example runs, delete any leftover data for that
specific database.  If a CI migration leaves the database behind the
current database schema, we need to ensure that the schema is brought
up-to-date after the migrations run to prevent putting other tests in
an inconsistent state.

Related MR:
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/100233

Closes https://gitlab.com/gitlab-org/gitlab/-/issues/377796

Changelog: fixed
上级 91d212a7
No related branches found
No related tags found
无相关合并请求
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册