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:
Diffstat (limited to 'internal/testhelper')
-rw-r--r--internal/testhelper/configure.go2
-rw-r--r--internal/testhelper/testcfg/binaries.go9
-rw-r--r--internal/testhelper/testdata/home/.config/git/config2
-rw-r--r--internal/testhelper/testdata/home/.gitconfig2
-rw-r--r--internal/testhelper/testserver/gitaly.go7
5 files changed, 5 insertions, 17 deletions
diff --git a/internal/testhelper/configure.go b/internal/testhelper/configure.go
index 7788788a3..6dc326057 100644
--- a/internal/testhelper/configure.go
+++ b/internal/testhelper/configure.go
@@ -111,7 +111,7 @@ func configure() (_ func(), returnedErr error) {
}
}
- // We need to make sure that we're gitconfig-clean: neither Git nor libgit2 should pick up
+ // We need to make sure that we're gitconfig-clean: Git should not pick up
// gitconfig files from anywhere but the repository itself in case they're configured to
// ignore them. We set that configuration by default in our tests to have a known-good
// environment.
diff --git a/internal/testhelper/testcfg/binaries.go b/internal/testhelper/testcfg/binaries.go
index c3d7265c7..8d403e8b0 100644
--- a/internal/testhelper/testcfg/binaries.go
+++ b/internal/testhelper/testcfg/binaries.go
@@ -18,16 +18,11 @@ import (
var buildOnceByName sync.Map
-// BuildGitalyGPG builds the gitaly-git2go command and installs it into the binary directory.
+// BuildGitalyGPG builds the gitaly-gpg command and installs it into the binary directory.
func BuildGitalyGPG(tb testing.TB, cfg config.Cfg) string {
return buildGitalyCommand(tb, cfg, "gitaly-gpg")
}
-// BuildGitalyGit2Go builds the gitaly-git2go command and installs it into the binary directory.
-func BuildGitalyGit2Go(tb testing.TB, cfg config.Cfg) string {
- return buildGitalyCommand(tb, cfg, "gitaly-git2go")
-}
-
// BuildGitalyWrapper builds the gitaly-wrapper command and installs it into the binary directory.
func BuildGitalyWrapper(tb testing.TB, cfg config.Cfg) string {
return buildGitalyCommand(tb, cfg, "gitaly-wrapper")
@@ -107,7 +102,7 @@ func BuildBinary(tb testing.TB, targetDir, sourcePath string) string {
}
buildTags := []string{
- "static", "system_libgit2", "gitaly_test",
+ "gitaly_test",
}
if os.Getenv("GITALY_TESTING_ENABLE_FIPS") != "" {
buildTags = append(buildTags, "fips")
diff --git a/internal/testhelper/testdata/home/.config/git/config b/internal/testhelper/testdata/home/.config/git/config
index aef95e47e..e6dc1af91 100644
--- a/internal/testhelper/testdata/home/.config/git/config
+++ b/internal/testhelper/testdata/home/.config/git/config
@@ -1,4 +1,4 @@
-# We're trying to catch any instances of libgit2 or Git that pick up the
+# We're trying to catch any instances of Git that pick up the
# gitconfig even though they're told not to. If they do pick up this file
# though, then they would fail to parse it and thus return an error, which we
# can detect quite easily.
diff --git a/internal/testhelper/testdata/home/.gitconfig b/internal/testhelper/testdata/home/.gitconfig
index aef95e47e..e6dc1af91 100644
--- a/internal/testhelper/testdata/home/.gitconfig
+++ b/internal/testhelper/testdata/home/.gitconfig
@@ -1,4 +1,4 @@
-# We're trying to catch any instances of libgit2 or Git that pick up the
+# We're trying to catch any instances of Git that pick up the
# gitconfig even though they're told not to. If they do pick up this file
# though, then they would fail to parse it and thus return an error, which we
# can detect quite easily.
diff --git a/internal/testhelper/testserver/gitaly.go b/internal/testhelper/testserver/gitaly.go
index 6baae7859..8cc44245c 100644
--- a/internal/testhelper/testserver/gitaly.go
+++ b/internal/testhelper/testserver/gitaly.go
@@ -18,7 +18,6 @@ import (
"gitlab.com/gitlab-org/gitaly/v16/internal/git/gittest"
"gitlab.com/gitlab-org/gitaly/v16/internal/git/housekeeping"
"gitlab.com/gitlab-org/gitaly/v16/internal/git/localrepo"
- "gitlab.com/gitlab-org/gitaly/v16/internal/git2go"
"gitlab.com/gitlab-org/gitaly/v16/internal/gitaly/config"
"gitlab.com/gitlab-org/gitaly/v16/internal/gitaly/config/auth"
"gitlab.com/gitlab-org/gitaly/v16/internal/gitaly/hook"
@@ -268,7 +267,6 @@ type gitalyServerDeps struct {
packObjectsLimiter limiter.Limiter
limitHandler *limithandler.LimiterMiddleware
repositoryCounter *counter.RepositoryCounter
- git2goExecutor *git2go.Executor
updaterWithHooks *updateref.UpdaterWithHooks
housekeepingManager housekeeping.Manager
backupSink backup.Sink
@@ -343,10 +341,6 @@ func (gsd *gitalyServerDeps) createDependencies(tb testing.TB, cfg config.Cfg) *
gsd.repositoryCounter = counter.NewRepositoryCounter(cfg.Storages)
}
- if gsd.git2goExecutor == nil {
- gsd.git2goExecutor = git2go.NewExecutor(cfg, gsd.gitCmdFactory, gsd.locator, gsd.logger)
- }
-
if gsd.updaterWithHooks == nil {
gsd.updaterWithHooks = updateref.NewUpdaterWithHooks(cfg, gsd.locator, gsd.hookMgr, gsd.gitCmdFactory, gsd.catfileCache)
}
@@ -388,7 +382,6 @@ func (gsd *gitalyServerDeps) createDependencies(tb testing.TB, cfg config.Cfg) *
PackObjectsLimiter: gsd.packObjectsLimiter,
LimitHandler: gsd.limitHandler,
RepositoryCounter: gsd.repositoryCounter,
- Git2goExecutor: gsd.git2goExecutor,
UpdaterWithHooks: gsd.updaterWithHooks,
HousekeepingManager: gsd.housekeepingManager,
PartitionManager: partitionManager,