This is an automated email from the ASF dual-hosted git repository.
terrymanu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 672b45b4d91 Use global job enablement for CI and E2E prerequisites
(#40084)
672b45b4d91 is described below
commit 672b45b4d9126e8e9f25c1bdb955545c10961328
Author: Liang Zhang <[email protected]>
AuthorDate: Tue Oct 6 22:44:07 2026 +0800
Use global job enablement for CI and E2E prerequisites (#40084)
* Use global job enablement for CI and E2E prerequisites
* Use global job enablement for CI and E2E prerequisites
---
.github/workflows/ci-graalvm.yml | 2 +-
.github/workflows/ci-mcp.yml | 2 +-
.github/workflows/ci.yml | 2 +-
.github/workflows/e2e-mcp.yml | 4 ++--
.github/workflows/e2e-operation.yml | 2 +-
.github/workflows/e2e-sql.yml | 1 +
.github/workflows/nightly-e2e-sql.yml | 1 +
.github/workflows/release-mcp.yml | 2 +-
8 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/ci-graalvm.yml b/.github/workflows/ci-graalvm.yml
index e33fc52ff32..bbb05cad147 100644
--- a/.github/workflows/ci-graalvm.yml
+++ b/.github/workflows/ci-graalvm.yml
@@ -44,7 +44,7 @@ jobs:
name: Import Global Environment
uses: ./.github/workflows/reusable-global-environment.yml
nativetest:
- if: ${{ github.event_name == 'schedule' &&
needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' ||
github.event_name != 'schedule' && github.repository == 'apache/shardingsphere'
}}
+ if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
needs: global-environment
name: GraalVM - GraalVM CE ${{ matrix.java-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
diff --git a/.github/workflows/ci-mcp.yml b/.github/workflows/ci-mcp.yml
index 098eaf71523..d997d13ddcf 100644
--- a/.github/workflows/ci-mcp.yml
+++ b/.github/workflows/ci-mcp.yml
@@ -45,7 +45,7 @@ jobs:
mcp-ci:
name: MCP - CI with JDK 21
- if: github.repository == 'apache/shardingsphere'
+ if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
needs: global-environment
runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
timeout-minutes: 30
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 18d46859696..61089cef0f6 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -51,7 +51,7 @@ jobs:
ci:
name: CI
- if: github.repository == 'apache/shardingsphere'
+ if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
needs: global-environment
runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
timeout-minutes: 30
diff --git a/.github/workflows/e2e-mcp.yml b/.github/workflows/e2e-mcp.yml
index b3595009198..bc84c80d096 100644
--- a/.github/workflows/e2e-mcp.yml
+++ b/.github/workflows/e2e-mcp.yml
@@ -52,7 +52,7 @@ jobs:
e2e-mcp-build-images:
name: E2E - MCP Build Images
- if: github.repository == 'apache/shardingsphere'
+ if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
needs: global-environment
runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
timeout-minutes: 60
@@ -106,7 +106,7 @@ jobs:
e2e-mcp-build-llm-image:
name: E2E - MCP Build LLM Image
- if: github.repository == 'apache/shardingsphere'
+ if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
needs: global-environment
runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
timeout-minutes: 60
diff --git a/.github/workflows/e2e-operation.yml
b/.github/workflows/e2e-operation.yml
index ef9d9eaa840..fdf6a44c0a7 100644
--- a/.github/workflows/e2e-operation.yml
+++ b/.github/workflows/e2e-operation.yml
@@ -41,7 +41,7 @@ jobs:
detect-changed-files:
name: Detect Changed Files
- if: github.repository == 'apache/shardingsphere'
+ if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
needs: global-environment
runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
timeout-minutes: 5
diff --git a/.github/workflows/e2e-sql.yml b/.github/workflows/e2e-sql.yml
index 20f0918c3e8..e92eae0b4b3 100644
--- a/.github/workflows/e2e-sql.yml
+++ b/.github/workflows/e2e-sql.yml
@@ -52,6 +52,7 @@ jobs:
detect-and-generate-matrix:
name: Detect Changes and Generate Matrix
+ if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
needs: global-environment
runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
timeout-minutes: 5
diff --git a/.github/workflows/nightly-e2e-sql.yml
b/.github/workflows/nightly-e2e-sql.yml
index d914ed63200..d61f369fb23 100644
--- a/.github/workflows/nightly-e2e-sql.yml
+++ b/.github/workflows/nightly-e2e-sql.yml
@@ -41,6 +41,7 @@ jobs:
prepare-e2e-artifacts:
name: Prepare E2E Artifacts
needs: global-environment
+ if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
timeout-minutes: 40
steps:
diff --git a/.github/workflows/release-mcp.yml
b/.github/workflows/release-mcp.yml
index 61253f98da2..6f4dcac85b7 100644
--- a/.github/workflows/release-mcp.yml
+++ b/.github/workflows/release-mcp.yml
@@ -47,8 +47,8 @@ jobs:
release-mcp:
name: Release - MCP
- if: github.repository == 'apache/shardingsphere'
needs: global-environment
+ if: github.repository == 'apache/shardingsphere'
runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
permissions:
contents: read