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:
authorJustin Tobler <jtobler@gitlab.com>2023-04-26 23:50:54 +0300
committerJustin Tobler <jtobler@gitlab.com>2023-04-27 00:29:37 +0300
commit0c128b6e131374a2eba1641c7809a9c44ee7b79d (patch)
tree404def7d9c7f37080f4c2e187e13e4e8c11fcd1e
parentfbc8ac89c1c22a2fdd9c83c37a12bfd2a249723a (diff)
cli/praefect: Quarantine tests in cli/praefect
Currently several tests in the cli/praefect package are known to be flaky. These include: - `TestCheckSubcommand/positional_arguments` - `TestDatalossSubcommand` - `TestAcceptDatalossSubcommand` - `TestConfiguration_validate` This change uses `testhelper.SkipQuarantinedTest` to quarantine these tests so it skips test execution until the flakiness is resolved.
-rw-r--r--internal/cli/praefect/subcmd_accept_dataloss_test.go2
-rw-r--r--internal/cli/praefect/subcmd_check_test.go5
-rw-r--r--internal/cli/praefect/subcmd_configuration_validate_test.go2
-rw-r--r--internal/cli/praefect/subcmd_dataloss_test.go2
4 files changed, 11 insertions, 0 deletions
diff --git a/internal/cli/praefect/subcmd_accept_dataloss_test.go b/internal/cli/praefect/subcmd_accept_dataloss_test.go
index 04896cb7b..b2244f480 100644
--- a/internal/cli/praefect/subcmd_accept_dataloss_test.go
+++ b/internal/cli/praefect/subcmd_accept_dataloss_test.go
@@ -19,6 +19,8 @@ import (
)
func TestAcceptDatalossSubcommand(t *testing.T) {
+ testhelper.SkipQuarantinedTest(t, "https://gitlab.com/gitlab-org/gitaly/-/issues/5080")
+
t.Parallel()
const (
vs = "test-virtual-storage-1"
diff --git a/internal/cli/praefect/subcmd_check_test.go b/internal/cli/praefect/subcmd_check_test.go
index fa4055989..aaedc3846 100644
--- a/internal/cli/praefect/subcmd_check_test.go
+++ b/internal/cli/praefect/subcmd_check_test.go
@@ -191,6 +191,11 @@ Checking check 3...Failed (warning) error: i failed but not too badly
for _, tc := range testCases {
t.Run(tc.desc, func(t *testing.T) {
+ testhelper.SkipQuarantinedTest(t,
+ "https://gitlab.com/gitlab-org/gitaly/-/issues/5080",
+ "TestCheckSubcommand/positional_arguments",
+ )
+
var stdout bytes.Buffer
app := cli.App{
Writer: &stdout,
diff --git a/internal/cli/praefect/subcmd_configuration_validate_test.go b/internal/cli/praefect/subcmd_configuration_validate_test.go
index 9cb1364b2..4cf629d1f 100644
--- a/internal/cli/praefect/subcmd_configuration_validate_test.go
+++ b/internal/cli/praefect/subcmd_configuration_validate_test.go
@@ -15,6 +15,8 @@ import (
)
func TestConfiguration_validate(t *testing.T) {
+ testhelper.SkipQuarantinedTest(t, "https://gitlab.com/gitlab-org/gitaly/-/issues/5080")
+
t.Parallel()
praefectBin := testcfg.BuildBinary(t, testhelper.TempDir(t), "gitlab.com/gitlab-org/gitaly/v15/cmd/praefect")
diff --git a/internal/cli/praefect/subcmd_dataloss_test.go b/internal/cli/praefect/subcmd_dataloss_test.go
index 428672248..a4465d1ae 100644
--- a/internal/cli/praefect/subcmd_dataloss_test.go
+++ b/internal/cli/praefect/subcmd_dataloss_test.go
@@ -20,6 +20,8 @@ import (
)
func TestDatalossSubcommand(t *testing.T) {
+ testhelper.SkipQuarantinedTest(t, "https://gitlab.com/gitlab-org/gitaly/-/issues/5080")
+
t.Parallel()
cfg := config.Config{
ListenAddr: ":0",