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

add my-tester support for cascades planner. #137

Merged
merged 7 commits into from
Jan 8, 2025

Conversation

AilinKid
Copy link
Contributor

@AilinKid AilinKid commented Jan 7, 2025

add my-tester support for cascades planner.
for consequent usage of my-tester, we plan to make the ci env run for 2 time of current ut cases respectively for cascades planner and normal planner. For the first beginning of this two, since currently this two mode are compatible, the result between .result and .casult are almost same because no cascades rules are added now. With the rules' adding, the plan explain diff will occur but execution result should always keep the same as before. We introduce this for the sake of evolution of both planner at the same time for all test cases.

.
Signed-off-by: arenatlx <[email protected]>
@CLAassistant
Copy link

CLAassistant commented Jan 7, 2025

CLA assistant check
All committers have signed the CLA.

@@ -39,13 +39,22 @@ Usage of ./mysql-tester:
The user for connecting to the database. (default "root")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to change this function to a custom suffix? This will make it look more universal?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sense, done

Copy link
Contributor Author

@AilinKid AilinKid Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one day, when we remove the cascades planner switch (remove the old planner), we could just run cmd as below:

./mysql-tester -cascades=1 -check-error=1 -record=1 -cascades-suffix="result"

which will overrides test result of .result file, then we can remove all .casult files if any with find . -type -f -name "*.casult" | xargs rm

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cascades enable is out of tester now, when cascades is enabled, we will pass suffix as ".casult" in.

.
Signed-off-by: arenatlx <[email protected]>
.
Signed-off-by: arenatlx <[email protected]>
README.md Show resolved Hide resolved
Signed-off-by: arenatlx <[email protected]>
README.md Outdated Show resolved Hide resolved
r/extensions.casult Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Signed-off-by: arenatlx <[email protected]>
Signed-off-by: arenatlx <[email protected]>
.
Signed-off-by: arenatlx <[email protected]>
Copy link
Member

@bb7133 bb7133 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bb7133 bb7133 merged commit 2f83b82 into pingcap:master Jan 8, 2025
2 checks passed
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.

5 participants