Repository navigation
Add support for protobuf7 - #2254
Conversation
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Secrets | View in Orca |
🔑 The following Secrets have been detected in your pull request across all commits
| NAME | FILE | LINE NUM | COMMIT | ||
|---|---|---|---|---|---|
| Generic High Entropy Secret Validity Status: AI_TRIAGED_FP |
...weaviate_pb2_grpc.py | 321 | a225e05 | View in code | |
| Generic High Entropy Secret Validity Status: AI_TRIAGED_FP |
...weaviate_pb2_grpc.py | 294 | a225e05 | View in code |
There was a problem hiding this comment.
🟢 Approval recommended
The protobuf 7 compatibility change has no active review issues requiring resolution.
No open issues 🎉
7 files not reviewed
weaviate/proto/v1/v7351/v1/aggregate_pb2.py: Generated fileweaviate/proto/v1/v7351/v1/base_pb2.py: Generated fileweaviate/proto/v1/v7351/v1/base_search_pb2.py: Generated fileweaviate/proto/v1/v7351/v1/batch_delete_pb2.py: Generated fileweaviate/proto/v1/v7351/v1/batch_pb2.py: Generated fileweaviate/proto/v1/v7351/v1/generative_pb2.py: Generated fileweaviate/proto/v1/v7351/v1/health_weaviate_pb2.py: Generated file
What changed in this PR
Adds protobuf 7 support to the Weaviate Python client through version-specific generated bindings, while retaining compatibility paths for older protobuf releases.
Changes:
- Adds protobuf 7.35.1 bindings and selects them with a grpcio 1.83.0 minimum; protobuf 7.34.x continues using the existing bindings.
- Expands dependency constraints and aligns the browser shim’s reported gRPC version.
- Updates regeneration tooling, compatibility tests, CI matrices, and release notes.
| File | Description |
|---|---|
weaviate/proto/v1/v7351/v1/weaviate_pb2.pyi |
Adds service descriptor typing. |
weaviate/proto/v1/v7351/v1/weaviate_pb2.py |
Adds protobuf 7 service descriptors. |
weaviate/proto/v1/v7351/v1/weaviate_pb2_grpc.py |
Adds generated service clients and handlers. |
weaviate/proto/v1/v7351/v1/tenants_pb2.pyi |
Adds tenant message typing. |
weaviate/proto/v1/v7351/v1/tenants_pb2.py |
Adds tenant message bindings. |
weaviate/proto/v1/v7351/v1/tenants_pb2_grpc.py |
Adds generated gRPC version guard. |
weaviate/proto/v1/v7351/v1/search_get_pb2.pyi |
Adds search message typing. |
weaviate/proto/v1/v7351/v1/search_get_pb2.py |
Adds search message bindings. |
weaviate/proto/v1/v7351/v1/search_get_pb2_grpc.py |
Adds generated gRPC version guard. |
weaviate/proto/v1/v7351/v1/properties_pb2.pyi |
Adds property message typing. |
weaviate/proto/v1/v7351/v1/properties_pb2.py |
Adds property message bindings. |
weaviate/proto/v1/v7351/v1/properties_pb2_grpc.py |
Adds generated gRPC version guard. |
weaviate/proto/v1/v7351/v1/health_weaviate_pb2.pyi |
Adds health message typing. |
weaviate/proto/v1/v7351/v1/health_weaviate_pb2.py |
Adds health message bindings. |
weaviate/proto/v1/v7351/v1/health_weaviate_pb2_grpc.py |
Adds generated gRPC version guard. |
weaviate/proto/v1/v7351/v1/generative_pb2.py |
Adds generative message bindings. |
weaviate/proto/v1/v7351/v1/generative_pb2_grpc.py |
Adds generated gRPC version guard. |
weaviate/proto/v1/v7351/v1/batch_pb2.pyi |
Adds batch message typing. |
weaviate/proto/v1/v7351/v1/batch_pb2.py |
Adds batch message bindings. |
weaviate/proto/v1/v7351/v1/batch_pb2_grpc.py |
Adds generated gRPC version guard. |
weaviate/proto/v1/v7351/v1/batch_delete_pb2.pyi |
Adds batch deletion typing. |
weaviate/proto/v1/v7351/v1/batch_delete_pb2.py |
Adds batch deletion bindings. |
weaviate/proto/v1/v7351/v1/batch_delete_pb2_grpc.py |
Adds generated gRPC version guard. |
weaviate/proto/v1/v7351/v1/base_search_pb2.pyi |
Adds shared search message typing. |
weaviate/proto/v1/v7351/v1/base_search_pb2.py |
Adds shared search bindings. |
weaviate/proto/v1/v7351/v1/base_search_pb2_grpc.py |
Adds generated gRPC version guard. |
weaviate/proto/v1/v7351/v1/base_pb2.pyi |
Adds shared message and enum typing. |
weaviate/proto/v1/v7351/v1/base_pb2.py |
Adds shared message and enum bindings. |
weaviate/proto/v1/v7351/v1/base_pb2_grpc.py |
Adds generated gRPC version guard. |
weaviate/proto/v1/v7351/v1/aggregate_pb2.pyi |
Adds aggregation message typing. |
weaviate/proto/v1/v7351/v1/aggregate_pb2.py |
Adds aggregation message bindings. |
weaviate/proto/v1/v7351/v1/aggregate_pb2_grpc.py |
Adds generated gRPC version guard. |
weaviate/proto/v1/v7351/v1/__init__.py |
Marks the generated bindings package. |
weaviate/proto/v1/v7351/__init__.py |
Marks the version-specific package. |
weaviate/proto/v1/regen.sh |
Adds protobuf 7 generation tooling. |
weaviate/proto/v1/__init__.py |
Selects new bindings and updates compatibility checks. |
setup.cfg |
Allows protobuf versions below 8. |
proto_test/test_proto.py |
Updates compatibility and fallback assertions. |
packages/web/tests/test_shim_install.py |
Updates the expected shim version. |
packages/web/src/weaviate_client_web/_shim.py |
Aligns the shim’s reported gRPC version. |
docs/changelog.rst |
Documents protobuf 7 compatibility requirements. |
.github/workflows/main.yaml |
Extends compatibility and integration matrices. |
Review effort: Balanced
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## dev/1.41 #2254 +/- ##
===========================================
Coverage ? 92.42%
===========================================
Files ? 311
Lines ? 23568
Branches ? 0
===========================================
Hits ? 21783
Misses ? 1785
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Secrets | View in Orca |
🔑 The following Secrets have been detected in your pull request across all commits
| NAME | FILE | LINE NUM | COMMIT | ||
|---|---|---|---|---|---|
| Generic High Entropy Secret Validity Status: AI_TRIAGED_FP |
...weaviate_pb2_grpc.py | 321 | 7cfa12e | View in code | |
| Generic High Entropy Secret Validity Status: AI_TRIAGED_FP |
...weaviate_pb2_grpc.py | 294 | 7cfa12e | View in code |
No description provided.