Skip to content
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

Test the migration with TiDB Serverless branching #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

shiyuhang0
Copy link
Collaborator

In order to test the migration, we added a GitHub action to run the migration in the created branch. The branch copies the data from TiDB serverless, ensuring we find any potential errors in the migration.

In this example, we want to add a unique index in the title field for the articles table. (The seed already loads the same title in TiDB Serverless)

  1. You can see the migration test fails because of the duplicated title name

image

  1. After fixing the data problem, we push an empty commit to trigger the action again, and the migration success.

branching helps us to test the migration and then we can merge this PR and apply the migration to the production cluster.

@tidb-cloud-branching
Copy link

tidb-cloud-branching bot commented Oct 7, 2023

The latest updates on TiDB Serverless Branch. Learn more about branching GitHub integration↗︎

BranchName ClusterID Status Updated
branch_1_a80857f 1379661944646406304 READY 2023-10-07T02:39:02Z

@shiyuhang0 shiyuhang0 closed this Oct 7, 2023
@shiyuhang0 shiyuhang0 reopened this Oct 7, 2023
@shiyuhang0 shiyuhang0 closed this Oct 7, 2023
@shiyuhang0 shiyuhang0 reopened this Oct 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant