Commit bf44dbe
authored
build(deps): Align protobuf and related dependencies with the gRPC v1.81.1 bump (#516)
* fix: Pass utf8_range_DIR to triton-core build
The protobuf bundled with gRPC v1.81.1 (v33.5) installs utf8_range as a
separate CMake package and protobuf-config.cmake references the
utf8_range::utf8_validity imported target. find_package(Protobuf CONFIG)
with only Protobuf_DIR set fails at generate time with 'the target was
not found'. Provide utf8_range_DIR alongside Protobuf_DIR.
* fix: Adapt model_config_utils to protobuf v33 API
Three breakages against the protobuf bundled with gRPC v1.81.1:
- FieldDescriptor::name() now returns absl::string_view; wrap in
std::string for concatenation.
- JsonPrintOptions::always_print_primitive_fields was removed; use its
designated replacement always_print_fields_with_no_presence.
- MessageToJsonString's absl::Status return is nodiscard and fails the
-Werror build when ignored; propagate it as an INTERNAL status.
* fix: Log auto-completed model config with stable text format
protobuf v33 makes DebugString() output intentionally unstable (injects a
'goo.gle/debugstr' marker that is not valid text format), which polluted
the 'Server side auto-completed config' log and broke L0_logging's
log_format parser. Serialize with TextFormat::PrintToString at the call
site instead of LOG_PROTOBUF_VERBOSE.1 parent 0e81b4a commit bf44dbe
2 files changed
Lines changed: 27 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
| |||
286 | 287 | | |
287 | 288 | | |
288 | 289 | | |
| 290 | + | |
289 | 291 | | |
290 | 292 | | |
291 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
754 | 755 | | |
755 | 756 | | |
756 | 757 | | |
757 | | - | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
758 | 773 | | |
759 | 774 | | |
760 | 775 | | |
| |||
1976 | 1991 | | |
1977 | 1992 | | |
1978 | 1993 | | |
1979 | | - | |
| 1994 | + | |
1980 | 1995 | | |
1981 | 1996 | | |
1982 | 1997 | | |
| |||
2201 | 2216 | | |
2202 | 2217 | | |
2203 | 2218 | | |
2204 | | - | |
2205 | | - | |
| 2219 | + | |
| 2220 | + | |
2206 | 2221 | | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
2207 | 2228 | | |
2208 | 2229 | | |
2209 | 2230 | | |
| |||
0 commit comments