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

yuqi4733 pushed a commit to branch internal-main
in repository https://gitbox.apache.org/repos/asf/gravitino.git

commit 1dfa855df5d2b023df1ad12d902e2a7de502a30c
Author: danhuawang <[email protected]>
AuthorDate: Mon Oct 20 17:49:58 2025 +0800

    update runner and trigger condition
---
 .../workflows/access-control-integration-test.yml  | 10 ++++---
 .../workflows/backend-integration-test-action.yml  |  6 ++---
 .github/workflows/backend-integration-test.yml     | 31 +++++++---------------
 .github/workflows/build.yml                        | 16 ++++++-----
 .../workflows/flink-integration-test-action.yml    |  6 ++---
 .github/workflows/flink-integration-test.yml       |  7 +++--
 .github/workflows/frontend-integration-test.yml    |  9 ++++---
 .github/workflows/gvfs-fuse-build-test.yml         |  1 +
 .github/workflows/python-integration-test.yml      |  9 ++++---
 .../workflows/spark-integration-test-action.yml    |  4 +--
 .github/workflows/spark-integration-test.yml       | 19 +++++++------
 .github/workflows/trino-integration-test.yml       |  9 ++++---
 .github/workflows/web-ui-tests.yml                 |  7 ++---
 13 files changed, 72 insertions(+), 62 deletions(-)

diff --git a/.github/workflows/access-control-integration-test.yml 
b/.github/workflows/access-control-integration-test.yml
index bfc5aeec59..93709ffd17 100644
--- a/.github/workflows/access-control-integration-test.yml
+++ b/.github/workflows/access-control-integration-test.yml
@@ -2,11 +2,12 @@ name: Access Control Integration Test
 
 # Controls when the workflow will run
 on:
-  # Triggers the workflow on push or pull request events but only for the 
"main" branch
+  workflow_dispatch:
   push:
-    branches: [ "main", "branch-*" ]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
   pull_request:
-    branches: [ "main", "branch-*" ]
+    types: [labeled]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
@@ -15,6 +16,7 @@ concurrency:
 jobs:
   changes:
     runs-on: ubuntu-latest
+    if: contains(github.event.pull_request.labels.*.name, 'run-ci')
     steps:
       - uses: actions/checkout@v4
       - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
@@ -50,7 +52,7 @@ jobs:
   access-control-IT:
     needs: changes
     if: needs.changes.outputs.source_changes == 'true'
-    runs-on: ubuntu-latest
+    runs-on: [self-hosted, linux, x64, ubuntu-latest, xlarge]
     timeout-minutes: 90
     strategy:
       matrix:
diff --git a/.github/workflows/backend-integration-test-action.yml 
b/.github/workflows/backend-integration-test-action.yml
index 266e2a8146..1319c9f71d 100644
--- a/.github/workflows/backend-integration-test-action.yml
+++ b/.github/workflows/backend-integration-test-action.yml
@@ -22,10 +22,10 @@ on:
         type: string
 
 jobs:
-  start-runner:
+  BackendIT:
     name: JDK${{ inputs.java-version }}-${{ inputs.test-mode }}-${{ 
inputs.backend }}
-    runs-on: ubuntu-latest
-    timeout-minutes: 90
+    runs-on: [self-hosted, linux, x64, ubuntu-latest, xlarge]
+    timeout-minutes: 120
     env:
       PLATFORM: ${{ inputs.architecture }}
     steps:
diff --git a/.github/workflows/backend-integration-test.yml 
b/.github/workflows/backend-integration-test.yml
index 1334bf1892..799dde1634 100644
--- a/.github/workflows/backend-integration-test.yml
+++ b/.github/workflows/backend-integration-test.yml
@@ -2,10 +2,12 @@ name: Backend Integration Test
 
 # Controls when the workflow will run
 on:
+  workflow_dispatch:
   push:
-    branches: [ "main", "branch-*" ]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
   pull_request:
-    branches: [ "main", "branch-*" ]
+    types: [labeled]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
@@ -14,6 +16,7 @@ concurrency:
 jobs:
   changes:
     runs-on: ubuntu-latest
+    if: contains(github.event.pull_request.labels.*.name, 'run-ci')
     steps:
       - uses: actions/checkout@v4
       - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
@@ -53,17 +56,10 @@ jobs:
     if: (github.event_name == 'push' && needs.changes.outputs.source_changes 
== 'true')
     strategy:
       matrix:
-        architecture: [linux/amd64]
+        architecture: [ linux/amd64 ]
         java-version: [ 17 ]
-        backend: [ h2, mysql, postgresql ]
-        test-mode: [ embedded, deploy ]
-        exclude:
-          - test-mode: 'embedded'
-            backend: 'mysql'
-          - test-mode: 'embedded'
-            backend: 'postgresql'
-          - test-mode: 'deploy'
-            backend: 'h2'
+        backend: [ mysql ]
+        test-mode: [ deploy ]
     uses: ./.github/workflows/backend-integration-test-action.yml
     with:
       architecture: ${{ matrix.architecture }}
@@ -78,15 +74,8 @@ jobs:
       matrix:
         architecture: [ linux/amd64 ]
         java-version: [ 17 ]
-        backend: [ h2, mysql, postgresql ]
-        test-mode: [ embedded, deploy ]
-        exclude:
-          - test-mode: 'embedded'
-            backend: 'mysql'
-          - test-mode: 'embedded'
-            backend: 'postgresql'
-          - test-mode: 'deploy'
-            backend: 'h2'
+        backend: [ mysql ]
+        test-mode: [ deploy ]
     uses: ./.github/workflows/backend-integration-test-action.yml
     with:
       architecture: ${{ matrix.architecture }}
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c3408c0824..8d2c4c959b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -2,11 +2,12 @@ name: build
 
 # Controls when the workflow will run
 on:
-  # Triggers the workflow on push or pull request events but only for the 
"main" branch
+  workflow_dispatch:
   push:
-    branches: [ "main", "branch-*" ]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
   pull_request:
-    branches: [ "main", "branch-*" ]
+    types: [labeled]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
@@ -16,6 +17,7 @@ concurrency:
 jobs:
   changes:
     runs-on: ubuntu-latest
+    if: contains(github.event.pull_request.labels.*.name, 'run-ci')
     steps:
       - uses: actions/checkout@v4
       - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
@@ -50,7 +52,7 @@ jobs:
       spark_connector_changes: ${{ 
steps.filter.outputs.spark_connector_changes }}
 
   compile-check:
-    runs-on: ubuntu-latest
+    runs-on: [self-hosted, linux, x64, ubuntu-latest, 2xlarge]
     needs: changes
     if: needs.changes.outputs.source_changes != 'true'
     steps:
@@ -68,8 +70,8 @@ jobs:
 
   # To check the spark-connector is compatible with scala2.13
   spark-connector-build:
-    runs-on: ubuntu-latest
-    timeout-minutes: 30
+    runs-on: [self-hosted, linux, x64, ubuntu-latest, 2xlarge]
+    timeout-minutes: 45
     needs: changes
     if: needs.changes.outputs.spark_connector_changes == 'true'
     steps:
@@ -102,7 +104,7 @@ jobs:
 
   build:
     # The type of runner that the job will run on
-    runs-on: ubuntu-latest
+    runs-on: [self-hosted, linux, x64, ubuntu-latest, 2xlarge]
     strategy:
       matrix:
         java-version: [ 17 ]
diff --git a/.github/workflows/flink-integration-test-action.yml 
b/.github/workflows/flink-integration-test-action.yml
index 92b2dd9867..b611286372 100644
--- a/.github/workflows/flink-integration-test-action.yml
+++ b/.github/workflows/flink-integration-test-action.yml
@@ -14,10 +14,10 @@ on:
         type: string
 
 jobs:
-  start-runner:
+  FlinkIT:
     name: JDK${{ inputs.java-version }}
-    runs-on: ubuntu-latest
-    timeout-minutes: 30
+    runs-on: [self-hosted, linux, x64, ubuntu-latest, xlarge]
+    timeout-minutes: 60
     env:
       PLATFORM: ${{ inputs.architecture }}
     steps:
diff --git a/.github/workflows/flink-integration-test.yml 
b/.github/workflows/flink-integration-test.yml
index ee4749c292..20af094a8d 100644
--- a/.github/workflows/flink-integration-test.yml
+++ b/.github/workflows/flink-integration-test.yml
@@ -2,10 +2,12 @@ name: Flink Integration Test
 
 # Controls when the workflow will run
 on:
+  workflow_dispatch:
   push:
-    branches: [ "main", "branch-*" ]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
   pull_request:
-    branches: [ "main", "branch-*" ]
+    types: [labeled]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
@@ -14,6 +16,7 @@ concurrency:
 jobs:
   changes:
     runs-on: ubuntu-latest
+    if: contains(github.event.pull_request.labels.*.name, 'run-ci')
     steps:
       - uses: actions/checkout@v4
       - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
diff --git a/.github/workflows/frontend-integration-test.yml 
b/.github/workflows/frontend-integration-test.yml
index 841b4f390f..1812c1df03 100644
--- a/.github/workflows/frontend-integration-test.yml
+++ b/.github/workflows/frontend-integration-test.yml
@@ -2,10 +2,12 @@ name: Frontend Integration Test
 
 # Controls when the workflow will run
 on:
+  workflow_dispatch:
   push:
-    branches: [ "main", "branch-*" ]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
   pull_request:
-    branches: [ "main", "branch-*" ]
+    types: [labeled]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
@@ -14,6 +16,7 @@ concurrency:
 jobs:
   changes:
     runs-on: ubuntu-latest
+    if: contains(github.event.pull_request.labels.*.name, 'run-ci')
     steps:
       - uses: actions/checkout@v4
       - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
@@ -48,7 +51,7 @@ jobs:
   FrontendIT:
     needs: changes
     if: needs.changes.outputs.source_changes == 'true'
-    runs-on: ubuntu-latest
+    runs-on: [self-hosted, linux, x64, ubuntu-latest, xlarge]
     timeout-minutes: 60
     strategy:
       matrix:
diff --git a/.github/workflows/gvfs-fuse-build-test.yml 
b/.github/workflows/gvfs-fuse-build-test.yml
index a2f0fb8040..d2fd3256a8 100644
--- a/.github/workflows/gvfs-fuse-build-test.yml
+++ b/.github/workflows/gvfs-fuse-build-test.yml
@@ -16,6 +16,7 @@ concurrency:
 jobs:
   changes:
     runs-on: ubuntu-latest
+    if: needs.changes.outputs.source_changes == 'true'
     steps:
       - uses: actions/checkout@v4
       - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
diff --git a/.github/workflows/python-integration-test.yml 
b/.github/workflows/python-integration-test.yml
index b1e6145828..923a80b29f 100644
--- a/.github/workflows/python-integration-test.yml
+++ b/.github/workflows/python-integration-test.yml
@@ -2,10 +2,12 @@ name: Python Client Integration Test
 
 # Controls when the workflow will run
 on:
+  workflow_dispatch:
   push:
-    branches: [ "main", "branch-*" ]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
   pull_request:
-    branches: [ "main", "branch-*" ]
+    types: [labeled]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
@@ -14,6 +16,7 @@ concurrency:
 jobs:
   changes:
     runs-on: ubuntu-latest
+    if: needs.changes.outputs.source_changes == 'true'
     steps:
       - uses: actions/checkout@v4
       - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
@@ -47,7 +50,7 @@ jobs:
   PythonIT:
     needs: changes
     if: needs.changes.outputs.source_changes == 'true'
-    runs-on: ubuntu-latest
+    runs-on: [self-hosted, linux, x64, ubuntu-latest, xlarge]
     timeout-minutes: 90
     strategy:
       matrix:
diff --git a/.github/workflows/spark-integration-test-action.yml 
b/.github/workflows/spark-integration-test-action.yml
index 71bc6e7efe..c175600d18 100644
--- a/.github/workflows/spark-integration-test-action.yml
+++ b/.github/workflows/spark-integration-test-action.yml
@@ -22,9 +22,9 @@ on:
         type: string
 
 jobs:
-  start-runner:
+  SparkIT:
     name: JDK${{ inputs.java-version }}-${{ inputs.test-mode }}-Scala${{ 
inputs.scala-version }}
-    runs-on: ubuntu-latest
+    runs-on: [self-hosted, linux, arm64, amazon, xlarge]
     timeout-minutes: 60
     env:
       PLATFORM: ${{ inputs.architecture }}
diff --git a/.github/workflows/spark-integration-test.yml 
b/.github/workflows/spark-integration-test.yml
index 0d1b53634f..eb61ae222e 100644
--- a/.github/workflows/spark-integration-test.yml
+++ b/.github/workflows/spark-integration-test.yml
@@ -2,10 +2,12 @@ name: Spark Integration Test
 
 # Controls when the workflow will run
 on:
+  workflow_dispatch:
   push:
-    branches: [ "main", "branch-*" ]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
   pull_request:
-    branches: [ "main", "branch-*" ]
+    types: [labeled]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
@@ -14,6 +16,7 @@ concurrency:
 jobs:
   changes:
     runs-on: ubuntu-latest
+    if: contains(github.event.pull_request.labels.*.name, 'run-ci')
     steps:
       - uses: actions/checkout@v4
       - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
@@ -51,11 +54,11 @@ jobs:
     if: (github.event_name == 'push' && needs.changes.outputs.source_changes 
== 'true')
     strategy:
       matrix:
-        # Integration test for AMD64 architecture
-        architecture: [linux/amd64]
+        # Integration test for ARM64 architecture
+        architecture: [ linux/arm64 ]
         java-version: [ 17 ]
         scala-version: [ 2.12 ]
-        test-mode: [ embedded, deploy ]
+        test-mode: [ deploy ]
     uses: ./.github/workflows/spark-integration-test-action.yml
     with:
       architecture: ${{ matrix.architecture }}
@@ -68,11 +71,11 @@ jobs:
     if: (github.event_name == 'pull_request' && 
needs.changes.outputs.source_changes == 'true')
     strategy:
       matrix:
-        # Integration test for AMD64 architecture
-        architecture: [linux/amd64]
+        # Integration test for ARM64 architecture
+        architecture: [ linux/arm64 ]
         java-version: [ 17 ]
         scala-version: [ 2.12 ]
-        test-mode: [ embedded, deploy ]
+        test-mode: [ deploy ]
     uses: ./.github/workflows/spark-integration-test-action.yml
     with:
       architecture: ${{ matrix.architecture }}
diff --git a/.github/workflows/trino-integration-test.yml 
b/.github/workflows/trino-integration-test.yml
index 6f80fc7bad..592edee19a 100644
--- a/.github/workflows/trino-integration-test.yml
+++ b/.github/workflows/trino-integration-test.yml
@@ -2,10 +2,12 @@ name: Trino Integration Test
 
 # Controls when the workflow will run
 on:
+  workflow_dispatch:
   push:
-    branches: [ "main", "branch-*" ]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
   pull_request:
-    branches: [ "main", "branch-*" ]
+    types: [labeled]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.event.pull_request.number || 
github.ref }}
@@ -14,6 +16,7 @@ concurrency:
 jobs:
   changes:
     runs-on: ubuntu-latest
+    if: contains(github.event.pull_request.labels.*.name, 'run-ci')
     steps:
       - uses: actions/checkout@v4
       - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36
@@ -50,7 +53,7 @@ jobs:
   TrinoIT:
     needs: changes
     if: needs.changes.outputs.source_changes == 'true'
-    runs-on: ubuntu-latest
+    runs-on: [self-hosted, linux, x64, ubuntu-latest, xlarge]
     timeout-minutes: 60
     strategy:
       matrix:
diff --git a/.github/workflows/web-ui-tests.yml 
b/.github/workflows/web-ui-tests.yml
index 8dcc5d118c..9f3ae78fd2 100644
--- a/.github/workflows/web-ui-tests.yml
+++ b/.github/workflows/web-ui-tests.yml
@@ -2,19 +2,20 @@ name: Web UI Tests
 
 on:
   push:
-    branches: [ "main", "branch-*" ]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
     paths:
       - 'web/web/**'
       - '.github/workflows/web-ui-tests.yml'
   pull_request:
-    branches: [ "main", "branch-*" ]
+    types: [ labeled ]
+    branches: [ "main", "branch-*", "internal-*", "oss-main" ]
     paths:
       - 'web/web/**'
       - '.github/workflows/web-ui-tests.yml'
 
 jobs:
   test:
-    runs-on: ubuntu-latest
+    runs-on: [self-hosted, linux, x64, ubuntu-latest, xlarge]
     
     steps:
     - name: Checkout code

Reply via email to