Skip to content
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

External dependencies upgrade - Spring Boot 3.0.0-RC1 and Spring Cloud 2022.0.0-RC1 #31808

Conversation

moarychan
Copy link
Member

@moarychan moarychan commented Oct 28, 2022

Upgrade the dependencies to align with Spring Boot 3.0.0-RC1 and Spring Cloud 2022.0.0-RC1.

Changes:

  • Disable the fail of azure-core on deprecated API usage(com.azure.core.implementation.logging.DefaultLogger).
  • Update the sync_external_dependencies.py to support more use cases.
  • Make the compatibility tests pipeline pass by default when executing unit tests out with deprecation APIs.
  • Upgrade deprecated APIs
    • org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity -> org.springframework.security.config.annotation.method.configuration.EnableMethodSecurity
    • org.springframework.security.oauth2.server.resource.BearerTokenAuthenticationToken -> org.springframework.security.oauth2.server.resource.authentication.BearerTokenAuthenticationToken

@azure-sdk
Copy link
Collaborator

azure-sdk commented Oct 28, 2022

API change check

APIView has identified API level changes in this PR and created following API reviews.

spring-cloud-azure-autoconfigure
azure-messaging-eventhubs
azure-core
azure-core-amqp
azure-core-management

@moarychan moarychan changed the title External dependencies upgrade - Spring Boot 3.0.0-RC1 and Spring Cloud 2022.0.0-M5 External dependencies upgrade - Spring Boot 3.0.0-RC1 and Spring Cloud 2022.0.0-RC1 Oct 31, 2022
org.springframework.boot:spring-boot;3.0.0-RC1
org.springframework.data:spring-data-commons;3.0.0-RC1
org.springframework.data:spring-data-mongodb;4.0.0-RC1
org.springframework.data:spring-data-redis;3.0.0-RC1
org.springframework.experimental:spring-aot;0.11.4
Copy link
Member

Choose a reason for hiding this comment

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

Should we remove this now? Or leave it until we start working on the aot?

Copy link
Member Author

Choose a reason for hiding this comment

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

It should be removed until we start developing the new AOT support, the current native configuration module will use this dependency.

@@ -103,7 +103,7 @@ public List<OAuth2TokenValidator<Jwt>> createDefaultValidator(AadAuthenticationP
* Default security configuration of the resource server, user can write another configuration bean to override it.
*/
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = true)
@EnableMethodSecurity
Copy link
Member

Choose a reason for hiding this comment

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

Why making this change?

Copy link
Member Author

Choose a reason for hiding this comment

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

@saragluna
Copy link
Member

@moarychan, seems like some jobs in the core-ci and jdbc-ci failed, is this expected?

…emetry-sdk-logs and opentelemetry-sdk-extension-autoconfigure because they are not included in the opentelemetry-bom
@moarychan
Copy link
Member Author

@moarychan, seems like some jobs in the core-ci and jdbc-ci failed, is this expected?

jdbc-ci pipelines passed.
code-ci pipelines failed with some UTs of the azure-core-metrics-opentelemetry, which seems not compatible with the new version of opentelemetry, https://dev.azure.com/azure-sdk/public/_build/results?buildId=1957323&view=logs&j=c51d6cb2-95cd-5b4d-48e3-5062b75e6984&t=b62ccbdd-d117-5716-c02f-c3937fbd094d

@saragluna could you help check whether we can ignore those failures?

@saragluna
Copy link
Member

@moarychan seems like there are two modules are affected:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test (default-cli) on project azure-core-amqp: 
[ERROR] 
[ERROR] Please refer to /mnt/vss/_work/1/s/sdk/core/azure-core-amqp/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test (default-cli) on project azure-core-metrics-opentelemetry: 
[ERROR] 
[ERROR] Please refer to /mnt/vss/_work/1/s/sdk/core/azure-core-metrics-opentelemetry/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.

Could you help check whether we can make the azure-core-amqp UT pass? Since we are not using the metrics module now, but we should take a look at what breaking change caused the error.

@saragluna
Copy link
Member

@moarychan seems like there are two modules are affected:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test (default-cli) on project azure-core-amqp: 
[ERROR] 
[ERROR] Please refer to /mnt/vss/_work/1/s/sdk/core/azure-core-amqp/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M7:test (default-cli) on project azure-core-metrics-opentelemetry: 
[ERROR] 
[ERROR] Please refer to /mnt/vss/_work/1/s/sdk/core/azure-core-metrics-opentelemetry/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.

Could you help check whether we can make the azure-core-amqp UT pass? Since we are not using the metrics module now, but we should take a look at what breaking change caused the error.

The amqp tests also failed in this PR, please help take a look #31730.

Copy link
Member

@saragluna saragluna left a comment

Choose a reason for hiding this comment

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

Since the integration tests have passed, and the pipeline broken issues are tracked in #31885 and #31886. Approving this PR now.

@moarychan moarychan merged commit 8d6d989 into Azure:feature/spring-boot-3 Nov 2, 2022
@moarychan moarychan deleted the moary/update-spring-cloud-azure-sb3rc1-sc2022m5 branch November 7, 2022 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[FEATURE REQ] Release 6.0.0-beta.3 for Spring Boot 3.0
4 participants