Replace TensorFlow Serving dependency with proto-only dependency #3745
+9,593
−5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Eliminates the build-time dependency on the full TensorFlow and TensorFlow Serving repositories by extracting only the required
.protofiles. This reduces build complexity while maintaining API compatibility.Changes
New
third_party/tensorflow_serving_protos/directory:.protofiles from TensorFlow Serving 2.18.0 and TensorFlow (commit 5329ec8d)tensorflow_serving/apis/,tensorflow_serving/config/,tensorflow/core/{framework,example,protobuf}/cc_proto_librarytargets using existing@com_google_protobuf//:protobuf.bzlstyleUpdated dependencies:
WORKSPACE: Addednew_local_repositoryfortensorflow_serving_protosBUILD.bazel: Proto deps changed from@tensorflow_serving//tensorflow_serving/apis:*to@tensorflow_serving_protos//:*src/BUILD: Updatedtfs_utilsandlibovmshttpservermoduletargetsPreserved C++ utility dependencies:
tensorflow_serving/util:json_tensor,threadpool_executor,net_httpremain as-is (these are C++ implementations, not protos)Usage
All proto compilation now occurs within Bazel, not in Dockerfiles.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
releases.bazel.build/usr/local/lib/node_modules/@bazel/bazelisk/bazelisk-linux_amd64 version(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.