-
Notifications
You must be signed in to change notification settings - Fork 207
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
Bump supported Spring Boot baseline to version 3.2.x #1050
Conversation
@artursouza I just checked this PR.. and this is what we need to do to upgrade to spring 3.2.x .. We will start refactoring the spring boot support, trying not to break existing users. |
@artursouza can you please review? |
Looks like CI is failing the |
@cicoyle when you have time can you please validate this one? now that the HTTP client is removed .. we need to upgrade the spring boot version. |
@ThomasVitale I am working out on the licence stuff.. but it seems that |
I fixed it in FOSSA. Ignore Snyk's report on license, I disabled that going forward. Snyk is used for vulnerability reports only. |
@salaboy thanks, I had missed that sdk-tests was excluded from the multi-module Maven project, so the tests didn't actually run as part of the local workflow. I tried to set them up locally based on the pipeline content, but I didn't manage to do it fully, I'm afraid. I pushed a change to update the dependencies in dk-tests, and remove sdk-springboot3. Can you re-run the PR pipeline? |
This is a breaking change but it might make sense for the Java community to simply move away from Springboot 2. |
Yes we made the decision to move forward to spring 3.2.x .. let’s unblock
this if the PR is green
- Blog: http://salaboy.com <http://salaboy.wordpress.com>
- Github user: http://github.com/salaboy
- Twitter: http://twitter.com/salaboy
- Mauricio "Salaboy" Salatino -
…On Wed, 26 Jun 2024 at 19:12, Artur Souza ***@***.***> wrote:
@salaboy <https://github.com/salaboy> thanks, I had missed that sdk-tests
was excluded from the multi-module Maven project, so the tests didn't
actually run as part of the local workflow. I tried to set them up locally
based on the pipeline content, but I didn't manage to do it fully, I'm
afraid. I pushed a change to update the dependencies in dk-tests, and
remove sdk-springboot3. Can you re-run the PR pipeline?
This is a breaking change but it might make sense for the Java community
to simply move away from Springboot 2.
—
Reply to this email directly, view it on GitHub
<#1050 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACCMXV6EOICF7PRK6KXLZTZJMABBAVCNFSM6AAAAABJIVLXTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJSGM2TCMRRGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@salaboy and @ThomasVitale I have spent some time looking at the build failures. According to this document: https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-6.x#parameter-name-retention things have changed in Spring Framework 6.x when it comes to parameter name resolution. We have to either use Java Compiler with java-sdk/sdk-tests/src/test/java/io/dapr/it/methodinvoke/http/MethodInvokeController.java Line 21 in 342f804
I have run an experiment using explicit naming that can be found here: https://github.com/artur-ciocanu/java-sdk/actions/runs/9696067245/job/26757186160. The GitHub Action succeeded, so we can at least try to fix these issues in the near term. I am still looking into other build failures. I'll keep you posted. CC: @artursouza @cicoyle |
@salaboy and @ThomasVitale I have spent a few hours figuring out why the tests are failing. Here are my findings:
My suggestion for the second issue would be to upgrade OTEL to latest library, but this requires some significant changes in @artursouza and @cicoyle what are your thoughts. |
@artur-ciocanu I wonder if we can rely on the OTEL stuff that comes with Spring Boot 3.x instead of adding our own dependency |
@salaboy I was thinking about it ... I guess for Spring Boot based IT tests we can, but I would have to defer to @artursouza and others, since I don't know why we had to use OTEL in its "raw" form. I am assuming because of GRPC tests, but I am not sure. In any case if we upgrade OTEL the IT tests have to be adjusted. |
@cicoyle @artursouza or @ThomasVitale could you please try to merge the "master" and see if we still have any issues with Spring Boot upgrade. |
@artur-ciocanu thanks, I'll try that later today |
2ae46fc
to
53a4c74
Compare
@artur-ciocanu I have rebased this PR on the current "master" and pushed the changes |
@artursouza and @cicoyle it seems that we need maintainers approval. The build workflows are blocked right now. Whenever you have a chance, could you please help? Thank you. |
@ThomasVitale we are almost there 😀. It seems that there is still one IT test that is failing. It is related to SDK resiliency. I will take a look on Monday and see if I can reproduce it and come up with a fix. |
Thanks so much for the help @artur-ciocanu 💪💪 |
@ThomasVitale and @salaboy I have opened #1070 to try to fix the SDK resiliency IT failure. Let's wait until it is merged and see if it will fix the issue. |
@ThomasVitale the SDK resiliency IT fix PR has been merged. Could you please merge "master" and see if things are looking good. |
* Bump dependencies in sdk-springboot module from Spring Boot 2.x to 3.2.6 * Update examples module to use new Spring Boot support with Java 17 baseline * Fix wrong sdkman and mavne wrapper setup that failed the local setup * Update GHA workflow to stop testing for Spring Boot versions < 3.2.x Fixes gh-1039 Signed-off-by: Thomas Vitale <[email protected]>
@artur-ciocanu thanks! I've just rebased the PR |
@artursouza or @cicoyle it seems that we need maintainers approval to kick off the GitHub workflows. Could you please approve and if everything looks merge the PR. Thank you! 🙇♀️ |
Need to check why the build is failing |
Build is still failing. I have no problem merging this once validation passes. |
Let me check tomorrow one more time to see what might be the issue. Thanks for checking @artursouza 🙇 |
Thanks! I would like to help debug the integration tests, but I didn't manage to run them locally. I have suggested an improvement for the docs on how to establish a local setup for running the sdk-tests project. #1075 |
@artursouza and @yaron2 I have opened a tiny PR #1077 to add failure message for the failed IT test. Also I have tried to build #1050 from my fork and the GitHub workflow completed successfully. Here are is the build run: https://github.com/artur-ciocanu/java-sdk/actions/runs/9904795676. If you could review PR #1077 and merge it to Thank you! |
@artursouza sorry for this back and forth, but you could you please merge master and retrigger the GitHub workflows. Much appreciated. |
@artursouza sorry for this back and forth, but could you please merge master and retrigger the GitHub workflows. Thank you, much appreciated. 🙇♂️ |
@artursouza as far as I can see the Spring Boot 3.x build was successful. The other Spring Boot builds like 2.5, 2.6, 2.7, 3.0 are marked as Do you think it is safe to merge this PR that the SB 3.2 and SB 3.3 builds are successful? |
@artursouza and @cicoyle whenever you have a few minutes could you please take a final look, approve and merge. Thank you. |
Signed-off-by: Artur Souza <[email protected]>
@cicoyle can you please review this? |
OK. This is going to release 1.12. |
@artursouza it seems to be 🟢 !!! |
@holopin-bot @ThomasVitale Thank you Thomas! |
Congratulations @ThomasVitale, the maintainer of this repository has issued you a badge! Here it is: https://holopin.io/claim/clzvaaix033460cih33mhkpwg This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account. |
Description
Spring Boot < 3.2.x reached end of life and it's not maintained anymore. This PR bumps the minimum supported version to 3.2.x, supporting both the 3.2.x and 3.3.x release trains.
Issue reference
Fixes gh-1039
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: