Skip to content

Cleaup Test Dependencies #1332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
May 23, 2025
Merged

Conversation

siri-varma
Copy link
Contributor

@siri-varma siri-varma commented May 5, 2025

Description

  • I think having all the versions defined in the parent pom is a good idea.
  • Moved the versions for testcontainer-module and spring-boot-example to parent pom. Depending on the feedback from this PR will work on rest of the modules in later prs.

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: #940

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

@siri-varma siri-varma requested review from a team as code owners May 5, 2025 14:33
Signed-off-by: sirivarma <[email protected]>
@artur-ciocanu
Copy link
Contributor

@siri-varma it seems that there are so missing classes after your POM changes and there some NoSuchMethodError messages in logs.

@siri-varma siri-varma changed the title Users/svegiraju/pom cleanup 3 Cleaup Test Dependencies May 5, 2025
@siri-varma
Copy link
Contributor Author

@artur-ciocanu Yes. Still working on fixing this

siri-varma added 4 commits May 5, 2025 09:49
Signed-off-by: siri-varma <[email protected]>
Signed-off-by: siri-varma <[email protected]>
Signed-off-by: siri-varma <[email protected]>
Signed-off-by: siri-varma <[email protected]>
@siri-varma
Copy link
Contributor Author

siri-varma commented May 5, 2025

@artur-ciocanu @salaboy @cicoyle This PR is ready to be reviewed. Thank you

@salaboy
Copy link
Collaborator

salaboy commented May 6, 2025

@artur-ciocanu do you have any comments about this? Because the Dapr SDK is split into two big things (modules and sdk-tests), I believe that it was ok to do dependency management separately, as dependencies needed in the sdk-tests are not needed in the SDK itself (like toxy proxy). But if we are moving towards a world where we have all the SDK tests as testcontainer tests, this makes sense.

@salaboy
Copy link
Collaborator

salaboy commented May 6, 2025

@siri-varma to be clear.. I am not against this.. I am just thinking a bit long term how this will work out.

@siri-varma
Copy link
Contributor Author

@artur-ciocanu do you have any comments about this? Because the Dapr SDK is split into two big things (modules and sdk-tests), I believe that it was ok to do dependency management separately, as dependencies needed in the sdk-tests are not needed in the SDK itself (like toxy proxy). But if we are moving towards a world where we have all the SDK tests as testcontainer tests, this makes sense.

@salaboy quick comment, my intention of moving all of them to the base pom is so that we can have one single place to manage all the dependencies. However, this need not affect the SDK/testcontainer test choices is what I feel.

Let me know if I am missing something.

Copy link
Contributor

@artur-ciocanu artur-ciocanu left a comment

Choose a reason for hiding this comment

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

@siri-varma the PR looks great, I have left some comments, could you please take a look.

Also could you please provide a high level overview what are you trying to achieve with dependency cleanup PRs. I see the value in extracting version properties, however I am not following why we have to move them from respective places to parent POM.

@siri-varma
Copy link
Contributor Author

siri-varma commented May 15, 2025

@artur-ciocanu

If I take grpc-testing example

https://github.com/search?q=repo%3Adapr%2Fjava-sdk%20%22grpc-testing%22&type=code
It is declared with the version property in multiple places. This just felt redundant.
If we could define all dependencies along with versions in one single place (and from my experience this generally happens in the parent pom) it will make it cleaner.

I may be seeing this through the lens of my experience, open to get @dapr-javasdk maintainer thoughts as well.

@siri-varma
Copy link
Contributor Author

@artur-ciocanu/ @salaboy / @dapr/maintainers-java-sdk addressed all the comments. Thank you

Signed-off-by: siri-varma <[email protected]>
Signed-off-by: Siri Varma Vegiraju <[email protected]>
Signed-off-by: Siri Varma Vegiraju <[email protected]>
@siri-varma
Copy link
Contributor Author

@artur-ciocanu / @dapr-java-sdk-reviewer / @salaboy This PR is ready to be reviewed

@siri-varma
Copy link
Contributor Author

@artur-ciocanu / @dapr-java-sdk-reviewer / @salaboy

Just a gentle reminder about this PR

Copy link
Contributor

@artur-ciocanu artur-ciocanu left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for all this effort! 🙇

@dapr-bot dapr-bot merged commit a99d286 into dapr:master May 23, 2025
9 checks passed
Copy link

codecov bot commented May 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.13%. Comparing base (d759c53) to head (708d05c).
Report is 154 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1332      +/-   ##
============================================
+ Coverage     76.91%   78.13%   +1.22%     
- Complexity     1592     1830     +238     
============================================
  Files           145      223      +78     
  Lines          4843     5663     +820     
  Branches        562      601      +39     
============================================
+ Hits           3725     4425     +700     
- Misses          821      917      +96     
- Partials        297      321      +24     

☔ 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor maven POMs to put all information about the dependencies/plugins in the root POM
4 participants