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:
authorKarthik Nayak <knayak@gitlab.com>2022-09-19 15:04:12 +0300
committerKarthik Nayak <knayak@gitlab.com>2022-09-19 15:39:53 +0300
commitcc04215ebe0904c7be424b718761bbb4501fd4b1 (patch)
treef4dffc8bf4a921e2bbe6a2c347b503a27ec9e9a1
parentb4c1f29c487a41b2e69a31a99f6b0ac462c81ce4 (diff)
featureflag: Delete flag `GitV2371Gl1`
The feature flag `GitV2371Gl1` is completely rolled out in production. Now lets delete the flag. With this change we can follow up with a bump to the minimum version of Git used in Gitlay.
-rw-r--r--internal/git/command_factory_test.go2
-rw-r--r--internal/git/execution_environment.go6
-rw-r--r--internal/metadata/featureflag/ff_git_v2371.go9
-rw-r--r--internal/testhelper/testhelper.go3
4 files changed, 0 insertions, 20 deletions
diff --git a/internal/git/command_factory_test.go b/internal/git/command_factory_test.go
index f20863535..c0af1134b 100644
--- a/internal/git/command_factory_test.go
+++ b/internal/git/command_factory_test.go
@@ -20,7 +20,6 @@ import (
"gitlab.com/gitlab-org/gitaly/v15/internal/git/gittest"
"gitlab.com/gitlab-org/gitaly/v15/internal/gitaly/config"
"gitlab.com/gitlab-org/gitaly/v15/internal/helper/text"
- "gitlab.com/gitlab-org/gitaly/v15/internal/metadata/featureflag"
"gitlab.com/gitlab-org/gitaly/v15/internal/testhelper"
"gitlab.com/gitlab-org/gitaly/v15/internal/testhelper/testcfg"
)
@@ -220,7 +219,6 @@ func TestCommandFactory_ExecutionEnvironment(t *testing.T) {
})
t.Run("set using GITALY_TESTING_BUNDLED_GIT_PATH", func(t *testing.T) {
- ctx := featureflag.ContextWithFeatureFlag(ctx, featureflag.GitV2371Gl1, true)
suffix := "-v2.37.1.gl1"
bundledGitDir := testhelper.TempDir(t)
diff --git a/internal/git/execution_environment.go b/internal/git/execution_environment.go
index 9de1a0b94..b313dce85 100644
--- a/internal/git/execution_environment.go
+++ b/internal/git/execution_environment.go
@@ -27,12 +27,6 @@ var (
ExecutionEnvironmentConstructors = []ExecutionEnvironmentConstructor{
BundledGitEnvironmentConstructor{
Suffix: "-v2.37.1.gl1",
- FeatureFlags: []featureflag.FeatureFlag{
- featureflag.GitV2371Gl1,
- },
- },
- BundledGitEnvironmentConstructor{
- Suffix: "-v2.35.1.gl1",
},
DistributedGitEnvironmentConstructor{},
}
diff --git a/internal/metadata/featureflag/ff_git_v2371.go b/internal/metadata/featureflag/ff_git_v2371.go
deleted file mode 100644
index 86e665a31..000000000
--- a/internal/metadata/featureflag/ff_git_v2371.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package featureflag
-
-// GitV2371Gl1 will enable use of Git v2.37.1.gl1.
-var GitV2371Gl1 = NewFeatureFlag(
- "git_v2371gl1",
- "v15.0.0",
- "https://gitlab.com/gitlab-org/gitaly/-/issues/4194",
- true,
-)
diff --git a/internal/testhelper/testhelper.go b/internal/testhelper/testhelper.go
index 2599eed26..44f691452 100644
--- a/internal/testhelper/testhelper.go
+++ b/internal/testhelper/testhelper.go
@@ -175,9 +175,6 @@ func ContextWithoutCancel(opts ...ContextOpt) context.Context {
// deep in the call stack, so almost every test function would have to inject it into its
// context.
ctx = featureflag.ContextWithFeatureFlag(ctx, featureflag.RunCommandsInCGroup, true)
- // Randomly inject the Git flag so that we have coverage of tests with both old and new Git
- // version by pure chance.
- ctx = featureflag.ContextWithFeatureFlag(ctx, featureflag.GitV2371Gl1, rnd.Int()%2 == 0)
// PraefectGeneratedReplicaPaths affects many tests as it changes the repository creation logic.
// Randomly enable the flag to exercise both paths to some extent.
ctx = featureflag.ContextWithFeatureFlag(ctx, featureflag.PraefectGeneratedReplicaPaths, rnd.Int()%2 == 0)