Conversation
Signed-off-by: Pavan Yekbote <pybot@amazon.com>
Signed-off-by: Pavan Yekbote <pybot@amazon.com>
| resolutionStrategy.force 'io.netty:netty-resolver:4.1.125.Final' | ||
| resolutionStrategy.force 'io.netty:netty-transport:4.1.125.Final' | ||
| resolutionStrategy.force 'io.netty:netty-transport-native-unix-common:4.1.125.Final' | ||
| resolutionStrategy.force "io.netty:netty-buffer:${versions.netty}" |
There was a problem hiding this comment.
Cool looks like OpenSearch core addressed this issue to
Signed-off-by: Pavan Yekbote <pybot@amazon.com>
|
Yes, I noticed that too. Looking into it. |
|
The error "Unsupported class file major version 69" indicates that Gradle is trying to compile code with Java 25, but Gradle 8.11.1 doesn't support Java 25 yet. Java class file major version 69 corresponds to Java 25. The issue is that your CI is running with Java 25 (as shown in the output: "openjdk version '25.0.2'"), but Gradle 8.11.1 doesn't support it yet. Gradle 8.11.1 supports up to Java 23. Looking at CI-workflow.yml, it shouldn't be trying to run Java 25 at all. Trying to see what went wrong. |
Signed-off-by: Pavan Yekbote <pybot@amazon.com>
PR Reviewer Guide 🔍(Review updated until commit 6680113)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 6680113 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 95524b8
Suggestions up to commit a24986e
|
|
The CI build was failing because the Docker container's default Java 25 was being used instead of the intended matrix Java versions (11/17/21). While the setup-java action correctly installed the matrix Java version and set JAVA_HOME, the subsequent su command that switches to user 1000 starts a new shell that doesn't inherit environment variables. The fix explicitly passes JAVA_HOME through the su command by adding export JAVA_HOME=$JAVA_HOME && export PATH=$JAVA_HOME/bin:$PATH at the start, and changes the command from single to double quotes (with proper escaping) to allow the parent shell's $JAVA_HOME to be expanded and preserved for user 1000, ensuring the correct Java version is used instead of the unsupported Java 25. |
|
@pyek-bot the change of the CI will not take effect on this PR's CI. I will recommend raise a seperate PR to fix the CI issue first, then rebase the change in this PR, we can know the updated CI works, and the CI can see if it passes, you will be more confident in this CVE fixes |
|
Persistent review updated to latest commit 95524b8 |
This reverts commit a24986e. Signed-off-by: Pavan Yekbote <pybot@amazon.com>
…rk with java 25 Signed-off-by: Pavan Yekbote <pybot@amazon.com>
PR Code Analyzer ❗AI-powered 'Code-Diff-Analyzer' found issues on commit 6680113.
The table above displays the top 10 most important findings. Pull Requests Author(s): Please update your Pull Request according to the report above. Repository Maintainer(s): You can Thanks. |
|
Persistent review updated to latest commit 6680113 |
|
Fixed here: #4694 |
Description
Modifying the netty dependency to rely on the version from core.
This was done earlier: #4338
This can be considered a backport
Check List
--signoff.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.