-
Notifications
You must be signed in to change notification settings - Fork 8
Change the supported version from >= 3.4.0 to >= 3.5.0
#34
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
Change the supported version from >= 3.4.0 to >= 3.5.0
#34
Conversation
| .stream() | ||
| .map(CONVERTER::convert) | ||
| .filter(Objects::nonNull) | ||
| .filter(s -> s.getSpringBootVersion().matches("3\\.[4-9]\\.\\d+")) // Only consider 3.4.x versions or above |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix a bug when handle version like 3.5.12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request updates the minimum supported Spring Boot version from 3.4.0 to 3.5.0 in the Azure Spring Cloud support tooling. The change improves the implementation by replacing a regex-based version filter with a proper semantic version comparison using the existing Version class.
Key Changes
- Replaced regex pattern
"3\\.[4-9]\\.\\d+"with a newisVersionSupported()method using proper semantic version comparison - Fixed a limitation in the old regex that would have incorrectly excluded version 4.0.0 and higher
- Added comprehensive unit tests covering boundary conditions for the new version filtering logic
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/main/java/com/azure/spring/dev/tools/actions/UpdateSpringCloudAzureSupportFileRunner.java |
Adds isVersionSupported() method with proper semantic version comparison and replaces inline regex filter |
src/test/java/com/azure/spring/dev/tools/actions/UpdateSpringCloudAzureSupportFileRunnerTest.java |
Adds comprehensive test coverage for the new version support check method |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| */ | ||
| boolean isVersionSupported(String springBootVersion) { | ||
| Version version = Version.parse(springBootVersion); | ||
| Version minVersion = Version.parse("3.5.0"); |
Copilot
AI
Dec 3, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The minimum version "3.5.0" is parsed on every call to isVersionSupported(). Consider extracting this as a constant field (e.g., private static final Version MIN_SUPPORTED_VERSION = Version.parse("3.5.0");) to avoid redundant parsing when this method is called multiple times in stream operations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot open a new pull request to apply changes based on this feedback
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolve this conversation because:
- It will not cause any big problem, so ignore this problem.
- The Copilot can't create another PR. See this comment: Fix TokenCredential bean name resolution in Spring Cloud Stream Binder and EventHubs Messaging azure-sdk-for-java#47444 (comment)
Change the supported version from
>= 3.4.0to >=3.5.0