Skip to content

Upgrade Protobuf versiont to 4.x.x#1611

Open
siri-varma wants to merge 16 commits intodapr:masterfrom
siri-varma:users/svegiraju/upgrade-protobuf
Open

Upgrade Protobuf versiont to 4.x.x#1611
siri-varma wants to merge 16 commits intodapr:masterfrom
siri-varma:users/svegiraju/upgrade-protobuf

Conversation

@siri-varma
Copy link
Copy Markdown
Contributor

@siri-varma siri-varma commented Dec 29, 2025

Description

Upgraded the Protobuf version to 4.x

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #1590

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

Signed-off-by: siri-varma <siri.varma@outlook.com>
Signed-off-by: siri-varma <siri.varma@outlook.com>
Signed-off-by: siri-varma <siri.varma@outlook.com>
@siri-varma
Copy link
Copy Markdown
Contributor Author

Integration tests are failing due to flaky test #1603

@siri-varma siri-varma marked this pull request as ready for review December 30, 2025 00:26
@siri-varma siri-varma requested review from a team as code owners December 30, 2025 00:27
@siri-varma
Copy link
Copy Markdown
Contributor Author

siri-varma commented Dec 30, 2025

@dapr/approvers-java-sdk / @dapr/maintainers-java-sdk PR ready for review. Thank you

Update Protobof version to 4.33.2 (latest)

@salaboy
Copy link
Copy Markdown
Collaborator

salaboy commented Jan 5, 2026

@siri-varma I am worried about doing this, because we the grpc netty libraries also depend on Protobuf. As far as I remember we upgraded to the version that was aligned with Spring Boot and the versions used by the Spring Boot Otel instrumentation that also uses GRPC. I wouldn't upgrade this unless we are also upgrading those dependencies. Can you check which dependencies depend on protobuf by running mvn dependency:tree

Copy link
Copy Markdown
Collaborator

@salaboy salaboy left a comment

Choose a reason for hiding this comment

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

I don't think I can approve this unless we check which transitive dependencies also depend on this.

@siri-varma
Copy link
Copy Markdown
Contributor Author

Hello @javier-aliaga ! Just wanted to check with you on this. Thank you.

@siri-varma
Copy link
Copy Markdown
Contributor Author

Hello @javier-aliaga ! Just wanted to bump this up again

@cicoyle cicoyle added this to the v1.17 milestone Jan 16, 2026
@lindner
Copy link
Copy Markdown
Contributor

lindner commented Feb 9, 2026

protobuf v3 --> v4 is difficult as mixing them can cause problems for consumers of the library too.

@siri-varma
Copy link
Copy Markdown
Contributor Author

@lindner Thank you for the comment.

We don't expose protos to the library users. They are only used inside the SDK.
If you don't mind could you suggest some scenarios where it can cause problems ? I can try adding some tests.

@javier-aliaga javier-aliaga modified the milestones: v1.17, v1.18 Mar 27, 2026
Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
@siri-varma
Copy link
Copy Markdown
Contributor Author

@javier-aliaga Thoughts on this PR ?

@javier-aliaga
Copy link
Copy Markdown
Contributor

@siri-varma I think we should go with it , we just need to align all version and check transitive deps. Btw, there are no file changes in the PR, probably go lost in any of your changes

Signed-off-by: Siri Varma Vegiraju <siri.varma@outlook.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.76%. Comparing base (4ec9b89) to head (12ced92).

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1611   +/-   ##
=========================================
  Coverage     76.76%   76.76%           
  Complexity     2260     2260           
=========================================
  Files           241      241           
  Lines          7066     7066           
  Branches        740      740           
=========================================
  Hits           5424     5424           
  Misses         1279     1279           
  Partials        363      363           

☔ View full report in Codecov by Sentry.
📢 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.

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.

Update protobuf to 4.x to align with Spring

5 participants