From 4f9005d016b1b4861c4c55e707d454a99909e319 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Tue, 22 Aug 2023 15:24:07 +0200 Subject: tests: Drop test repository We have converted all of our tests to generate their test data at runtime. Furthermore, all of our benchmarks use a dedicated benchmarking repository. This means that our test repository is completely unused now. Remove the Makefile target to clone and set up the test repository. --- Makefile | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2c516f6cf..a6592ba91 100644 --- a/Makefile +++ b/Makefile @@ -229,7 +229,6 @@ TEST_TMP_DIR ?= ## Directory where Gitaly should write logs to during test execution. TEST_LOG_DIR ?= TEST_REPO_DIR := ${BUILD_DIR}/testrepos -TEST_REPO := ${TEST_REPO_DIR}/gitlab-test.git BENCHMARK_REPO := ${TEST_REPO_DIR}/benchmark.git ## Options to pass to the script which builds the Gitaly gem BUILD_GEM_OPTIONS ?= @@ -372,15 +371,12 @@ run_go_tests += \ endif .PHONY: prepare-tests -prepare-tests: libgit2 prepare-test-repos ${GOTESTSUM} ${GITALY_PACKED_EXECUTABLES} +prepare-tests: libgit2 ${GOTESTSUM} ${GITALY_PACKED_EXECUTABLES} ${Q}mkdir -p "$(dir ${TEST_JUNIT_REPORT})" .PHONY: prepare-debug prepare-debug: ${DELVE} -.PHONY: prepare-test-repos -prepare-test-repos: ${TEST_REPO} - .PHONY: test ## Run Go tests. test: test-go test-gitaly-linters @@ -711,15 +707,5 @@ ${PROTOC_GEN_GO_GRPC}:TOOL_PACKAGE = google.golang.org/grpc/cmd/protoc-gen-go-gr ${PROTOC_GEN_DOC}: TOOL_PACKAGE = github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc ${DELVE}: TOOL_PACKAGE = github.com/go-delve/delve/cmd/dlv -${TEST_REPO}: - # Skip writing the reverse index as otherwise our tests will get confused. - ${GIT} -c pack.writeReverseIndex=false clone --bare ${GIT_QUIET} https://gitlab.com/gitlab-org/gitlab-test.git $@ - @ # Git notes aren't fetched by default with git clone - ${GIT} -C $@ fetch ${GIT_QUIET} origin refs/notes/*:refs/notes/* - ${Q}rm -rf $@/refs - ${Q}mkdir -p $@/refs/heads $@/refs/tags - ${Q}cp ${SOURCE_DIR}/_support/gitlab-test.git-packed-refs $@/packed-refs - ${Q}${GIT} -C $@ fsck --no-progress --no-dangling - ${BENCHMARK_REPO}: ${GIT} clone --bare ${GIT_QUIET} https://gitlab.com/gitlab-org/gitlab.git $@ -- cgit v1.2.3