File tree 4 files changed +13
-0
lines changed
4 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ go_library(
9
9
deps = [
10
10
"//pkg/backup/backupbase" ,
11
11
"//pkg/base" ,
12
+ "//pkg/clusterversion" ,
12
13
"//pkg/jobs" ,
13
14
"//pkg/keyvisualizer" ,
14
15
"//pkg/kv/kvserver" ,
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import (
14
14
15
15
_ "github.com/cockroachdb/cockroach/pkg/backup/backupbase" // imported for cluster settings.
16
16
"github.com/cockroachdb/cockroach/pkg/base"
17
+ "github.com/cockroachdb/cockroach/pkg/clusterversion"
17
18
"github.com/cockroachdb/cockroach/pkg/jobs"
18
19
"github.com/cockroachdb/cockroach/pkg/keyvisualizer"
19
20
"github.com/cockroachdb/cockroach/pkg/kv/kvserver"
@@ -31,6 +32,11 @@ import (
31
32
"github.com/stretchr/testify/require"
32
33
)
33
34
35
+ func IsOnlineRestoreSupported () bool {
36
+ // TODO(jeffswenson): relax this check once online restore is in preview.
37
+ return clusterversion .DevelopmentBranch
38
+ }
39
+
34
40
const (
35
41
// SingleNode is the size of a single node test cluster.
36
42
SingleNode = 1
Original file line number Diff line number Diff line change @@ -206,6 +206,7 @@ go_library(
206
206
importpath = "github.com/cockroachdb/cockroach/pkg/cmd/roachtest/tests" ,
207
207
visibility = ["//visibility:public" ],
208
208
deps = [
209
+ "//pkg/backup/backuptestutils" ,
209
210
"//pkg/base" ,
210
211
"//pkg/blobs" ,
211
212
"//pkg/ccl/changefeedccl" ,
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import (
12
12
"strings"
13
13
"time"
14
14
15
+ "github.com/cockroachdb/cockroach/pkg/backup/backuptestutils"
15
16
"github.com/cockroachdb/cockroach/pkg/cmd/roachtest/cluster"
16
17
"github.com/cockroachdb/cockroach/pkg/cmd/roachtest/clusterstats"
17
18
"github.com/cockroachdb/cockroach/pkg/cmd/roachtest/option"
@@ -133,6 +134,10 @@ func registerOnlineRestorePerf(r registry.Registry) {
133
134
sp .namePrefix = sp .namePrefix + fmt .Sprintf ("/workarounds=%t" , useWorkarounds )
134
135
}
135
136
137
+ if sp .skip == "" && ! backuptestutils .IsOnlineRestoreSupported () {
138
+ sp .skip = "online restore is only tested on development branch"
139
+ }
140
+
136
141
sp .initTestName ()
137
142
r .Add (registry.TestSpec {
138
143
Name : sp .testName ,
You can’t perform that action at this time.
0 commit comments