Skip to content

Commit

Permalink
roachtest: remove unnecessary minimum versions from cdc tests
Browse files Browse the repository at this point in the history
We only support back to v19.1, so these MinVersions are not needed
anymore.
  • Loading branch information
nvanbenschoten committed Aug 18, 2020
1 parent 169aad5 commit 43b10ce
Showing 1 changed file with 27 additions and 43 deletions.
70 changes: 27 additions & 43 deletions pkg/cmd/roachtest/cdc.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,12 +483,9 @@ func runCDCSchemaRegistry(ctx context.Context, t *test, c *cluster) {

func registerCDC(r *testRegistry) {
r.Add(testSpec{
Name: fmt.Sprintf("cdc/tpcc-1000"),
Owner: OwnerCDC,
// RangeFeed is not production ready in 2.1; we could run the tests with the
// old poller, but it's not worth it.
MinVersion: "v19.1.0",
Cluster: makeClusterSpec(4, cpu(16)),
Name: fmt.Sprintf("cdc/tpcc-1000"),
Owner: OwnerCDC,
Cluster: makeClusterSpec(4, cpu(16)),
Run: func(ctx context.Context, t *test, c *cluster) {
cdcBasicTest(ctx, t, c, cdcTestArgs{
workloadType: tpccWorkloadType,
Expand All @@ -500,10 +497,9 @@ func registerCDC(r *testRegistry) {
},
})
r.Add(testSpec{
Name: fmt.Sprintf("cdc/initial-scan"),
Owner: OwnerCDC,
MinVersion: "v2.1.0",
Cluster: makeClusterSpec(4, cpu(16)),
Name: fmt.Sprintf("cdc/initial-scan"),
Owner: OwnerCDC,
Cluster: makeClusterSpec(4, cpu(16)),
Run: func(ctx context.Context, t *test, c *cluster) {
cdcBasicTest(ctx, t, c, cdcTestArgs{
workloadType: tpccWorkloadType,
Expand All @@ -516,13 +512,9 @@ func registerCDC(r *testRegistry) {
},
})
r.Add(testSpec{
Name: "cdc/poller/rangefeed=false",
Owner: OwnerCDC,
// When testing a 2.1 binary, we use the poller for all the other tests
// and this is close enough to cdc/tpcc-1000 test to be redundant, so
// skip it.
MinVersion: "v19.1.0",
Cluster: makeClusterSpec(4, cpu(16)),
Name: "cdc/poller/rangefeed=false",
Owner: OwnerCDC,
Cluster: makeClusterSpec(4, cpu(16)),
Run: func(ctx context.Context, t *test, c *cluster) {
cdcBasicTest(ctx, t, c, cdcTestArgs{
workloadType: tpccWorkloadType,
Expand All @@ -534,11 +526,9 @@ func registerCDC(r *testRegistry) {
},
})
r.Add(testSpec{
Name: fmt.Sprintf("cdc/sink-chaos"),
Owner: `cdc`,
// TODO(dan): Re-enable this test on 2.1 if we decide to backport #36852.
MinVersion: "v19.1.0",
Cluster: makeClusterSpec(4, cpu(16)),
Name: fmt.Sprintf("cdc/sink-chaos"),
Owner: `cdc`,
Cluster: makeClusterSpec(4, cpu(16)),
Run: func(ctx context.Context, t *test, c *cluster) {
cdcBasicTest(ctx, t, c, cdcTestArgs{
workloadType: tpccWorkloadType,
Expand All @@ -551,12 +541,10 @@ func registerCDC(r *testRegistry) {
},
})
r.Add(testSpec{
Name: fmt.Sprintf("cdc/crdb-chaos"),
Owner: `cdc`,
Skip: "#37716",
// TODO(dan): Re-enable this test on 2.1 if we decide to backport #36852.
MinVersion: "v19.1.0",
Cluster: makeClusterSpec(4, cpu(16)),
Name: fmt.Sprintf("cdc/crdb-chaos"),
Owner: `cdc`,
Skip: "#37716",
Cluster: makeClusterSpec(4, cpu(16)),
Run: func(ctx context.Context, t *test, c *cluster) {
cdcBasicTest(ctx, t, c, cdcTestArgs{
workloadType: tpccWorkloadType,
Expand All @@ -573,9 +561,8 @@ func registerCDC(r *testRegistry) {
},
})
r.Add(testSpec{
Name: fmt.Sprintf("cdc/ledger"),
Owner: `cdc`,
MinVersion: "v2.1.0",
Name: fmt.Sprintf("cdc/ledger"),
Owner: `cdc`,
// TODO(mrtracy): This workload is designed to be running on a 20CPU nodes,
// but this cannot be allocated without some sort of configuration outside
// of this test. Look into it.
Expand All @@ -592,10 +579,9 @@ func registerCDC(r *testRegistry) {
},
})
r.Add(testSpec{
Name: "cdc/cloud-sink-gcs/rangefeed=true",
Owner: `cdc`,
MinVersion: "v19.1.0",
Cluster: makeClusterSpec(4, cpu(16)),
Name: "cdc/cloud-sink-gcs/rangefeed=true",
Owner: `cdc`,
Cluster: makeClusterSpec(4, cpu(16)),
Run: func(ctx context.Context, t *test, c *cluster) {
cdcBasicTest(ctx, t, c, cdcTestArgs{
workloadType: tpccWorkloadType,
Expand All @@ -614,19 +600,17 @@ func registerCDC(r *testRegistry) {
},
})
r.Add(testSpec{
Name: "cdc/bank",
Owner: `cdc`,
MinVersion: "v2.1.0",
Cluster: makeClusterSpec(4),
Name: "cdc/bank",
Owner: `cdc`,
Cluster: makeClusterSpec(4),
Run: func(ctx context.Context, t *test, c *cluster) {
runCDCBank(ctx, t, c)
},
})
r.Add(testSpec{
Name: "cdc/schemareg",
Owner: `cdc`,
MinVersion: "v19.1.0",
Cluster: makeClusterSpec(1),
Name: "cdc/schemareg",
Owner: `cdc`,
Cluster: makeClusterSpec(1),
Run: func(ctx context.Context, t *test, c *cluster) {
runCDCSchemaRegistry(ctx, t, c)
},
Expand Down

0 comments on commit 43b10ce

Please sign in to comment.