Test: Support coprocessor test#5957
Conversation
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by submitting an approval review. |
|
/run-all-tests |
85790e7 to
a8578a4
Compare
|
/run-all-tests |
|
Note that if we want to make the coprocessor query run indefinitely, we can change MockSourceStream.h:65 to construct an infinite TableScanStream. |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
| } | ||
| CATCH | ||
| } // namespace tests | ||
| } // namespace DB No newline at end of file |
There was a problem hiding this comment.
| } // namespace DB | |
| } // namespace DB | |
dbms/src/Flash/FlashService.cpp
Outdated
|
|
||
| if (!security_config->checkGrpcContext(grpc_context)) | ||
| // For coprocessor test, we don't care about security config. | ||
| if (!context->isCopTest() && !security_config->checkGrpcContext(grpc_context)) |
There was a problem hiding this comment.
| if (!context->isCopTest() && !security_config->checkGrpcContext(grpc_context)) | |
| if (unlikely(!context->isCopTest() && !security_config->checkGrpcContext(grpc_context))) |
dbms/src/Flash/FlashService.cpp
Outdated
| // For MPP test, we don't care about security config. | ||
| if (!context->isMPPTest()) | ||
| // For MPP or Cop test, we don't care about security config. | ||
| if (likely(!(context->isMPPTest() || context->isCopTest()))) |
There was a problem hiding this comment.
can it replace to !context->isTest()?
There was a problem hiding this comment.
can it replace to
!context->isTest()?
Yes!
|
@LittleFall you can use "Request change" to dismiss the LGTM counting |
0db0ad5 to
b1c9a67
Compare
|
/merge |
|
@ywqzzy: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: 06a5016 |
|
/run-unit-tests |
1 similar comment
|
/run-unit-tests |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
What problem does this PR solve?
Issue Number: ref #4609
Problem Summary:
What is changed and how it works?
Add test API to run Coprocessor.
Check List
Tests
Side effects
Documentation
Release note