Skip to content

Upgrade spring boot version to 3.4.4 #1365

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 3 commits into from
Apr 23, 2025

Conversation

CrazyHZM
Copy link
Contributor

@CrazyHZM CrazyHZM commented Apr 14, 2025

Summary by CodeRabbit

  • Chores
    • Upgraded the underlying application framework to a more current version, enhancing performance, reliability, and overall stability.
    • Improved system health monitoring by refining the default health indicators excluded from checks.
    • Updated the build environment to use a newer operating system version for improved build consistency and security.
    • Updated Spring Cloud dependencies to the latest release for better compatibility and features.

Copy link

coderabbitai bot commented Apr 14, 2025

## Walkthrough
The pull request updates the Spring Boot dependency version within the `pom.xml` file. Both the `<parent>` version and the `<spring.boot.version>` property have been revised from `3.3.7` to `3.4.4`. Additionally, it adds the class `org.springframework.boot.actuate.ssl.SslHealthIndicator` to the list of default excluded health indicators in the `HealthIndicatorProcessor` class. The GitHub Actions workflow was also updated to run on Ubuntu 22.04 instead of Ubuntu 20.04. Furthermore, the Spring Cloud version property in the `sofaboot-dependencies/pom.xml` was updated from `2023.0.3` to `2024.0.0`.

## Changes
| File                                                                                  | Changes                                                                                               |
|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|
| pom.xml                                                                               | Updated Spring Boot dependency: parent version and `<spring.boot.version>` from 3.3.7 to 3.4.4       |
| sofa-boot-project/sofa-boot-actuator/src/main/java/com/alipay/sofa/boot/actuator/...  | Added `org.springframework.boot.actuate.ssl.SslHealthIndicator` to the default excluded health indicators list |
| .github/workflows/maven.yml                                                           | Changed GitHub Actions runner environment from Ubuntu 20.04 to Ubuntu 22.04                          |
| sofa-boot-project/sofaboot-dependencies/pom.xml                                       | Updated Spring Cloud version property from `2023.0.3` to `2024.0.0`                                 |

## Possibly related PRs
- sofastack/sofa-boot#1326: Updates Spring Boot version in `pom.xml` and related properties, similar dependency upgrade scope.
- sofastack/sofa-boot#1323: Spring Boot version upgrade in `pom.xml`, related to dependency version management.
- sofastack/sofa-boot#1353: Spring Boot version bump in `pom.xml` and property, closely related in purpose.

## Suggested labels
`cla:yes`, `size/S`

## Suggested reviewers
- HzjNeverStop
- crazysaltfish

## Poem
> Hoppy news on the coding trail,  
> Spring Boot now dons a fresh, new scale.  
> My whiskers twitch in lines of code so neat,  
> Leaping through versions with a joyful beat.  
> I celebrate these changes with a merry hop—  
> Here's to smooth builds that never stop!  
> 🐇✨🚀

Tip

⚡💬 Agentic Chat (Pro Plan, General Availability)
  • We're introducing multi-step agentic chat in review comments and issue comments, within and outside of PR's. This feature enhances review and issue discussions with the CodeRabbit agentic chat by enabling advanced interactions, including the ability to create pull requests directly from comments and add commits to existing pull requests.

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6c6d3e0 and 7930afb.

📒 Files selected for processing (1)
  • sofa-boot-project/sofaboot-dependencies/pom.xml (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • sofa-boot-project/sofaboot-dependencies/pom.xml
⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: build (17)
  • GitHub Check: build (21)
  • GitHub Check: sca

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@CrazyHZM CrazyHZM force-pushed the 4.x_feat/ugrade_spring_boot_3.4.4 branch from 1b43c97 to 6fdc5ad Compare April 18, 2025 03:39
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
sofa-boot-project/sofa-boot-actuator/src/main/java/com/alipay/sofa/boot/actuator/health/HealthIndicatorProcessor.java (1)

71-72: LGTM - Appropriate health indicator exclusion for Spring Boot 3.4.4

The addition of org.springframework.boot.actuate.ssl.SslHealthIndicator to the DEFAULT_EXCLUDE_INDICATORS list is correct and aligns with the Spring Boot version upgrade to 3.4.4. This new health indicator was introduced in Spring Boot 3.4.x and excluding it follows the same pattern as other similar health indicators like LivenessStateHealthIndicator and ReadinessStateHealthIndicator.

Consider adding a version comment to document when each indicator was added to the exclusion list to make future upgrades easier to track:

 private static final List<String>              DEFAULT_EXCLUDE_INDICATORS     = Arrays
                                                                                   .asList(
                                                                                       "com.alipay.sofa.boot.actuator.health.NonReadinessCheck",
                                                                                       "org.springframework.boot.actuate.availability.ReadinessStateHealthIndicator",
-                                                                                      "org.springframework.boot.actuate.availability.LivenessStateHealthIndicator",
-                                                                                      "org.springframework.boot.actuate.ssl.SslHealthIndicator");
+                                                                                      "org.springframework.boot.actuate.availability.LivenessStateHealthIndicator", // Spring Boot 3.x
+                                                                                      "org.springframework.boot.actuate.ssl.SslHealthIndicator"); // Spring Boot 3.4.x
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 1b43c97 and 6fdc5ad.

📒 Files selected for processing (2)
  • pom.xml (2 hunks)
  • sofa-boot-project/sofa-boot-actuator/src/main/java/com/alipay/sofa/boot/actuator/health/HealthIndicatorProcessor.java (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • pom.xml
⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: stc
  • GitHub Check: sca

Copy link

codecov bot commented Apr 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.90%. Comparing base (7585720) to head (7930afb).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1365   +/-   ##
=========================================
  Coverage     82.90%   82.90%           
- Complexity     2970     2971    +1     
=========================================
  Files           340      340           
  Lines          9828     9828           
  Branches       1178     1178           
=========================================
  Hits           8148     8148           
  Misses         1164     1164           
  Partials        516      516           

☔ 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.

@CrazyHZM CrazyHZM merged commit a069240 into sofastack:master Apr 23, 2025
7 checks passed
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.

1 participant