Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2023-08-22 16:24:07 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2023-08-28 10:16:10 +0300
commit4f9005d016b1b4861c4c55e707d454a99909e319 (patch)
tree333c58f06b9dbeb0fb965097ee65ded5cb61a78f /Makefile
parente2dc3e5ff5e95db021159be777ef3c37334564f3 (diff)
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 1 insertions, 15 deletions
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 $@