Skip to content

Commit

Permalink
Merge #137829
Browse files Browse the repository at this point in the history
137829: backup: skip TestDataDriven tests under deadlock r=jeffswenson a=msbutler

Fixes #137821
Fixes #137820
Fixes #137819
Fixes #137818
Fixes #137817
Fixes #137816
Fixes #137815

Release note: none

Co-authored-by: Michael Butler <[email protected]>
  • Loading branch information
craig[bot] and msbutler committed Dec 20, 2024
2 parents cf65619 + 61538db commit a31affb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion pkg/backup/backuptestutils/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ go_library(
"//pkg/kv/kvserver",
"//pkg/sql/sqlstats",
"//pkg/testutils",
"//pkg/testutils/skip",
"//pkg/testutils/sqlutils",
"//pkg/testutils/testcluster",
"//pkg/util",
Expand Down
6 changes: 0 additions & 6 deletions pkg/backup/backuptestutils/testutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"github.com/cockroachdb/cockroach/pkg/kv/kvserver"
"github.com/cockroachdb/cockroach/pkg/sql/sqlstats"
"github.com/cockroachdb/cockroach/pkg/testutils"
"github.com/cockroachdb/cockroach/pkg/testutils/skip"
"github.com/cockroachdb/cockroach/pkg/testutils/sqlutils"
"github.com/cockroachdb/cockroach/pkg/testutils/testcluster"
"github.com/cockroachdb/cockroach/pkg/util"
Expand Down Expand Up @@ -102,11 +101,6 @@ func WithSkipInvalidDescriptorCheck() BackupTestArg {
func StartBackupRestoreTestCluster(
t testing.TB, clusterSize int, args ...BackupTestArg,
) (*testcluster.TestCluster, *sqlutils.SQLRunner, string, func()) {

// Because the deadlock detector can increase the runtime of a test by 10-100x
// and has not found anything in recent memory for backup/restore tests.
skip.UnderDeadlock(t)

ctx := logtags.AddTag(context.Background(), "start-backup-restore-test-cluster", nil)
opts := backupTestOptions{}
for _, a := range args {
Expand Down
4 changes: 2 additions & 2 deletions pkg/backup/testgen/templates.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a31affb

Please sign in to comment.