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

chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fory.git


The following commit(s) were added to refs/heads/main by this push:
     new aa2f7a37b feat(ci): make rust xlang ci run separately to make ci 
faster (#3090)
aa2f7a37b is described below

commit aa2f7a37bca40ffda8625214be6dd76310c96f3c
Author: Shawn Yang <[email protected]>
AuthorDate: Thu Dec 25 14:08:24 2025 +0800

    feat(ci): make rust xlang ci run separately to make ci faster (#3090)
    
    ## Why?
    
    
    
    ## What does this PR do?
    
    
    
    ## Related issues
    
    
    
    ## Does this PR introduce any user-facing change?
    
    
    
    - [ ] Does this PR introduce any public API change?
    - [ ] Does this PR introduce any binary protocol compatibility change?
    
    ## Benchmark
---
 .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++
 ci/tasks/rust.py         | 17 -----------------
 2 files changed, 26 insertions(+), 17 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 93c7ed931..ff30502ec 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -334,6 +334,32 @@ jobs:
       - name: Run Rust CI
         run: python ./ci/run_ci.py rust
 
+  rust_xlang:
+    name: Rust Xlang Test
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v5
+      - name: Set up JDK 21
+        uses: actions/setup-java@v4
+        with:
+          java-version: 21
+          distribution: "temurin"
+      - name: Cache Maven local repository
+        uses: actions/cache@v4
+        with:
+          path: ~/.m2/repository
+          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+          restore-keys: |
+            ${{ runner.os }}-maven-
+      - name: Run Rust Xlang Test
+        env:
+          FORY_RUST_JAVA_CI: "1"
+        run: |
+          cd java
+          mvn -T16 --no-transfer-progress clean install -DskipTests
+          cd fory-core
+          mvn -T16 --no-transfer-progress test 
-Dtest=org.apache.fory.RustXlangTest
+
   cpp:
     name: C++ CI
     strategy:
diff --git a/ci/tasks/rust.py b/ci/tasks/rust.py
index f8572562c..1b8de13f6 100644
--- a/ci/tasks/rust.py
+++ b/ci/tasks/rust.py
@@ -16,8 +16,6 @@
 # under the License.
 
 import logging
-import os
-import subprocess
 from . import common
 
 
@@ -78,18 +76,3 @@ def run():
     )
     for cmd in cmds:
         common.exec_cmd(cmd)
-
-    logging.info("Executing Rust <-> Java11 cross-language tests")
-    os.environ["FORY_RUST_JAVA_CI"] = "1"
-    java_dir = os.path.join("..", "java")
-    subprocess.check_call(["mvn", "clean", "install", "-DskipTests"], 
cwd=java_dir)
-    subprocess.check_call(
-        [
-            "mvn",
-            "-B",
-            "--no-transfer-progress",
-            "test",
-            "-Dtest=org.apache.fory.RustXlangTest",
-        ],
-        cwd=os.path.join(java_dir, "fory-core"),
-    )


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to