Skip to content

Support multiple versions of input files

Simon Tomlinson requested to merge use-new-directory-structure into master

This preps the database-testing notifier to receive a new version of the input directory structure. It makes the following changes:

  • Infers the version of the input from a metadata.json file (with no file meaning version 1)
  • Supports a version 2 where each migration is grouped to its own folder.

This is a first step towards recording background migration jobs as individual migrations. We'll need to group the files for each background job in folders because the jobs don't have unique names, and this unifies that future structure with normal migrations.

The gitlab side of this is Refactor database testing output structure (gitlab-org/gitlab!82645 - merged), we need to merge this side first.

Edited by Simon Tomlinson

Merge request reports