Skip to content

Updated gprcio version and regenerate protos - #1126

Merged
sicoyle merged 2 commits into
dapr:mainfrom
acroca:update-grpcio-tools
Jul 7, 2026
Merged

sicoyle merged 2 commits into
dapr:mainfrom
acroca:update-grpcio-tools

Conversation

@acroca

@acroca acroca commented Jul 3, 2026 •

Copy link
Copy Markdown
Member
  • Updated grcpio to 1.81.1
  • Regenerate protos using new versions
  • Adds unit test to make sure generated protos match with the floor supported version

@acroca
acroca requested review from a team as code owners July 3, 2026 07:27
Signed-off-by: Albert Callarisa <albert@diagrid.io>
@acroca
acroca force-pushed the update-grpcio-tools branch from 4d5973b to c4e3336 Compare July 3, 2026 07:27
@codecov

codecov Bot commented Jul 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.20%. Comparing base (bffb749) to head (5c5d1ec).
⚠️ Report is 174 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1126      +/-   ##
==========================================
- Coverage   86.63%   82.20%   -4.43%     
==========================================
  Files          84      116      +32     
  Lines        4473     9609    +5136     
==========================================
+ Hits         3875     7899    +4024     
- Misses        598     1710    +1112     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the SDK’s gRPC toolchain to grpcio/grpcio-status/grpcio-tools==1.81.1 and regenerates the checked-in protobuf/gRPC generated code to match the new generator output.

Changes:

  • Bump grpcio and grpcio-status minimum versions to >=1.81.1,<2.0.0 and grpcio-tools to ==1.81.1.
  • Regenerate protobuf Python modules (*_pb2.py) and gRPC service stubs (*_pb2_grpc.py) across dapr/proto/** and the workflow durabletask internal protos.
  • Refresh uv.lock to reflect the updated dependency graph and toolchain artifacts.

Reviewed changes

Copilot reviewed 37 out of 52 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
uv.lock Updates locked dependency set to reflect grpc/proto toolchain bump (incl. grpcio-tools 1.81.1).
pyproject.toml Raises declared grpcio/grpcio-status minima and grpcio-tools dev pin to 1.81.1.
dapr/proto/runtime/v1/workflow_pb2.py Regenerated protobuf module with protoc/protobuf 6.33.5 output.
dapr/proto/runtime/v1/workflow_pb2_grpc.py Regenerated gRPC stubs with generator version updated to 1.81.1.
dapr/proto/runtime/v1/state_pb2.py Regenerated protobuf module with protoc/protobuf 6.33.5 output.
dapr/proto/runtime/v1/state_pb2_grpc.py Regenerated gRPC stubs with generator version updated to 1.81.1.
dapr/proto/runtime/v1/secret_pb2.py Regenerated protobuf module with protoc/protobuf 6.33.5 output.
dapr/proto/runtime/v1/secret_pb2_grpc.py Regenerated gRPC stubs with generator version updated to 1.81.1.
dapr/proto/runtime/v1/pubsub_pb2.py Regenerated protobuf module with protoc/protobuf 6.33.5 output.
dapr/proto/runtime/v1/pubsub_pb2_grpc.py Regenerated gRPC stubs with generator version updated to 1.81.1.
dapr/proto/runtime/v1/metadata_pb2.py Regenerated protobuf module with protoc/protobuf 6.33.5 output.
dapr/proto/runtime/v1/metadata_pb2_grpc.py Regenerated gRPC stubs with generator version updated to 1.81.1.
dapr/proto/runtime/v1/lock_pb2.py Regenerated protobuf module with protoc/protobuf 6.33.5 output.
dapr/proto/runtime/v1/lock_pb2_grpc.py Regenerated gRPC stubs with generator version updated to 1.81.1.
dapr/proto/runtime/v1/jobs_pb2.py Regenerated protobuf module with protoc/protobuf 6.33.5 output.
dapr/proto/runtime/v1/jobs_pb2_grpc.py Regenerated gRPC stubs with generator version updated to 1.81.1.
dapr/proto/runtime/v1/invoke_pb2.py Regenerated protobuf module with protoc/protobuf 6.33.5 output.
dapr/proto/runtime/v1/invoke_pb2_grpc.py Regenerated gRPC stubs with generator version updated to 1.81.1.
dapr/proto/runtime/v1/dapr_pb2.py Regenerated protobuf module with protoc/protobuf 6.33.5 output.
dapr/proto/runtime/v1/dapr_pb2_grpc.py Regenerated gRPC stubs; updates generator version and class declaration style.
dapr/proto/runtime/v1/crypto_pb2.py Regenerated protobuf module with protoc/protobuf 6.33.5 output.
dapr/proto/runtime/v1/crypto_pb2_grpc.py Regenerated gRPC stubs with generator version updated to 1.81.1.
dapr/proto/runtime/v1/configuration_pb2.py Regenerated protobuf module with protoc/protobuf 6.33.5 output.
dapr/proto/runtime/v1/configuration_pb2_grpc.py Regenerated gRPC stubs with generator version updated to 1.81.1.
dapr/proto/runtime/v1/binding_pb2.py Regenerated protobuf module with protoc/protobuf 6.33.5 output.
dapr/proto/runtime/v1/binding_pb2_grpc.py Regenerated gRPC stubs with generator version updated to 1.81.1.
dapr/proto/runtime/v1/appcallback_pb2.py Regenerated protobuf module with protoc/protobuf 6.33.5 output.
dapr/proto/runtime/v1/appcallback_pb2_grpc.py Regenerated gRPC stubs; updates generator version and class declaration style.
dapr/proto/runtime/v1/ai_pb2.pyi Regenerated/normalized type stub formatting (whitespace change).
dapr/proto/runtime/v1/ai_pb2.py Regenerated protobuf module with protoc/protobuf 6.33.5 output.
dapr/proto/runtime/v1/ai_pb2_grpc.py Regenerated gRPC stubs with generator version updated to 1.81.1.
dapr/proto/runtime/v1/actors_pb2.py Regenerated protobuf module with protoc/protobuf 6.33.5 output.
dapr/proto/runtime/v1/actors_pb2_grpc.py Regenerated gRPC stubs with generator version updated to 1.81.1.
dapr/proto/common/v1/common_pb2.py Regenerated common protobuf module with protoc/protobuf 6.33.5 output.
dapr/proto/common/v1/common_pb2_grpc.py Regenerated gRPC stubs with generator version updated to 1.81.1.
dapr/ext/workflow/_durabletask/internal/runtime_state_pb2.py Regenerated durabletask internal protobuf module with protoc/protobuf 6.33.5 output.
dapr/ext/workflow/_durabletask/internal/runtime_state_pb2_grpc.py Regenerated durabletask internal gRPC stubs with generator version updated to 1.81.1.
dapr/ext/workflow/_durabletask/internal/PROTO_SOURCE_COMMIT_HASH Updates durabletask proto source commit hash tracking for regeneration provenance.
dapr/ext/workflow/_durabletask/internal/orchestrator_service_pb2.pyi Regenerated type stubs (typing conditionals and signatures adjusted to new generator).
dapr/ext/workflow/_durabletask/internal/orchestrator_service_pb2.py Regenerated durabletask internal protobuf module with protoc/protobuf 6.33.5 output.
dapr/ext/workflow/_durabletask/internal/orchestrator_service_pb2_grpc.py Regenerated durabletask internal gRPC stubs; updates generator version and class declaration style.
dapr/ext/workflow/_durabletask/internal/orchestrator_actions_pb2.py Regenerated durabletask internal protobuf module with protoc/protobuf 6.33.5 output.
dapr/ext/workflow/_durabletask/internal/orchestrator_actions_pb2_grpc.py Regenerated durabletask internal gRPC stubs with generator version updated to 1.81.1.
dapr/ext/workflow/_durabletask/internal/orchestration_pb2.pyi Regenerated type stubs (typing conditionals and signatures adjusted to new generator).
dapr/ext/workflow/_durabletask/internal/orchestration_pb2.py Regenerated durabletask internal protobuf module with protoc/protobuf 6.33.5 output.
dapr/ext/workflow/_durabletask/internal/orchestration_pb2_grpc.py Regenerated durabletask internal gRPC stubs with generator version updated to 1.81.1.
dapr/ext/workflow/_durabletask/internal/history_events_pb2.py Regenerated durabletask internal protobuf module with protoc/protobuf 6.33.5 output.
dapr/ext/workflow/_durabletask/internal/history_events_pb2_grpc.py Regenerated durabletask internal gRPC stubs with generator version updated to 1.81.1.
dapr/ext/workflow/_durabletask/internal/backend_service_pb2.py Regenerated durabletask internal protobuf module with protoc/protobuf 6.33.5 output.
dapr/ext/workflow/_durabletask/internal/backend_service_pb2_grpc.py Regenerated durabletask internal gRPC stubs with generator version updated to 1.81.1.
dapr/ext/workflow/_durabletask/internal/attestation_pb2.py Regenerated durabletask internal protobuf module with protoc/protobuf 6.33.5 output.
dapr/ext/workflow/_durabletask/internal/attestation_pb2_grpc.py Regenerated durabletask internal gRPC stubs with generator version updated to 1.81.1.
Files not reviewed (13)
  • dapr/ext/workflow/_durabletask/internal/attestation_pb2.py: Generated file
  • dapr/ext/workflow/_durabletask/internal/backend_service_pb2.py: Generated file
  • dapr/ext/workflow/_durabletask/internal/history_events_pb2.py: Generated file
  • dapr/ext/workflow/_durabletask/internal/orchestration_pb2.py: Generated file
  • dapr/ext/workflow/_durabletask/internal/orchestrator_actions_pb2.py: Generated file
  • dapr/ext/workflow/_durabletask/internal/orchestrator_service_pb2.py: Generated file
  • dapr/ext/workflow/_durabletask/internal/runtime_state_pb2.py: Generated file
  • dapr/proto/common/v1/common_pb2.py: Generated file
  • dapr/proto/runtime/v1/actors_pb2.py: Generated file
  • dapr/proto/runtime/v1/ai_pb2.py: Generated file
  • dapr/proto/runtime/v1/appcallback_pb2.py: Generated file
  • dapr/proto/runtime/v1/binding_pb2.py: Generated file
  • dapr/proto/runtime/v1/configuration_pb2.py: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pyproject.toml Outdated
@acroca
acroca marked this pull request as draft July 3, 2026 09:29
Signed-off-by: Albert Callarisa <albert@diagrid.io>
@acroca
acroca requested a review from Copilot July 3, 2026 10:09
@acroca
acroca marked this pull request as ready for review July 3, 2026 10:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 38 out of 53 changed files in this pull request and generated no new comments.

Files not reviewed (13)
  • dapr/ext/workflow/_durabletask/internal/attestation_pb2.py: Generated file
  • dapr/ext/workflow/_durabletask/internal/backend_service_pb2.py: Generated file
  • dapr/ext/workflow/_durabletask/internal/history_events_pb2.py: Generated file
  • dapr/ext/workflow/_durabletask/internal/orchestration_pb2.py: Generated file
  • dapr/ext/workflow/_durabletask/internal/orchestrator_actions_pb2.py: Generated file
  • dapr/ext/workflow/_durabletask/internal/orchestrator_service_pb2.py: Generated file
  • dapr/ext/workflow/_durabletask/internal/runtime_state_pb2.py: Generated file
  • dapr/proto/common/v1/common_pb2.py: Generated file
  • dapr/proto/runtime/v1/actors_pb2.py: Generated file
  • dapr/proto/runtime/v1/ai_pb2.py: Generated file
  • dapr/proto/runtime/v1/appcallback_pb2.py: Generated file
  • dapr/proto/runtime/v1/binding_pb2.py: Generated file
  • dapr/proto/runtime/v1/configuration_pb2.py: Generated file

@sicoyle sicoyle left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@sicoyle
sicoyle added this pull request to the merge queue Jul 7, 2026
Merged via the queue into dapr:main with commit 101f9c5 Jul 7, 2026
18 of 19 checks passed
@acroca
acroca deleted the update-grpcio-tools branch July 8, 2026 07:14
sicoyle pushed a commit to magic-peach/python-sdk that referenced this pull request Oct 12, 2026
)

* chore: regenerate gRPC client against Dapr 1.19.0-rc.1 protos

The committed dapr/proto/ gencode was last regenerated 2026-07-08 (dapr#1126),
before dapr/dapr#10461 added GetActorTimer/ListActorTimers to
dapr/proto/runtime/v1/dapr.proto (lines 108 and 117 as of v1.19.0-rc.1).
That RPC pair was entirely missing from the generated stubs.

Regenerated with `tools/regen_grpcclient.sh` against the dapr/dapr
v1.19.0-rc.1 tag (the script's archive URL only resolves branches, so this
run used a local, uncommitted tweak to fetch the tag; the script itself is
unchanged in this diff -- happy to fix that URL limitation separately if
useful). grpcio-tools stays pinned at 1.81.1 (pyproject.toml, unchanged) per
AGENTS.md: a newer grpcio-tools would raise the grpcio/protobuf floors this
SDK declares, which is a separate, deliberate change, not a side effect of a
proto regen.

Changed: actors_pb2.py(.pyi), dapr_pb2.py, dapr_pb2_grpc.py, jobs_pb2.py(.pyi),
workflow_pb2.py(.pyi). common_pb2.py and the other runtime/v1 stubs are
byte-identical to what's committed -- their .proto sources did not change
between the 07-08 baseline and rc.1.

This is a gencode-only change: no dapr/ source outside dapr/proto/ is
touched, and no DaprClient method is added for the new RPCs -- that is SDK
feature work for a separate PR (tracked for WS3 in this release's SDK-parity
workstream).

Verified locally:
- `uv run ruff check .`: all checks passed.
- `uv run ruff format --check .`: 459 files already formatted (no diff).
- `uv run mypy`: no issues found in 222 source files.
- `uv run pytest tests/test_proto_gencode_floor.py`: 2 passed (confirms the
  unchanged grpcio-tools pin keeps the stamped protobuf/grpcio floors within
  what pyproject.toml declares).
- `uv run pytest -m "not e2e" ./tests --ignore=tests/integration --ignore=tests/examples`:
  2159 passed, 41 deselected, 0 failed.

Needs `backport release-1.19` once merged: release-1.19's uv.lock/proto tree
is currently main's from before this change, and py#1258 (the rc1 version
PR) does not touch dapr/proto/.

Signed-off-by: Nelson Parente <nelson_parente@live.com.pt>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017JhKUDV9dbs5JDz2uwZqz5
Signed-off-by: Nelson Parente <nelson_parente@live.com.pt>

* chore: regenerate the gRPC client against Dapr 1.19.0-rc.2

Regenerate the protos from the v1.19.0-rc.2 tag. Compared with rc.1,
rc.2 adds max_tokens to the conversation request, and metadata to the
actor reminder and timer callback messages. grpcio-tools stays at
1.81.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017JhKUDV9dbs5JDz2uwZqz5
Signed-off-by: Nelson Parente <nelson_parente@live.com.pt>

---------

Signed-off-by: Nelson Parente <nelson_parente@live.com.pt>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants