-
Notifications
You must be signed in to change notification settings - Fork 65
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
Conversation
Signed-off-by: arenatlx <[email protected]>
@@ -39,13 +39,22 @@ Usage of ./mysql-tester: | |||
The user for connecting to the database. (default "root") |
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.
Do you want to change this function to a custom suffix? This will make it look more universal?
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.
make sense, done
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.
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
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.
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]>
Signed-off-by: arenatlx <[email protected]>
Signed-off-by: arenatlx <[email protected]>
Signed-off-by: arenatlx <[email protected]>
Signed-off-by: arenatlx <[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.
LGTM
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.