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

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


The following commit(s) were added to refs/heads/master by this push:
     new b265ccbe2d [KYUUBI #6848] Fix Gluten CI
b265ccbe2d is described below

commit b265ccbe2d850ce63b568b13b37713ec198b1505
Author: wforget <[email protected]>
AuthorDate: Wed Dec 18 10:42:03 2024 +0800

    [KYUUBI #6848] Fix Gluten CI
    
    ### Why are the changes needed?
    
    Fix Gluten CI
    
    ### How was this patch tested?
    
    https://github.com/wForget/kyuubi/actions/runs/12271186564
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No
    
    Closes #6848 from wForget/master.
    
    Closes #6848
    
    e2e32776a [wforget] Revert "pr trigger"
    848cbe3e9 [wforget] pr trigger
    fc83db671 [Zhen Wang] Update .github/workflows/gluten.yml
    839b9f292 [wforget] clean
    91f3e0d33 [wforget] fix test
    b9117e942 [wforget] fix test
    c4333305e [wforget] fix
    8c3e48097 [wforget] fix
    e4af6fc3e [wforget] fix
    0f4d2f540 [wforget] fix
    100be1c2a [wforget] fix
    a7eacb910 [wforget] Fix Gluten CI
    
    Lead-authored-by: wforget <[email protected]>
    Co-authored-by: Zhen Wang <[email protected]>
    Signed-off-by: wforget <[email protected]>
---
 .github/workflows/gluten.yml                       | 54 +++++++++++++---------
 integration-tests/kyuubi-gluten-it/pom.xml         | 29 ++++++++++--
 .../org/apache/kyuubi/it/gluten/GlutenSuite.scala  |  3 +-
 .../it/gluten/tpch/GlutenTPCHQuerySuite.scala      |  4 +-
 .../scala/org/apache/kyuubi/GlutenSuiteMixin.scala |  2 +-
 5 files changed, 63 insertions(+), 29 deletions(-)

diff --git a/.github/workflows/gluten.yml b/.github/workflows/gluten.yml
index 4e0e3a11d1..b60d78d3d5 100644
--- a/.github/workflows/gluten.yml
+++ b/.github/workflows/gluten.yml
@@ -35,12 +35,6 @@ jobs:
         run: ./.github/scripts/free_disk_space.sh
       - name: Tune Runner VM
         uses: ./.github/actions/tune-runner-vm
-      - name: Update and Upgrade
-        run: sudo apt-get update && sudo apt-get upgrade -y
-      - name: Install dependencies
-        run: |
-          sudo apt-get install -y software-properties-common
-          sudo apt-get install -y libunwind-dev build-essential cmake 
libssl-dev libre2-dev libcurl4-openssl-dev clang lldb lld libz-dev git 
ninja-build uuid-dev
       - name: Setup JDK 8
         uses: actions/setup-java@v4
         with:
@@ -56,20 +50,45 @@ jobs:
         id: gluten-cache
         uses: actions/cache@v4
         with:
-          path: gluten/package/target/
+          path: incubator-gluten/package/target/
           key: gluten_package_${{ steps.date.outputs.date }}
-      - name: Build gluten project
+      - name: Get Ccache
+        id: gluten-ccache-cache
+        uses: actions/cache@v4
+        with:
+          path: incubator-gluten/.ccache
+          key: ccache-centos7-release-default-${{github.sha}}
+          restore-keys: |
+            ccache-centos7-release-default
+      - name: Build Gluten velox third party
         run: |
           if [[ "${{ steps.gluten-cache.outputs.cache-hit }}" != 'true' ]]; 
then
-            git clone https://github.com/oap-project/gluten.git
-            cd gluten
-            ./dev/buildbundle-veloxbe.sh
+            git clone https://github.com/apache/incubator-gluten.git --depth=1
+            cd incubator-gluten
+            docker run -v $GITHUB_WORKSPACE/incubator-gluten:/work -w /work 
apache/gluten:vcpkg-centos-7 bash -c "
+              df -a
+              cd /work
+              export CCACHE_DIR=/work/.ccache
+              bash dev/ci-velox-buildstatic-centos-7.sh
+              ccache -s
+              mkdir -p /work/.m2/repository/org/apache/arrow/
+              cp -r /root/.m2/repository/org/apache/arrow/* 
/work/.m2/repository/org/apache/arrow/
+            "
+            mkdir -p ~/.m2/repository/org/apache/arrow
+            cp -r 
$GITHUB_WORKSPACE/incubator-gluten/.m2/repository/org/apache/arrow/* 
~/.m2/repository/org/apache/arrow/
+            mvn clean package -Pbackends-velox -Pceleborn -Puniffle 
-Pspark-3.5 -DskipTests
           fi
       - uses: actions/cache@v4
         if: steps.gluten-cache.outputs.cache-hit != 'true'
         with:
-          path: gluten/package/target/
+          path: incubator-gluten/package/target/
           key: gluten_package_${{ steps.date.outputs.date }}
+      - name: Save Ccache
+        uses: actions/cache@v4
+        if: steps.gluten-ccache-cache.outputs.cache-hit != 'true'
+        with:
+          path: incubator-gluten/.ccache/
+          key: ccache-centos7-release-default-${{github.sha}}
 
   gluten-it:
     name: Gluten Integration TPC-H/DS Test
@@ -78,20 +97,13 @@ jobs:
     strategy:
       fail-fast: false
       matrix:
-        spark: [ '3.4', '3.3' ]
+        spark: [ '3.5' ]
     steps:
       - uses: actions/checkout@v4
       - name: Free up disk space
         run: ./.github/scripts/free_disk_space.sh
       - name: Tune Runner VM
         uses: ./.github/actions/tune-runner-vm
-      - name: Update and Upgrade
-        run: sudo apt-get update && sudo apt-get upgrade -y
-      - name: Install dependencies
-        run: |
-          sudo apt-get install -y software-properties-common
-          sudo apt-get install -y libunwind-dev build-essential cmake 
libssl-dev libre2-dev libcurl4-openssl-dev clang lldb lld libz-dev git 
ninja-build uuid-dev
-          sudo apt-get install -y libsnappy-dev libthrift-dev libboost-all-dev 
libgflags-dev libgoogle-glog-dev
       - name: Cache Engine Archives
         uses: ./.github/actions/cache-engine-archives
       - name: Get gluten cache date
@@ -101,7 +113,7 @@ jobs:
         id: gluten-cache
         uses: actions/cache@v4
         with:
-          path: gluten/package/target/
+          path: incubator-gluten/package/target/
           key: gluten_package_${{ steps.date.outputs.date }}
       - name: Setup JDK 8
         uses: actions/setup-java@v4
diff --git a/integration-tests/kyuubi-gluten-it/pom.xml 
b/integration-tests/kyuubi-gluten-it/pom.xml
index 80ca234aa9..6d49bcf94e 100644
--- a/integration-tests/kyuubi-gluten-it/pom.xml
+++ b/integration-tests/kyuubi-gluten-it/pom.xml
@@ -30,8 +30,11 @@
     <url>https://kyuubi.apache.org/</url>
 
     <properties>
-        <gluten.version>1.2.0-SNAPSHOT</gluten.version>
-        
<gluten.artifact.name>gluten-velox-bundle-spark${spark.binary.version}_${scala.binary.version}-ubuntu_22.04</gluten.artifact.name>
+        <gluten.version>1.3.0-SNAPSHOT</gluten.version>
+        <os.detected.release>ubuntu</os.detected.release>
+        <os.detected.release.version>24.04</os.detected.release.version>
+        <os.detected.arch>x86_64</os.detected.arch>
+        
<gluten.artifact.name>gluten-velox-bundle-spark${spark.binary.version}_${scala.binary.version}-${os.detected.release}_${os.detected.release.version}_${os.detected.arch}</gluten.artifact.name>
     </properties>
 
     <dependencies>
@@ -40,7 +43,7 @@
             <artifactId>${gluten.artifact.name}</artifactId>
             <version>${gluten.version}</version>
             <scope>system</scope>
-            
<systemPath>${project.basedir}/../../gluten/package/target/${gluten.artifact.name}_x86_64-${gluten.version}.jar</systemPath>
+            
<systemPath>${project.basedir}/../../incubator-gluten/package/target/${gluten.artifact.name}-${gluten.version}.jar</systemPath>
         </dependency>
 
         <dependency>
@@ -57,6 +60,14 @@
             <scope>test</scope>
         </dependency>
 
+        <dependency>
+            <groupId>org.apache.kyuubi</groupId>
+            <artifactId>kyuubi-util-scala_${scala.binary.version}</artifactId>
+            <version>${project.version}</version>
+            <type>test-jar</type>
+            <scope>test</scope>
+        </dependency>
+
         <dependency>
             <groupId>org.apache.kyuubi</groupId>
             
<artifactId>kyuubi-spark-connector-common_${scala.binary.version}</artifactId>
@@ -88,6 +99,18 @@
             <artifactId>spark-hive_${scala.binary.version}</artifactId>
             <scope>test</scope>
         </dependency>
+
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>javax.servlet-api</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>jakarta.servlet</groupId>
+            <artifactId>jakarta.servlet-api</artifactId>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
     <build>
diff --git 
a/integration-tests/kyuubi-gluten-it/src/test/scala/org/apache/kyuubi/it/gluten/GlutenSuite.scala
 
b/integration-tests/kyuubi-gluten-it/src/test/scala/org/apache/kyuubi/it/gluten/GlutenSuite.scala
index 67e9a92b66..b1ce30381a 100644
--- 
a/integration-tests/kyuubi-gluten-it/src/test/scala/org/apache/kyuubi/it/gluten/GlutenSuite.scala
+++ 
b/integration-tests/kyuubi-gluten-it/src/test/scala/org/apache/kyuubi/it/gluten/GlutenSuite.scala
@@ -44,8 +44,7 @@ class GlutenSuite extends KyuubiFunSuite with 
GlutenSuiteMixin {
   test("KYUUBI #5467: test gluten plan") {
     withSparkSession(SparkSession.builder.config(sparkConf).getOrCreate()) { 
spark =>
       val plan = spark.sql("explain SELECT 1").head().getString(0)
-      assert(plan.contains("VeloxColumnarToRowExec") && plan.contains(
-        "VeloxColumnarToRowExec") && plan.contains("RowToVeloxColumnar"))
+      assert(plan.contains("VeloxColumnarToRow") && 
plan.contains("RowToVeloxColumnar"))
     }
   }
 }
diff --git 
a/integration-tests/kyuubi-gluten-it/src/test/scala/org/apache/kyuubi/it/gluten/tpch/GlutenTPCHQuerySuite.scala
 
b/integration-tests/kyuubi-gluten-it/src/test/scala/org/apache/kyuubi/it/gluten/tpch/GlutenTPCHQuerySuite.scala
index 98b4e94489..019ecc165e 100644
--- 
a/integration-tests/kyuubi-gluten-it/src/test/scala/org/apache/kyuubi/it/gluten/tpch/GlutenTPCHQuerySuite.scala
+++ 
b/integration-tests/kyuubi-gluten-it/src/test/scala/org/apache/kyuubi/it/gluten/tpch/GlutenTPCHQuerySuite.scala
@@ -33,8 +33,8 @@ import org.apache.kyuubi.tags.GlutenTest
 @Slow
 @GlutenTest
 class GlutenTPCHQuerySuite extends KyuubiFunSuite with GlutenSuiteMixin {
-  // TODO: Fix the inconsistency in q9 results.
-  val queries: Set[String] = (1 to 22).map(i => s"q$i").toSet - "q9"
+  // TODO: Fix the inconsistency in q3/q9 results.
+  val queries: Set[String] = (1 to 22).map(i => s"q$i").toSet -- Seq("q3", 
"q9")
 
   lazy val sparkConf: SparkConf = {
     val glutenConf = new SparkConf().setMaster("local[*]")
diff --git 
a/kyuubi-common/src/test/scala/org/apache/kyuubi/GlutenSuiteMixin.scala 
b/kyuubi-common/src/test/scala/org/apache/kyuubi/GlutenSuiteMixin.scala
index c9ee6ab962..63fcf3bec2 100644
--- a/kyuubi-common/src/test/scala/org/apache/kyuubi/GlutenSuiteMixin.scala
+++ b/kyuubi-common/src/test/scala/org/apache/kyuubi/GlutenSuiteMixin.scala
@@ -25,7 +25,7 @@ trait GlutenSuiteMixin {
   }
 
   protected def extraConfigs: Map[String, String] = Map(
-    "spark.plugins" -> "io.glutenproject.GlutenPlugin",
+    "spark.plugins" -> "org.apache.gluten.GlutenPlugin",
     "spark.memory.offHeap.size" -> "4g",
     "spark.memory.offHeap.enabled" -> "true",
     "spark.shuffle.manager" -> 
"org.apache.spark.shuffle.sort.ColumnarShuffleManager",

Reply via email to