-
Notifications
You must be signed in to change notification settings - Fork 234
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
Pr/387 #465
Pr/387 #465
Conversation
grpc_channel_stub_map_.insert( | ||
std::make_pair(url, std::make_tuple(1, channel, stub))); | ||
|
||
if (use_cached_channel) { |
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.
I wouldn't expect testing changes to change production code. Is this needed?
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.
This change is coming from here: #387
I do not know what are process is for PRs without testing so made a branch from the external PR, added testing and made sure the commit shows the original contributors github handle.
src/c++/tests/cc_client_test.cc
Outdated
const tc::KeepAliveOptions& keepalive_options = tc::KeepAliveOptions(); | ||
bool use_cached_channel = false; | ||
auto err = tc::InferenceServerGrpcClient::Create( | ||
&this->client_, url, verbose, use_ssl, ssl_options, keepalive_options, |
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.
Is there a way we could re-use the ClientTest
?
src/c++/tests/cc_client_test.cc
Outdated
@@ -1615,6 +1709,58 @@ TEST_F(GRPCTraceTest, GRPCClearTraceSettings) | |||
<< std::endl; | |||
} | |||
|
|||
TEST_F(GRPCClientTest, InferMultiNoUseCachedChannel) |
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.
Is there are reason we're using InferMulti
instead of regular Infer
calls?
Cannot approve since I am considered original author. All of this looks good to me. |
Adding testing to verify new use_cached_channel behavior. To be merged after #387 Server test: triton-inference-server/server#7123 --------- Co-authored-by: Markus Hennerbichler <[email protected]> Co-authored-by: Katherine Yang <[email protected]> Co-authored-by: Katherine Yang <[email protected]>
Adding testing to verify new use_cached_channel behavior. To be merged after #387 Server test: triton-inference-server/server#7123 --------- Co-authored-by: Markus Hennerbichler <[email protected]> Co-authored-by: Katherine Yang <[email protected]> Co-authored-by: Katherine Yang <[email protected]>
Adding testing to verify new use_cached_channel behavior.
To be merged after #387
Server test: triton-inference-server/server#7123