-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Online DDL CI: consolidated revertible and revert CI tests (part 1) #12183
Online DDL CI: consolidated revertible and revert CI tests (part 1) #12183
Conversation
Signed-off-by: Shlomi Noach <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
// func testOnlineDDLStatement(t *testing.T, alterStatement string, ddlStrategy string, executeStrategy string, expectHint string, expectError string, skipWait bool) (uuid string) { | ||
// func testOnlineDDLStatement(t *testing.T, alterStatement string, ddlStrategy string, executeStrategy string, tableName string, expectHint string) (uuid string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want to remove these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, thank you, fixed.
DROP TABLE onlineddl_test | ||
` | ||
tableName = "onlineddl_test" | ||
ddlStrategy = "online -declarative -allow-zero-in-date" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is internal, but IMO better for all of us to get into the habit of using double dashes everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed! Fixed.
t.Run("create from-table", func(t *testing.T) { | ||
fromStatement := fmt.Sprintf(createTableWrapper, testcase.fromSchema) | ||
uuid := testOnlineDDLStatement(t, fromStatement, ddlStrategy, "vtgate", tableName, "") | ||
onlineddl.CheckMigrationStatus(t, &vtParams, shards, uuid, schema.OnlineDDLStatusComplete) | ||
checkTable(t, tableName, true) | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not obvious to me how these are confirming it's revertible, but assuming it is (you would certainly know).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. This is just preparation. Per test case, we (re)create the table, then run a migration, then see if the migration is revertible. Added comments to clarify.
Signed-off-by: Shlomi Noach <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Description
Similarly to #12061 and #12055, we now consolidate
onlineddl_revertible
intoonlineddl_revert
.After this has been merged, we can remove the
Required
tag fromonlineddl_revertible
and then followup with a romval PR, much like #12182This will free two CI workflows.
Related Issue(s)
#6926
Checklist
Deployment Notes