feat(clients): add Binary Store alpha APIs #1329
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 334 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.348
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1329"
general
weight: 0.35
sicoyle
Description
This PR adds support for the Binary Store alpha API in the Python SDK, allowing developers to upload, download, and delete files through Dapr.
It introduces
set_binary_file_alpha1,get_binary_file_alpha1, anddelete_binary_file_alpha1for both synchronous and asynchronous clients.Uploads support bytes and binary file-like objects, while downloads can be streamed in chunks without loading the entire file into memory. The implementation also handles overwrites, timeouts, authentication, cancellation, and resource cleanup.
I've added unit and integration tests, sync/async examples, documentation, and dedicated CI validation for Dapr 1.19.
Updates after review:
SubscribeConfigurationandSubscribeConfigurationAlpha1in both sync and async clients, without duplicating an identical caller-provided token.Generated protobuf files:
PR #1327 has already merged the Dapr v1.19.0-rc.5 generated bindings upstream, so they no longer appear as changes in this PR. I verified that regenerating all 57 files produces identical output. Integration CI uses the Dapr 1.19.0-rc.4 runtime.
Validation:
A corresponding documentation update is prepared for the Dapr 1.19 documentation branch.
Known limitation: An upstream gRPC issue ([grpc/grpc#36066](https://github.com/grpc/grpc/issues/36066)) can occasionally return
INTERNALinstead of the original server error during early async upload failures. This behavior remains documented and covered by regression tests.Issue reference
Closes #1296
Checklist