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

  1. git fetch $(cat GITALY_SERVER_VERSION) to pull correct revision
  2. git checkout $(cat GITALY_SERVER_VERSION) to check it out
  3. git clean to remove unwanted files
  4. make all git
  5. Profit!

Things to keep in mind

  • There is a gitlab:gitaly:test_install that 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 regular gitlab:gitaly:install instead
  • GDK seems to delete gitlab/tmp/tests/gitaly sometimes, we have to get rid of that. gitlab-development-kit!2306 (merged)
  • ...?
Edited by Toon Claes