Skip to content

Generate repository backup refs files in tests

James Fargher requested to merge add_backup_refs_files into master

What does this MR do and why?

#357044 (closed)

While refs files have been generated in backups for some time now, they were never used for restores and so never added to tests. Soon we will use these on restore to detect empty repository backups. To prepare for that we add these refs files now.

The refs file in backups were introduced with incremental backups in %15.3 via #355945 (closed). Since it is forbidden to restore a backup from a different major release, we can expect that all backups have refs files. See https://gitlab.com/gitlab-org/gitlab/-/blob/de261c5648ce232c4d1a62c77cab98c6601d4c24/lib/backup/manager.rb#L420

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Vasilii Iakliushin

Merge request reports

Loading