-
Notifications
You must be signed in to change notification settings - Fork 258
build(deps): Align protobuf and related dependencies with the gRPC v1.81.1 bump #908
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
Changes from all commits
dba423e
d47922c
9a5593f
de5633a
3b7643d
4230d82
e31a5fa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -1,4 +1,4 @@ | ||||||||
| // Copyright 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||||||||
| // Copyright 2022-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||||||||
| // | ||||||||
| // Redistribution and use in source and binary forms, with or without | ||||||||
| // modification, are permitted provided that the following conditions | ||||||||
|
|
@@ -24,6 +24,9 @@ | |||||||
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||||||||
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||||||
|
|
||||||||
| #include <google/protobuf/text_format.h> | ||||||||
|
|
||||||||
| #include <algorithm> | ||||||||
| #include <fstream> | ||||||||
|
|
||||||||
| #define TRITON_INFERENCE_SERVER_CLIENT_CLASS InferenceServerHttpClient | ||||||||
|
|
@@ -234,7 +237,11 @@ class GRPCTraceTest : public ::testing::Test { | |||||||
| void ConvertResponse( | ||||||||
| const inference::TraceSettingResponse& response, std::string* str) | ||||||||
| { | ||||||||
| *str = response.DebugString(); | ||||||||
| // Use TextFormat::PrintToString rather than DebugString(): protobuf v33 | ||||||||
| // deliberately makes DebugString() output unstable (it injects a | ||||||||
| // "goo.gle/debugstr" marker) to discourage parsing, which breaks the | ||||||||
| // string comparisons below. PrintToString gives stable text format. | ||||||||
| google::protobuf::TextFormat::PrintToString(response, str); | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||
| str->erase(std::remove(str->begin(), str->end(), ' '), str->end()); | ||||||||
| str->erase(std::remove(str->begin(), str->end(), '\n'), str->end()); | ||||||||
| } | ||||||||
|
|
||||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
SYSTEMsuppresses client-code deprecation warnings tooinclude_directories(SYSTEM ...)applies to every target in the currentCMakeLists.txtand alladd_subdirectorychildren (library,examples,tests). TheSYSTEMflag suppresses[[deprecated]]warnings that fire when client code calls a deprecated protobuf or gRPC API — not only in-header warnings. A future call to a deprecated API in the client library or examples will silently compile clean under-Werror. The more targeted fix would betarget_include_directories(<target> SYSTEM PRIVATE ...)on each affected target.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!