Skip to content

CI: add gitlaly_purge_storage helper

Jason Plum requested to merge rspec-purge-gitaly into master

What does this MR do?

Add a step to spec/features/backups_spec.rb to purge existing Gitaly contents prior to restoring the backup.

This approach is currently naive, and does not loop through the possibility of more than one Gitaly pod. Our CI currently does not deploy > 1, nor Praefect. If / when this changes, this will need to be re-examined.

Related issues

Related to gitlab-org/gitlab#300974 (closed)

Closes #2553 (closed)

Testing

Run a successfull complete pipeline, and then run another. See that QA passes, and that Project.last within Rails is far greater than 1.

Checklist

See Definition of done.

For anything in this list which will not be completed, please provide a reason in the MR discussion.

Required

  • Merge Request Title and Description are up to date, accurate, and descriptive
  • MR targeting the appropriate branch
  • MR has a green pipeline on GitLab.com

Expected (please provide an explanation if not completing)

  • Test plan indicating conditions for success has been posted and passes
  • Documentation created/updated
  • Tests added
  • Integration tests added to GitLab QA
  • Equivalent MR/issue for omnibus-gitlab opened
Edited by Jason Plum

Merge request reports