Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,22 @@ func TestMain(m *testing.M) {
}
}

func TestVreplStressSchemaChanges(t *testing.T) {
func splitTestCases(cases []testcase) ([]testcase, []testcase) {
mid := (len(cases) + 1) / 2
return cases[:mid], cases[mid:]
}

func TestVreplStressSchemaChangesGroup1(t *testing.T) {
cases, _ := splitTestCases(testCases)
runVreplStressSchemaChanges(t, cases)
}

func TestVreplStressSchemaChangesGroup2(t *testing.T) {
_, cases := splitTestCases(testCases)
runVreplStressSchemaChanges(t, cases)
}

func runVreplStressSchemaChanges(t *testing.T, cases []testcase) {
shards = clusterInstance.Keyspaces[0].Shards
require.Equal(t, 1, len(shards))
require.Equal(t, 1, len(shards[0].Vttablets))
Expand All @@ -486,7 +501,7 @@ func TestVreplStressSchemaChanges(t *testing.T) {
require.NoError(t, err)
throttler.EnableLagThrottlerAndWaitForStatus(t, clusterInstance)

for _, testcase := range testCases {
for _, testcase := range cases {
require.NotEmpty(t, testcase.name)
t.Run(testcase.name, func(t *testing.T) {
t.Run("cancel pending migrations", func(t *testing.T) {
Expand Down
26 changes: 24 additions & 2 deletions test/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -482,18 +482,40 @@
"binlog-compression"
]
},
"onlineddl_vrepl_stress_suite": {
"onlineddl_vrepl_stress_suite_group1": {
"File": "unused.go",
"Packages": [
"vitess.io/vitess/go/test/endtoend/onlineddl/vrepl_stress_suite"
],
"Args": [
"-run",
"^TestVreplStressSchemaChangesGroup1$",
"-timeout",
"30m"
],
"Command": [],
"Manual": false,
"Shard": "onlineddl_vrepl_stress_suite_group1",
"Tags": [],
"Needs": [
"larger-runner",
"binlog-compression"
]
},
"onlineddl_vrepl_stress_suite_group2": {
"File": "unused.go",
"Packages": [
"vitess.io/vitess/go/test/endtoend/onlineddl/vrepl_stress_suite"
],
"Args": [
"-run",
"^TestVreplStressSchemaChangesGroup2$",
"-timeout",
"30m"
],
"Command": [],
"Manual": false,
"Shard": "onlineddl_vrepl_stress_suite",
"Shard": "onlineddl_vrepl_stress_suite_group2",
"Tags": [],
"Needs": [
"larger-runner",
Expand Down
Loading