Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
108289: schemachanger: Skip some reported timeout backup tests r=rafiss a=Xiang-Gu

There has been a few timeout failures from the BACKUP/RESTORE testing suites so let's skip
them for now until we know more of the issue.

Informs #cockroachdb#108238
Informs cockroachdb#108221
Epic: None
Release note: None

Co-authored-by: Xiang Gu <[email protected]>
  • Loading branch information
craig[bot] and Xiang-Gu committed Aug 7, 2023
2 parents 60b251e + 4741147 commit 898c592
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pkg/sql/schemachanger/sctest/backup.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,24 @@ import (
"github.com/stretchr/testify/require"
)

// TODO (xiang): Fix and unskip those flaky backup tests.
func skipFlakyBackupTests(t *testing.T, path string) {
if strings.Contains(path, "alter_table_multiple_commands") ||
strings.Contains(path, "alter_table_alter_primary_key_drop_rowid") ||
strings.Contains(path, "drop_column_basic") {
skip.WithIssue(t, 108221, "skipping flaky tests")
}
}

// BackupSuccess tests that the schema changer can handle being backed up
// any time during a successful schema change.
func BackupSuccess(t *testing.T, path string, factory TestServerFactory) {
// These tests are expensive.
skip.UnderStress(t)
skip.UnderRace(t)

skipFlakyBackupTests(t, path)

cumulativeTestForEachPostCommitStage(t, path, factory, func(t *testing.T, cs CumulativeTestCaseSpec) {
backupSuccess(t, factory, cs)
})
Expand All @@ -57,6 +68,8 @@ func BackupRollbacks(t *testing.T, path string, factory TestServerFactory) {
// and at least as expensive to run.
skip.UnderShort(t)

skipFlakyBackupTests(t, path)

cumulativeTestForEachPostCommitStage(t, path, factory, func(t *testing.T, cs CumulativeTestCaseSpec) {
backupRollbacks(t, factory, cs)
})
Expand All @@ -72,6 +85,8 @@ func BackupSuccessMixedVersion(t *testing.T, path string, factory TestServerFact
// and at least as expensive to run.
skip.UnderShort(t)

skipFlakyBackupTests(t, path)

factory = factory.WithMixedVersion()
cumulativeTestForEachPostCommitStage(t, path, factory, func(t *testing.T, cs CumulativeTestCaseSpec) {
backupSuccess(t, factory, cs)
Expand All @@ -88,6 +103,8 @@ func BackupRollbacksMixedVersion(t *testing.T, path string, factory TestServerFa
// and at least as expensive to run.
skip.UnderShort(t)

skipFlakyBackupTests(t, path)

factory = factory.WithMixedVersion()
cumulativeTestForEachPostCommitStage(t, path, factory, func(t *testing.T, cs CumulativeTestCaseSpec) {
backupRollbacks(t, factory, cs)
Expand Down

0 comments on commit 898c592

Please sign in to comment.