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

fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.5.1 #1106

Merged
merged 8 commits into from
Jun 5, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 17, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
io.micronaut:micronaut-core-bom (source) 4.4.0 -> 4.5.1 age adoption passing confidence

Release Notes

micronaut-projects/micronaut-core (io.micronaut:micronaut-core-bom)

v4.5.1

What's Changed
New Features 🎉
Docs 📖

Full Changelog: micronaut-projects/micronaut-core@v4.5.0...v4.5.1

v4.5.0: Micronaut Core v4.5.0

What's Changed
New Features 🎉
Bug Fixes 🐞
Improvements ⭐
Docs 📖
Dependency updates 🚀
Regressions 🧐
Other Changes 💡
New Contributors

Full Changelog: micronaut-projects/micronaut-core@v4.4.10...v4.5.0

v4.4.10: Micronaut Core 4.4.10

What's Changed
Dependency Upgrades 🚀
  • fix(deps): update netty monorepo to v4.1.110.final (#​10848)
Bug Fixes 🐞
Improvements ⭐
Docs 📖

Full Changelog: micronaut-projects/micronaut-core@v4.4.9...v4.4.10

v4.4.9: Micronaut Core 4.4.9

What's Changed

Bug Fixes 🐞

Full Changelog: micronaut-projects/micronaut-core@v4.4.8...v4.4.9

v4.4.8: Micronaut Core 4.4.8

What's Changed

Bug Fixes 🐞
Docs 📖

New Contributors

Full Changelog: micronaut-projects/micronaut-core@v4.4.7...v4.4.8

v4.4.7: Micronaut Core 4.4.7

What's Changed

Bug Fixes 🐞
  • Force secure WebSocket connections to use http/1.1 (#​10754)

Full Changelog: micronaut-projects/micronaut-core@v4.4.6...v4.4.7

v4.4.6: Micronaut Core 4.4.6

What's Changed

Other Changes 💡

Full Changelog: micronaut-projects/micronaut-core@v4.4.5...v4.4.6

v4.4.5: Micronaut Core 4.4.5

What's Changed

Bug Fixes 🐞
  • Make BlockHint public (#​10743)
  • fix: Wrong response for Kotlin suspend function with Unit return type. (#​10746)

Full Changelog: micronaut-projects/micronaut-core@v4.4.4...v4.4.5

v4.4.4: Micronaut Core 4.4.4

What's Changed

Bug Fixes 🐞

Full Changelog: micronaut-projects/micronaut-core@v4.4.3...v4.4.4

v4.4.3: Micronaut Core 4.4.3

What's Changed

Bug Fixes 🐞

Full Changelog: micronaut-projects/micronaut-core@v4.4.2...v4.4.3

v4.4.2: Micronaut Core 4.4.2

What's Changed

  • Implement HTTP/2 access logging (#​10706)
  • Correct extracting embedded annotations expression (#​10720)
  • Implement HTTP/2 server push (#​10705)
  • fix: duplicate CompletedFileUpload in publisher if route is delayed (#​10713)
  • Fix NPE when part conversion fails (#​10712)
  • Remove gorm from docs and version catalog (#​10696)
  • fix(deps): update groovy monorepo to v4.0.21 (#​10697)
  • fix(deps): update dependency io.micronaut.aws:micronaut-aws-bom to v4.5.0 (#​10691)

Full Changelog: micronaut-projects/micronaut-core@v4.4.1...v4.4.2

v4.4.1: Micronaut Core 4.4.1

What's Changed

  • Set Accept header correctly in declarative client (#​10685)
Dependency Upgrades 🚀
  • fix(deps): update dependency com.github.javaparser:javaparser-symbol-solver-core to v3.25.10 (#​10683)
KSP
  • chore(deps): update managed.ksp to v1.9.23-1.0.20 (#​10690)
Micronaut Modules
  • fix(deps): update dependency io.micronaut.reactor:micronaut-reactor-bom to v3.3.0 (#​10672)
  • fix(deps): update dependency io.micronaut.rxjava2:micronaut-rxjava2-bom to v2.3.0 (#​10682)

Full Changelog: micronaut-projects/micronaut-core@v4.4.0...v4.4.1


Configuration

📅 Schedule: Branch creation - "after 10pm" in timezone Europe/Prague, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the type: dependency-upgrade Upgrade a dependency label Apr 17, 2024
@renovate renovate bot force-pushed the renovate/micronaut branch from abb475e to 756f518 Compare April 18, 2024 15:29
@renovate renovate bot changed the title fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.4.3 fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.4.4 Apr 18, 2024
@renovate renovate bot changed the title fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.4.4 fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.4.5 Apr 22, 2024
@renovate renovate bot force-pushed the renovate/micronaut branch from 756f518 to a4dafb8 Compare April 22, 2024 13:17
@renovate renovate bot changed the title fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.4.5 fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.4.6 Apr 22, 2024
@renovate renovate bot force-pushed the renovate/micronaut branch 2 times, most recently from c1964fb to 4060180 Compare April 29, 2024 17:30
@renovate renovate bot changed the title fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.4.6 fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.4.7 Apr 29, 2024
@renovate renovate bot force-pushed the renovate/micronaut branch from 4060180 to 3ac5910 Compare May 2, 2024 18:32
@renovate renovate bot changed the title fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.4.7 fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.4.8 May 2, 2024
@renovate renovate bot changed the title fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.4.8 fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.4.9 May 9, 2024
@renovate renovate bot force-pushed the renovate/micronaut branch from 3ac5910 to 73c4ef8 Compare May 9, 2024 09:36
@renovate renovate bot force-pushed the renovate/micronaut branch from 73c4ef8 to c9b7e30 Compare May 24, 2024 18:53
@renovate renovate bot changed the title fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.4.9 fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.4.10 May 24, 2024
@renovate renovate bot changed the title fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.4.10 fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.5.0 May 29, 2024
@renovate renovate bot force-pushed the renovate/micronaut branch from c9b7e30 to 07e2413 Compare May 29, 2024 19:52
@renovate renovate bot changed the title fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.5.0 fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.5.1 May 31, 2024
@renovate renovate bot force-pushed the renovate/micronaut branch from 07e2413 to 763cc64 Compare May 31, 2024 13:18
Copy link
Contributor Author

renovate bot commented Jun 3, 2024

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@yawkat
Copy link
Member

yawkat commented Jun 4, 2024

I have a fix once micronaut-projects/micronaut-servlet#731 is released

@yawkat yawkat requested a review from graemerocher June 5, 2024 07:29
final GoogleFunctionHttpRequest<Object> req =
new GoogleFunctionHttpRequest<>(request, res, conversionService, applicationContext.getBean(BodyBuilder.class));
new GoogleFunctionHttpRequest<>(request, res, conversionService, applicationContext.getBean(BodyBuilder.class), applicationContext.getBean(Executor.class, Qualifiers.byName(TaskExecutors.BLOCKING)));
Copy link
Contributor

Choose a reason for hiding this comment

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

this bean lookup will run on every request, can you move it to the constructor like ConversionService

this.byteBody = SupplierUtil.memoized(() -> {
try {
return InputStreamByteBody.create(
googleRequest.getInputStream(),
Copy link
Contributor

Choose a reason for hiding this comment

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

when/how is this closed?

Copy link
Member

Choose a reason for hiding this comment

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

it's not, but i assume it doesn't really matter for functions

Copy link

sonarqubecloud bot commented Jun 5, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
39.3% Coverage on New Code (required ≥ 70%)

See analysis details on SonarCloud

@graemerocher graemerocher merged commit 681846a into 5.6.x Jun 5, 2024
10 of 11 checks passed
@graemerocher graemerocher deleted the renovate/micronaut branch June 5, 2024 12:07
graemerocher pushed a commit to micronaut-projects/micronaut-oracle-cloud that referenced this pull request Jun 24, 2024
The proposed approach to do the same as in  micronaut-projects/micronaut-gcp#1106 did not exactly work. This is because the `InputEvent` does not allow accessing the `InputStream` directly. Instead it has a method `consumeBody(Function<InputStream>)` that should be called with implementation similar to this:
```java
<T> T consumeBody(Function<InputStream, T> function) {
      /* verify that not null and not opened twice ... */
      try {
          return function.call(this.body);
      } finally {
          this.body.close();
      }
      /* ... */
}
```
Because it closes the stream we cannot read the stream gradually and split it.

The solution is to read the stream as a whole into a byte array and then provide it to all the consumers. This will probably result in the same memory usage as in https://github.com/micronaut-projects/micronaut-gcp/pull/1106/files (since there we split each time and end up with one unused ByteBody caching the whole request). However, it will require reading the whole body before it is consumed (e.g. JSON parser cannot begin parsing the stream before whole body is read into memory).

---------

Co-authored-by: micronaut-build <65172877+micronaut-build@users.noreply.github.com>
Co-authored-by: yawkat <jonas.konrad@oracle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: dependency-upgrade Upgrade a dependency
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants