Set up Gitaly incrementally in test
Setting up Gitaly in test can be time consuming, and that's annoying.
To make it reliable and (semi) fast we should better rely on the robustness of Gitaly's Makefile and let make figure out what to rebuild, instead of deleting all, cloning and building from scratch.
Proposal
-
git fetch $(cat GITALY_SERVER_VERSION)to pull correct revision -
git checkout $(cat GITALY_SERVER_VERSION)to check it out -
git cleanto remove unwanted files make all git- Profit!
Things to keep in mind
-
There is a gitlab:gitaly:test_installthat does not build Gitaly, but copies it. If the speed up achieved is big enough we might be able to delete that target and use regulargitlab:gitaly:installinstead -
GDK seems to delete gitlab/tmp/tests/gitalysometimes, we have to get rid of that. gitlab-development-kit!2306 (merged) -
...?
Edited by Toon Claes