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

build(deps): bump org.springframework.boot from 3.1.5 to 3.2.1 #3217

Merged
merged 3 commits into from
Dec 26, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 22, 2023

Bumps org.springframework.boot from 3.1.5 to 3.2.1.

Release notes

Sourced from org.springframework.boot's releases.

v3.2.1

⭐ New Features

🐞 Bug Fixes

  • HibernateJpaAutoConfiguration should be applied before DataSourceTransactionManagerAutoConfiguration #38880
  • META-INF entries are duplicated under BOOT-INF/classes causing "Conflicting persistence unit definitions" error #38862
  • logging.include-application-name has no effect when using log4j2 #38847
  • Pulsar authentication param properties cause IllegalStateException with Pulsar Client 3.1.0 #38839
  • Child context created with SpringApplicationBuilder runs parents runners #38837
  • getSigners() info is lost for signed jars when using the new loader implementation with requiresUnpack #38833
  • TestContainers parallel initialization doesn't work properly #38831
  • Zip file closed exceptions can be thrown due to StaticResourceJars closing jars from cached connections #38770
  • Multi-byte filenames in zip files can cause an endless loop in ZipString.hash #38751
  • Gradle task "bootJar" fails with "Failed to get permissions" when using Gradle 8.6-milestone-1 #38741
  • Custom binding converters are ignored when working with collection types #38734
  • WebFlux and resource server auto-configuration may fail due to null authentication manager #38713
  • It is unclear that Docker Compose services have not been started as one or more is already running #38661
  • Spring Boot jar launcher does not work in folders containing certain chars #38660
  • FileNotFoundException is thrown eagerly from unused SSL bundles #38659
  • NoUniqueBeanDefinitionFailureAnalyzer does not account for the fact that missing '-parameters' may be the cause #38652
  • Traces are propagated if tracing is disabled #38641
  • Missing registry auto-configuration for JMS listener observation support #38613
  • Class loading fails on an interrupted thread causing com.mongodb.event.ServerClosedEvent to fail to load when Mongo detects a cluster change #38611
  • Failures due to code not being compiled with '-parameters' are hard to identify #38603
  • System SSL certificates are not used by the Apache HTTP Client in a RestTemplate built with RestTemplateBuilder #38600
  • ZipFileSystem throws "java.util.zip.ZipException: read CEN tables failed" with certain nested jars #38595
  • Nested jar URLs cannot be split and reassembled resulting in errors with projects that use this technique (such as JobRunr) #38592
  • NoSuchMethodError can be thrown from Session.getCookie() due to binary incompatibilty #38589
  • management.metrics.tags has been deprecated without a replacement working for all metrics #38583
  • NegativeArraySizeException can be thrown from org.springframework.boot.loader.zip.ZipContent$Loader #38572
  • Migration form 3.1.5 to 3.2.0 : "Default" Tracer is not provided in test anymore #38568
  • TomcatWebServer stop doesn't close sockets for additional connectors #38564
  • Port is already in use when using @SpringBootTest with a separate management port and a mock web environment #38554
  • Keep-alive property causes processAot step to never finish #38531
  • Setting 'spring.task.scheduling.shutdown.await-termination-period' does not result in a call to SimpleAsyncTaskScheduler#taskTerminationTimeout #38530
  • Setting 'spring.task.execution.shutdown.await-termination-period' does not result in a call to SimpleAsyncTaskExecutor#taskTerminationTimeout #38528
  • Nested URLs return null from classLoader.getResource("") causing ClassPathResource failures #38524
  • Spring Boot 3.2 is not compatible with older versions of Liquibase #38522
  • Controller level exceptions not getting populated in HTTP server requests metrics #33731

📔 Documentation

  • Fix typo #38879
  • Add the LangChain4J Spring Boot Starter to the list of community starters #38776
  • Document prerequisites for Docker Compose support #38764
  • Update Dynatrace documentation links #38725
  • Correct references to Jetty's HTTP2 server module #38632

... (truncated)

Commits
  • 8bb60ee Release v3.2.1
  • 7d1982f Merge branch '3.1.x'
  • 53528d3 Next development version (v3.1.8-SNAPSHOT)
  • 3222458 Merge branch '3.1.x'
  • 66e9c77 Upgrade Ubuntu version in CI images
  • f31ffbf Don't duplicate META-INF entries in nested directory jars
  • b218528 Merge branch '3.1.x'
  • 20529ea Drop Netty restriction
  • bf7d1e4 Merge branch '3.1.x'
  • e754c91 Upgrade to Spring WS 4.0.9
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot will merge this PR once CI passes on it, as requested by @nixel2007.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Summary by CodeRabbit

  • Refactor
    • Updated the Spring Boot plugin to the latest version for improved performance and compatibility.
    • Enhanced a configuration class to better define its role within the application context.

Bumps [org.springframework.boot](https://github.com/spring-projects/spring-boot) from 3.1.5 to 3.2.1.
- [Release notes](https://github.com/spring-projects/spring-boot/releases)
- [Commits](spring-projects/spring-boot@v3.1.5...v3.2.1)

---
updated-dependencies:
- dependency-name: org.springframework.boot
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Dec 22, 2023
Copy link

coderabbitai bot commented Dec 22, 2023

Walkthrough

The project has been updated with a minor Spring Boot plugin version bump and an infrastructure role annotation added to a bean within the application context. These changes suggest a focus on keeping dependencies up-to-date and refining the application's configuration management.

Changes

File Path Change Summary
build.gradle.kts Updated org.springframework.boot plugin version from 3.1.5 to 3.2.1.
src/main/java/com/github/_1c_syntax/bsl/languageserver/infrastructure/UtilsConfiguration.java Added @Role(BeanDefinition.ROLE_INFRASTRUCTURE) annotation to UtilsConfiguration class.
src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/DenyIncompleteValuesDiagnosticTest.java Modified mocking and handling of InformationRegister instances within checkMockHandler method.

🐇✨
In the land of code, where the Java beans grow,
A rabbit hopped in, with updates in tow.
Spring Boot leaps forward, a minor step true,
With infrastructure roles, it’s a fresh morning dew. 🌱

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share

Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • You can directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
  • You can tag CodeRabbit on specific lines of code or entire files in the PR by tagging @coderabbitai in a comment. Examples:
    • @coderabbitai generate unit tests for this file
    • @coderabbitai modularize this function
  • You can tag @coderabbitai in a PR comment and ask questions about the PR and the codebase. Examples:
    • @coderabbitai gather interesting statistics about this repository and render them in a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai generate unit tests for the src/utils.ts file.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • 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/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

@ghost
Copy link

ghost commented Dec 22, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

stringInterner инжектится внутрь DiagnosticBeanPostProcessor, поэтому во избежание ругани он должен быть инфраструктурным бином
@nixel2007
Copy link
Member

@dependabot merge

Copy link

github-actions bot commented Dec 26, 2023

Qodana Community for JVM

17 new problems were found

Inspection name Severity Problems
Statement with empty body 🔶 Warning 5
'@Serial' annotation could be used 🔶 Warning 4
Constant values 🔶 Warning 3
Mismatched query and update of collection 🔶 Warning 2
Class is exposed outside of its visibility scope 🔶 Warning 1
Nullability and data flow problems 🔶 Warning 1
Mismatched read and write of array 🔶 Warning 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

@nixel2007
Copy link
Member

@coderabbitai review

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.

Review Status

Actionable comments generated: 0

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 0c544f4 and 1e5ca45.
Files selected for processing (2)
  • build.gradle.kts (1 hunks)
  • src/main/java/com/github/_1c_syntax/bsl/languageserver/infrastructure/UtilsConfiguration.java (1 hunks)
Additional comments: 5
src/main/java/com/github/_1c_syntax/bsl/languageserver/infrastructure/UtilsConfiguration.java (4)
  • 25-25: The addition of the import statement for BeanDefinition is necessary due to the usage of BeanDefinition.ROLE_INFRASTRUCTURE in the annotations.

  • 28-28: The addition of the import statement for Role is necessary for the @Role annotation used in the class and method.

  • 34-34: The @Role(BeanDefinition.ROLE_INFRASTRUCTURE) annotation on the UtilsConfiguration class designates the role of the bean within the Spring context. Ensure that this change aligns with the intended behavior and lifecycle management of the beans defined in this configuration class.

  • 41-41: The @Role(BeanDefinition.ROLE_INFRASTRUCTURE) annotation on the stringInterner method is consistent with the class-level annotation. Verify that this specific bean should also be marked as infrastructure, as it may affect its processing by the Spring container.

build.gradle.kts (1)
  • 19-19: The update of the org.springframework.boot plugin to version 3.2.1 is part of the routine maintenance to keep the project dependencies up-to-date. Ensure that this version is compatible with other dependencies and that no breaking changes affect the project.

Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 26, 2023

One of your CI runs failed on this pull request, so Dependabot won't merge it.

Dependabot will still automatically merge this pull request if you amend it and your tests pass.

@nixel2007
Copy link
Member

@dependabot merge

@nixel2007
Copy link
Member

nixel2007 commented Dec 26, 2023

@coderabbitai review

Copy link

sonarcloud bot commented Dec 26, 2023

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

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.

Review Status

Actionable comments generated: 1

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 1e5ca45 and 5c35d4d.
Files selected for processing (1)
  • src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/DenyIncompleteValuesDiagnosticTest.java (1 hunks)
Additional comments: 5
src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/DenyIncompleteValuesDiagnosticTest.java (5)
  • 93-93: The mocking of getMdObject to return infoReg is standard practice in tests and appears to be implemented correctly.

  • 96-96: The conditional mocking of infoReg.getModules() to return an empty list based on the noneModules flag is implemented correctly.

  • 98-101: The mocking of configuration.getChildren() to return a list containing only infoReg is standard practice in tests and appears to be implemented correctly.

  • 100-101: The mocking of documentContext.getServerContext() to return a spy of serverContext with a mocked getConfiguration method is standard practice in tests and appears to be implemented correctly.

  • 86-101: > Note: This review was outside the patches, and no patch overlapping with it was found. Original lines [102-108]

The use of getDiagnostics and subsequent assertions with assertThat to verify the expected diagnostic message and size is standard testing practice and appears to be implemented correctly.

Comment on lines +89 to +90
final var infoReg = spy((InformationRegister) context.getConfiguration().findChild(MdoReference.create(MDOType.INFORMATION_REGISTER,
"РегистрСведений1")).orElseThrow()
Copy link

Choose a reason for hiding this comment

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

The creation of infoReg spy object is done correctly, but it's important to ensure that the orElseThrow() method provides a meaningful exception message for better debugging in case the findChild method returns an empty Optional.

- "РегистрСведений1")).orElseThrow()
+ "РегистрСведений1")).orElseThrow(() -> new NoSuchElementException("InformationRegister 'РегистрСведений1' not found."))

Committable suggestion

IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
final var infoReg = spy((InformationRegister) context.getConfiguration().findChild(MdoReference.create(MDOType.INFORMATION_REGISTER,
"РегистрСведений1")).orElseThrow()
final var infoReg = spy((InformationRegister) context.getConfiguration().findChild(MdoReference.create(MDOType.INFORMATION_REGISTER,
"РегистрСведений1")).orElseThrow(() -> new NoSuchElementException("InformationRegister 'РегистрСведений1' not found.")))

@dependabot dependabot bot merged commit 5fb31b5 into develop Dec 26, 2023
32 checks passed
@dependabot dependabot bot deleted the dependabot/gradle/org.springframework.boot-3.2.1 branch December 26, 2023 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file java Pull requests that update Java code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant