-
Notifications
You must be signed in to change notification settings - Fork 40
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 more make
targets: `clean/no-push-down/push-down-without-v…
#115
Conversation
README.md
Outdated
@@ -5,8 +5,6 @@ executes TiDB push-down executors to improve performance. | |||
|
|||
## Push Down Test | |||
|
|||
`./push-down-test` |
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.
revert
README.md
Outdated
@@ -36,7 +34,7 @@ TiDB side for now. | |||
### Test Cases | |||
|
|||
We have already added some test cases generated by [randgen] in the push-down-test. Feel free to |
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.
revert
``` | ||
|
||
If you want to filter some test cases: | ||
|
||
``` | ||
include=1_arith_1.sql make push-down-test |
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.
revert
@@ -1 +0,0 @@ | |||
/bin/ |
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.
revert
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.
move to push-down-test/build
push-down-test/run-test.sh
Outdated
@@ -0,0 +1,366 @@ | |||
# GO environment variables |
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.
revert the rename so that github diff will work
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
…sh-down-with-vec Signed-off-by: Iosmanthus Teng <myosmanthustree@gmail.com>
f247772
to
180ea4f
Compare
Signed-off-by: Iosmanthus Teng <myosmanthustree@gmail.com>
README.md
Outdated
@@ -36,7 +34,7 @@ TiDB side for now. | |||
### Test Cases | |||
|
|||
We have already added some test cases generated by [randgen] in the push-down-test. Feel free to | |||
add new ones. Your test case should be placed in the `push-down-test/sql` directory and ends with | |||
add new ones. Your test case should be placed in the `sql` directory and ends with |
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.
revert?
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.
Done
@@ -3,7 +3,7 @@ | |||
*.swp | |||
.DS_Store | |||
|
|||
*.log | |||
**.log |
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.
**
?
Signed-off-by: Iosmanthus Teng <myosmanthustree@gmail.com>
push-down-test/run-tests.sh
Outdated
|
||
"$tikv_bin" -C "$push_down_with_batch_config_dir"/tikv.toml --log-file "$tikv_with_batch_log_file" -L ${log_level} & | ||
tikv_with_batch_pid=$! | ||
# Return the PID of the new PD process |
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.
# Return the PID of the new PD process | |
# Return the PID of the new TiKV process |
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.
Done
push-down-test/run-tests.sh
Outdated
export GO_FAILPOINTS="github.com/pingcap/tidb/expression/PushDownTestSwitcher=return(\"$push_down_func_list\");github.com/pingcap/tidb/expression/PanicIfPbCodeUnspecified=return(true)" | ||
"$tidb_bin" -log-file "$push_down_with_batch_tidb_log_file" -config "$push_down_with_batch_config_dir"/tidb.toml -L ${log_level} & | ||
tidb_push_down_with_batch_pid=$! | ||
# Return the PID of the new PD process |
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.
ditto
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.
Done
push-down-test/run-tests.sh
Outdated
} | ||
|
||
function build_tester() { | ||
echo | ||
echo "+ Building Push Down Tester" | ||
echo " - Building from ${push_down_test_bin}" | ||
echo "+Building Push Down Tester" |
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.
echo "+Building Push Down Tester" | |
echo "+ Building Push Down Tester" |
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.
Done
push-down-test/run-tests.sh
Outdated
|
||
clean_all_proc | ||
exit $exit_code | ||
|
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.
Remove this empty line.
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.
Done
Signed-off-by: Iosmanthus Teng <myosmanthustree@gmail.com>
@lonng PTAL |
@iosmanthus The prepare step has executed in the run_tests.sh scripts. It's better to remove the prepare logic in |
make
targets: clean/no-push-down/push-down-without-vec/push-down-with-vec
make
targets: `clean/no-push-down/push-down-without-v…
This pull requests refactor the
copr-test
inorder to make reproducing a failed SQL more conveniently.