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

chengpan pushed a commit to branch branch-1.10
in repository https://gitbox.apache.org/repos/asf/kyuubi.git


The following commit(s) were added to refs/heads/branch-1.10 by this push:
     new 33516239a0 [KYUUBI #7194] Speed up K8s integration tests in CI
33516239a0 is described below

commit 33516239a01cb8ce696a79c3ecdad05273819053
Author: Cheng Pan <cheng...@apache.org>
AuthorDate: Sat Sep 6 22:57:01 2025 +0800

    [KYUUBI #7194] Speed up K8s integration tests in CI
    
    Use `apache/spark:3.5.5` as the Kyuubi image's base image to avoid 
downloading Spark tgz inside the image building phase.
    
    Monitor CI.
    
    No.
    
    Closes #7194 from pan3793/k8s-it.
    
    Closes #7194
    
    78482a897 [Cheng Pan] Update .github/workflows/master.yml
    32e2ca7d5 [Cheng Pan] Speed up K8s integration tests in CI
    
    Authored-by: Cheng Pan <cheng...@apache.org>
    Signed-off-by: Cheng Pan <cheng...@apache.org>
    (cherry picked from commit e3c213b3dc70debdd39d1b8a2774f24c8a85d3ab)
    Signed-off-by: Cheng Pan <cheng...@apache.org>
---
 .github/workflows/master.yml                                  | 11 +++++++----
 .../kyuubi-kubernetes-it/src/test/resources/driver.yml        |  2 +-
 .../src/test/resources/kyuubi-server.yaml                     |  2 +-
 3 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml
index 2d0c0bbb69..aafd6c9756 100644
--- a/.github/workflows/master.yml
+++ b/.github/workflows/master.yml
@@ -422,17 +422,21 @@ jobs:
         uses: docker/setup-buildx-action@v3
         with:
           cache-binary: false
+      - name: Pull Spark image
+        run: |
+          docker pull apache/spark:3.5.2
       - name: Build Kyuubi Docker Image
         uses: docker/build-push-action@v6
         with:
           # passthrough CI into build container
           build-args: |
             CI=${CI}
-            MVN_ARG=--flink-provided --hive-provided
+            BASE_IMAGE=apache/spark:3.5.2
+            MVN_ARG=--spark-provided --flink-provided --hive-provided
           context: .
           file: build/Dockerfile.CI
           load: true
-          tags: apache/kyuubi:latest
+          tags: apache/kyuubi:ci
       - name: Cache Engine Archives
         uses: ./.github/actions/cache-engine-archives
       - name: Setup Minikube
@@ -442,9 +446,8 @@ jobs:
           sudo install minikube-linux-amd64 /usr/local/bin/minikube
           minikube start --cpus 2 --memory 4096 
--kubernetes-version=${KUBERNETES_VERSION} --force
           # 
https://minikube.sigs.k8s.io/docs/handbook/pushing/#7-loading-directly-to-in-cluster-container-runtime
-          minikube image load apache/kyuubi:latest
+          minikube image load apache/kyuubi:ci
           # pre-install spark into minikube
-          docker pull apache/spark:3.5.2
           minikube image load apache/spark:3.5.2
       - name: kubectl pre-check
         run: |
diff --git 
a/integration-tests/kyuubi-kubernetes-it/src/test/resources/driver.yml 
b/integration-tests/kyuubi-kubernetes-it/src/test/resources/driver.yml
index c717352244..d890496286 100644
--- a/integration-tests/kyuubi-kubernetes-it/src/test/resources/driver.yml
+++ b/integration-tests/kyuubi-kubernetes-it/src/test/resources/driver.yml
@@ -15,7 +15,7 @@
 # limitations under the License.
 #
 
-apiVersio: v1
+apiVersion: v1
 kind: Pod
 metadata:
   name: driver
diff --git 
a/integration-tests/kyuubi-kubernetes-it/src/test/resources/kyuubi-server.yaml 
b/integration-tests/kyuubi-kubernetes-it/src/test/resources/kyuubi-server.yaml
index 5962f80710..56966f2ce9 100644
--- 
a/integration-tests/kyuubi-kubernetes-it/src/test/resources/kyuubi-server.yaml
+++ 
b/integration-tests/kyuubi-kubernetes-it/src/test/resources/kyuubi-server.yaml
@@ -25,7 +25,7 @@ spec:
   serviceAccountName: kyuubi
   containers:
     - name: kyuubi-server
-      image: apache/kyuubi:latest
+      image: apache/kyuubi:ci
       imagePullPolicy: IfNotPresent
       env:
         - name: KYUUBI_JAVA_OPTS

Reply via email to