This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ratis.git


The following commit(s) were added to refs/heads/master by this push:
     new 67c65faf0 RATIS-2573. Use Java 25 in CI (#1494)
67c65faf0 is described below

commit 67c65faf057e29153d7189e1d19d04cc0fced396
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Mon Jun 29 18:30:36 2026 +0200

    RATIS-2573. Use Java 25 in CI (#1494)
---
 .github/workflows/check.yaml |  4 ++--
 .github/workflows/ci.yaml    |  2 +-
 pom.xml                      | 19 ++++++++++++++++++-
 3 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml
index 3962cd3ba..f5aee6b31 100644
--- a/.github/workflows/check.yaml
+++ b/.github/workflows/check.yaml
@@ -30,8 +30,8 @@ on:
       # OPTIONAL (ordered alphabetically)
       java-version:
         type: string
-        description: "Java version to set up (default: 17)"
-        default: '17'
+        description: "Java version to set up (default: 25)"
+        default: '25'
         required: false
 
       needs-binary-tarball:
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index ee19c09bd..e2f3a2500 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -48,7 +48,7 @@ jobs:
       - build
     strategy:
       matrix:
-        java: [ 8, 11, 17, 21 ]
+        java: [ 8, 17, 21, 25 ]
       fail-fast: false
     uses: ./.github/workflows/check.yaml
     with:
diff --git a/pom.xml b/pom.xml
index 3674145dc..59d5bb90d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -194,8 +194,15 @@
     <slf4j.version>2.0.18</slf4j.version>
     <junit-bom.version>5.14.4</junit-bom.version>
     <mockito.version>4.11.0</mockito.version>
+    <byte-buddy.version>1.18.10</byte-buddy.version>
     <jacoco.version>0.8.15</jacoco.version>
     <flaky-test-groups>flaky | 
org.apache.ratis.test.tag.FlakyTest</flaky-test-groups>
+
+    <extraJavaTestArgs>
+      -XX:+IgnoreUnrecognizedVMOptions
+      --enable-native-access=ALL-UNNAMED
+      --sun-misc-unsafe-memory-access=allow
+    </extraJavaTestArgs>
   </properties>
 
   <dependencyManagement>
@@ -402,6 +409,16 @@
         <artifactId>mockito-core</artifactId>
         <version>${mockito.version}</version>
       </dependency>
+      <dependency>
+        <groupId>net.bytebuddy</groupId>
+        <artifactId>byte-buddy</artifactId>
+        <version>${byte-buddy.version}</version>
+      </dependency>
+      <dependency>
+      <groupId>net.bytebuddy</groupId>
+        <artifactId>byte-buddy-agent</artifactId>
+        <version>${byte-buddy.version}</version>
+      </dependency>
     </dependencies>
   </dependencyManagement>
 
@@ -564,7 +581,7 @@
             <enableProcessChecker>all</enableProcessChecker>
             <forkedProcessTimeoutInSeconds>600</forkedProcessTimeoutInSeconds>
             <!-- @argLine is filled by jacoco maven plugin. @{} means late 
evaluation -->
-            <argLine>-Xmx2g -XX:+HeapDumpOnOutOfMemoryError 
@{argLine}</argLine>
+            <argLine>-Xmx2g -XX:+HeapDumpOnOutOfMemoryError 
${extraJavaTestArgs} @{argLine}</argLine>
             <systemPropertyVariables>
               <ratis.log.dir>${project.build.directory}/log</ratis.log.dir>
               <ratis.tmp.dir>${project.build.directory}/tmp</ratis.tmp.dir>

Reply via email to