Skip to content

MINOR: Update dependencies (minor versions only) #13673

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 2 commits into from
May 12, 2023

Conversation

divijvaidya
Copy link
Member

@divijvaidya divijvaidya commented May 4, 2023

All dependency upgrades in the PR are minor upgrades with backward compatible changes. Note that no major version for dependencies have been changed to make it a low risk change. No code changes are required for any of these dependencies. There are separate PRs such as #13662 which will upgrade the major versions.

Release notes for dependencies:

bcpkix 1.70 -> 1.73

Release notes:
https://www.bouncycastle.org/releasenotes.html#r1rv72
https://www.bouncycastle.org/releasenotes.html#r1rv73

httpclient 4.5.13 -> 4.5.14

Some perf fixes, resource de-allocation fixes and no retry in case of NoRouteToHostException
Release notes: https://downloads.apache.org/httpcomponents/httpclient/RELEASE_NOTES-4.5.x.txt

jackson and jackson-databind 2.13.4 -> 2.13.5

Release notes: https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.13.5

javaassist 3.27.0-GA -> 3.29.2-GA

Release notes:
https://github.com/jboss-javassist/javassist/releases/tag/rel_3_29_2_ga
https://github.com/jboss-javassist/javassist/releases/tag/rel_3_29_1_ga
https://github.com/jboss-javassist/javassist/releases/tag/rel_3_29_0_ga
https://github.com/jboss-javassist/javassist/releases/tag/rel_3_28_0_ga

jetty 9.4.48.v20220622 -> 9.4.51.v20230217

Fixes CVE-2023-26048 and CVE-2023-26049

Release notes:
https://github.com/eclipse/jetty.project/releases/tag/jetty-9.4.51.v20230217
https://github.com/eclipse/jetty.project/releases/tag/jetty-9.4.50.v20221201
https://github.com/eclipse/jetty.project/releases/tag/jetty-9.4.49.v20220914

jersey 2.34 -> 2.39.1

Release notes:
https://github.com/eclipse-ee4j/jersey/releases/tag/2.39.1
https://github.com/eclipse-ee4j/jersey/releases/tag/2.39
https://github.com/eclipse-ee4j/jersey/releases/tag/2.38
https://github.com/eclipse-ee4j/jersey/releases/tag/2.37
https://github.com/eclipse-ee4j/jersey/releases/tag/2.36
https://github.com/eclipse-ee4j/jersey/releases/tag/2.35 (<- Adds JDK 16 support)

jline 3.21.0 -> 3.22.0

Bug fixes.

Breaking change (doesn't impact us) -

SyntaxHighlighter has been moved from org.jline.builtins.Nano.SyntaxHighlighter to org.jline.builtins.SyntaxHighlighter

Release notes: https://github.com/jline/jline3/releases/tag/jline-parent-3.22.0

jaxb 2.3.0 -> 2.3.1

Can't find release notes! But https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api/2.3.1 is the latest version in maven.

netty 4.1.86.Final -> 4.1.92.Final

Release notes:
https://netty.io/news/2023/04/25/4-1-92-Final.html
https://netty.io/news/2023/04/03/4-1-91-Final.html
https://netty.io/news/2023/02/13/4-1-89-Final.html
https://netty.io/news/2023/02/12/4-1-88-Final.html
https://netty.io/news/2023/01/12/4-1-87-Final.html

reload4j 1.2.19 -> 1.2.25

Fixed a newly discovered XXE vector vulnerability reported against Chainsaw.
Performance improvements
Release notes: https://reload4j.qos.ch/news.html

scalaCollectionCompat 2.6.0 -> 2.10.0

Fixes CVE GHSA-8qv5-68g4-248j , new features (such as Option.when and Iterator.nextOption) and perf improvements.

Release notes:
https://github.com/scala/scala-collection-compat/releases/tag/v2.10.0
https://github.com/scala/scala-collection-compat/releases/tag/v2.9.0
https://github.com/scala/scala-collection-compat/releases/tag/v2.8.0
https://github.com/scala/scala-collection-compat/releases/tag/v2.7.0

Build and test dependencies

junit 5.9.2 -> 5.9.3

Minor bug fixes. Improvements associated with @MethodSource annotation.
Release notes: https://junit.org/junit5/docs/current/release-notes/index.html#release-notes-5.9.3

jacoco 0.8.8 -> 0.8.10

Release notes:
https://github.com/jacoco/jacoco/releases/tag/v0.8.10
https://github.com/jacoco/jacoco/releases/tag/v0.8.9

scoverage 1.4.11 -> 1.9.3

Release notes:
https://github.com/scoverage/sbt-scoverage/releases?page=2

Compatibility

  • Verified build and test with JDK8 and JDK 17

@machi1990
Copy link
Contributor

Thanks @divijvaidya I am wondering whether it is best to separate each upgrade on a separate PR? That makes each dependency update atomic and thus easier to revert in case we notice issue related to a specific dependency upgrade. What do you think?

@machi1990
Copy link
Contributor

In relation to dependency upgrade, has there been any discussion around automated tooling e.g usage of dependabot or renovate?

@divijvaidya
Copy link
Member Author

Thanks for your comment @machi1990. In principle what you say is right but given the limited committer bandwidth in the community, I am trying to optimize for code reviewer comfort right now. That is why I have intentionally added only the non-controversial upgrades here in the PR. In case of a need for rollback, we can always choose to roll-forward by modifying the version of a specific dependency.

@divijvaidya
Copy link
Member Author

In relation to dependency upgrade, has there been any discussion around automated tooling e.g usage of dependabot or renovate?

I don't know. I have seen @ijuma being the one who periodically performs dependency upgrades. He may be able to provide more info about this. Dependabot is a good idea (and some other Apache communities use it), except when it leads to noise. I don't know if there is a way to "mute" it and enable only at the beginning of a release cycle.

@machi1990
Copy link
Contributor

In relation to dependency upgrade, has there been any discussion around automated tooling e.g usage of dependabot or renovate?

I don't know. I have seen @ijuma being the one who periodically performs dependency upgrades. He may be able to provide more info about this.

Thanks, I'll be interested in any details that could be provided @ijuma

Dependabot is a good idea (and some other Apache communities use it), except when it leads to noise. I don't know if there is a way to "mute" it and enable only at the beginning of a release cycle.

Yes, it is possible. With dependabot you can limit the number of PRs opened. Setting the limit to 0 will equate disabling depedency update for a given package ecosystem. Renovate has a disabling flag, which could be used.

@bmscomp
Copy link
Contributor

bmscomp commented May 5, 2023

It's a good think to keep dependencies up to date

@@ -142,7 +142,7 @@ libs += [
apachedsMavibotPartition: "org.apache.directory.server:apacheds-mavibot-partition:$versions.apacheds",
apachedsJdbmPartition: "org.apache.directory.server:apacheds-jdbm-partition:$versions.apacheds",
argparse4j: "net.sourceforge.argparse4j:argparse4j:$versions.argparse4j",
bcpkix: "org.bouncycastle:bcpkix-jdk15on:$versions.bcpkix",
bcpkix: "org.bouncycastle:bcpkix-jdk18on:$versions.bcpkix",
Copy link
Member Author

@divijvaidya divijvaidya May 5, 2023

Choose a reason for hiding this comment

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

FYI, reviewers, this changes the version of bouncycaste which is compatible from JDK 1.8 onwards instead of earlier JDK 1.5.

@divijvaidya divijvaidya marked this pull request as draft May 5, 2023 13:14
@divijvaidya divijvaidya force-pushed the minor-spring-update branch from a06ed26 to e86380a Compare May 5, 2023 13:25
@divijvaidya divijvaidya force-pushed the minor-spring-update branch from e86380a to 2f439c7 Compare May 5, 2023 13:40
@divijvaidya divijvaidya marked this pull request as ready for review May 5, 2023 16:20
@divijvaidya
Copy link
Member Author

@ijuma, requesting your thoughts about merging this in.

Copy link
Member

@showuon showuon left a comment

Choose a reason for hiding this comment

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

LGTM!

@showuon
Copy link
Member

showuon commented May 12, 2023

Failed tests are unrelated:

    Build / JDK 11 and Scala 2.13 / org.apache.kafka.connect.mirror.integration.MirrorConnectorsWithCustomForwardingAdminIntegrationTest.testOffsetTranslationBehindReplicationFlow()
    Build / JDK 11 and Scala 2.13 / org.apache.kafka.connect.integration.ExactlyOnceSourceIntegrationTest.testConnectorBoundary
    Build / JDK 11 and Scala 2.13 / kafka.admin.TopicCommandIntegrationTest.testDescribeUnderMinIsrPartitionsMixed(String).quorum=zk
    Build / JDK 11 and Scala 2.13 / kafka.api.ConsumerBounceTest.testCloseDuringRebalance()
    Build / JDK 8 and Scala 2.12 / org.apache.kafka.tools.MetadataQuorumCommandTest.[2] Type=Raft-Isolated, Name=testDescribeQuorumStatusSuccessful, MetadataVersion=3.5-IV2, Security=PLAINTEXT

@showuon showuon merged commit f578b38 into apache:trunk May 12, 2023
showuon pushed a commit that referenced this pull request May 12, 2023
All dependency upgrades in the PR are minor upgrades with backward compatible changes. Note that no major version for dependencies have been changed to make it a low risk change. No code changes are required for any of these dependencies.

Reviewers: Luke Chen <[email protected]>
showuon pushed a commit that referenced this pull request May 12, 2023
All dependency upgrades in the PR are minor upgrades with backward compatible changes. Note that no major version for dependencies have been changed to make it a low risk change. No code changes are required for any of these dependencies.

Reviewers: Luke Chen <[email protected]>
@showuon
Copy link
Member

showuon commented May 12, 2023

backported to v3.5 and v3.4

@ijuma
Copy link
Member

ijuma commented May 12, 2023

@ijuma, requesting your thoughts about merging this in.

Looks good.

@divijvaidya divijvaidya deleted the minor-spring-update branch May 15, 2023 12:26
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.

5 participants