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

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


The following commit(s) were added to refs/heads/master by this push:
     new 295f41e0 [AURON #1940] Extract Rust test logic to standalone CI 
workflow (#1941)
295f41e0 is described below

commit 295f41e01383165d3f0c7d28d67d2bde18d34835
Author: yew1eb <[email protected]>
AuthorDate: Wed Jan 28 00:10:20 2026 +0800

    [AURON #1940] Extract Rust test logic to standalone CI workflow (#1941)
    
    <!--
    - Start the PR title with the related issue ID, e.g. '[AURON #XXXX]
    Short summary...'.
    -->
    # Which issue does this PR close?
    
    Closes #1940
    
    
    # Rationale for this change
    
    # What changes are included in this PR?
    
    # Are there any user-facing changes?
    
    # How was this patch tested?
---
 .github/workflows/rust-test.yml      | 72 ++++++++++++++++++++++++++++++++++++
 .github/workflows/tpcds-reusable.yml | 11 ------
 dev/mvn-build-helper/build-native.sh | 10 +----
 3 files changed, 73 insertions(+), 20 deletions(-)

diff --git a/.github/workflows/rust-test.yml b/.github/workflows/rust-test.yml
new file mode 100644
index 00000000..04116de1
--- /dev/null
+++ b/.github/workflows/rust-test.yml
@@ -0,0 +1,72 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+name: Rust Test
+
+on:
+  workflow_dispatch:
+  push:
+    branches:
+      - master
+      - branch-*
+  pull_request:
+    branches:
+      - master
+      - branch-*
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
+  cancel-in-progress: true
+
+jobs:
+  rust-test:
+    name: Rust Lint & Test
+    runs-on: ubuntu-24.04
+    steps:
+      - name: Checkout Auron
+        uses: actions/checkout@v6
+        with:
+          submodules: recursive
+
+      - name: Setup protoc
+        uses: arduino/setup-protoc@v3
+        with:
+          version: "21.7"
+          repo-token: ${{ secrets.GITHUB_TOKEN }}
+
+      - name: Setup Rust toolchain
+        uses:  ./.github/actions/setup-rust-toolchain
+        with:
+          rustflags: --allow warnings -C target-feature=+aes
+          components:
+            cargo
+            rustfmt
+            clippy
+
+      - name: Cargo fmt
+        shell: bash
+        run: |
+          cargo fmt --all -- --check
+
+      - name: Cargo clippy
+        run: |
+          cargo clippy --all-targets --workspace -- -D warnings
+
+      - name: Cargo test
+        run: |
+          cargo --version
+          cargo test --workspace --all-features
diff --git a/.github/workflows/tpcds-reusable.yml 
b/.github/workflows/tpcds-reusable.yml
index 75f82ae3..40f81e54 100644
--- a/.github/workflows/tpcds-reusable.yml
+++ b/.github/workflows/tpcds-reusable.yml
@@ -116,17 +116,6 @@ jobs:
           rustflags: --allow warnings -C target-feature=+aes
           components:
             cargo
-            rustfmt
-            clippy
-
-      - name: Cargo clippy
-        run: |
-          cargo clippy --all-targets --workspace -- -D warnings
-
-      - name: Cargo test
-        run: |
-          cargo --version
-          cargo test --workspace --all-features
 
       - name: Build auron (Spark ${{ inputs.sparkver }}, Scala ${{ 
inputs.scalaver }}, JDK ${{ inputs.javaver }})
         run: |
diff --git a/dev/mvn-build-helper/build-native.sh 
b/dev/mvn-build-helper/build-native.sh
index 548ab9a9..84e06c77 100755
--- a/dev/mvn-build-helper/build-native.sh
+++ b/dev/mvn-build-helper/build-native.sh
@@ -87,17 +87,9 @@ fi
 
 if [ ! -f "$cache_libpath" ] || [ "$new_checksum" != "$old_checksum" ]; then
     export RUSTFLAGS=${RUSTFLAGS:-"-C target-cpu=native"}
-    echo "Running cargo fix..."
-    cargo fix --all --allow-dirty --allow-staged --allow-no-vcs  2>&1
-
-    echo "Running cargo fmt..."
-    cargo fmt --all -q -- 2>&1
-
-    echo "Running cargo clippy..."
-    cargo clippy --all-targets --workspace -- -D warnings 2>&1
 
     echo "Building native with [$profile] profile..."
-    cargo build --profile="$profile" $features_arg --verbose --locked --frozen 
2>&1
+    cargo build --profile="$profile" $features_arg --verbose --locked 2>&1
 
     mkdir -p "$cache_dir"
     cp -f "$cargo_libpath" "$cache_libpath"

Reply via email to