Put Git repos out of reach of Gitaly
Part of heptapod#1848. Any invocation of `gitlab-mirror` will move the repo to `+hgitaly/hg-git`. We will introduce a Rails batched migration that calls it, but the point is that there will be no race between the migration and incoming pushes. As for testing, we had to introduce the `GitLabMirrorFixture.reload_git_repo()` method. On the fixture, it is possible to go back-and-forth, but in practice, there is no rollback migration out of native in Rails, and `git.py` does not support moving back either.
parent
9ebb33d4fa55
No related branches found
No related tags found
Showing
- heptapod/VERSION 1 addition, 1 deletionheptapod/VERSION
- heptapod/testhelpers/gitlab.py 11 additions, 1 deletionheptapod/testhelpers/gitlab.py
- heptapod/testhelpers/tests/test_gitlab.py 12 additions, 0 deletionsheptapod/testhelpers/tests/test_gitlab.py
- hgext3rd/heptapod/git.py 17 additions, 1 deletionhgext3rd/heptapod/git.py
- hgext3rd/heptapod/tests/git/test_integration.py 26 additions, 5 deletionshgext3rd/heptapod/tests/git/test_integration.py
Loading
Please register or sign in to comment